immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
53.44k stars 2.83k forks source link

[BUG] Failure to build app on RPi4, Ubuntu 21.10 Server. Log: Error: Unsupported system: cpu-linux-arm64 #94

Closed darrylgibbs closed 2 years ago

darrylgibbs commented 2 years ago

Describe the bug Following the install instructions exactly, I get an error when building the app.

The error is as follows, on steap 7/9: RUN npm install The command '/bin/sh -c npm install' returned a non-zero code: 1 ERROR: Service 'immich_microservices' failed to build : Build failed

Docker-compose.yml is unchanged, and .env has a DB name entered, a JWT code and commented out MAPBOX.

Desktop (please complete the following information):

Additional context Add any other context about the problem here. Screenshot 2022-03-30 113956

How do I procede? am I doing something wrong here?

alextran1502 commented 2 years ago

You are not doing anything wrong, TensorFlow 2 currently doesn't support Rpi4 64bit

Can you comment out the section below in docker-compose file and try again? This will run the server for core backup operation but the object detection and image tagging will be disabled.

I am following the process of supporting Tensorflow 2 in Docker for arm64-v7

  immich_microservices:
    image: immich-microservices:1.4.0
    build:
      context: ../microservices
      dockerfile: ../microservices/Dockerfile
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    expose:
      - "3001"
    volumes:
      - ../microservices:/usr/src/app
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /usr/src/app/node_modules
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - database
    networks:
      - immich_network
alextran1502 commented 2 years ago

@darrylgibbs Any progress on this?

darrylgibbs commented 2 years ago

Not yet, it still keeps crashing. I've got a few more ideas to try and then I'll report back. Hopefully today still.

darrylgibbs commented 2 years ago

Well, after switching to RPi OS 64bit, it builds now, but I'm getting errors to load the web page. I'll fiddle more and load an issue if I can't figure it out.