Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Docker-compose script execution failed #67

Closed
ffidan61 opened this issue Mar 20, 2022 · 6 comments
Closed

[BUG] Docker-compose script execution failed #67

ffidan61 opened this issue Mar 20, 2022 · 6 comments

Comments

@ffidan61
Copy link

Describe the bug
Can't spinn up an the immich docker container due to a docker-compose script execution error.

To Reproduce
Steps to reproduce the behavior/The way I tried to get immich to work:

  1. git clone immich repo
  2. cd into docker folder
  3. edit .env
  4. run docker-compose up -d

Expected behavior
Spinn up an immich docker container

Desktop (please complete the following information):

  • OS: Linux 5.4.0-104 Ubunutu x86_64
  • Docker version 20.10.11, build dea9396e18
  • Docker-compose version 1.29.2, build 5becea4c

Additional context

Docker build logs:

Building immich_server
Sending build context to Docker daemon 921.1kB
Step 1/8 : FROM node:16-alpine3.14 AS development
---> 61b24385412d
Step 2/8 : ARG DEBIAN_FRONTEND=noninteractive
---> Using cache
---> 7e4c97e5be92
Step 3/8 : WORKDIR /usr/src/app
---> Using cache
---> 0d12dcab5684
Step 4/8 : COPY package.json package-lock.json ./
---> Using cache
---> 48eee65e6cc3
Step 5/8 : RUN apk add --update-cache build-base python3 libheif vips-dev vips ffmpeg
---> Using cache
---> 193e80027251
Step 6/8 : RUN npm install
---> Using cache
---> 0af961d58b89
Step 7/8 : COPY . .
---> Using cache
---> 83dc6a049be7
Step 8/8 : RUN npm run build
---> Using cache
---> a1459b1289b3
Successfully built a1459b1289b3
Successfully tagged immich-server-dev:1.0.0
Traceback (most recent call last):
File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 203, in perform_command
File "compose/metrics/decorator.py", line 18, in wrapper
File "compose/cli/main.py", line 1186, in up
File "compose/cli/main.py", line 1182, in up
File "compose/project.py", line 664, in up
File "compose/service.py", line 348, in ensure_image_exists
File "compose/service.py", line 1133, in build
File "compose/service.py", line 1948, in build
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmptan9biqs'
[549391] Failed to execute script docker-compose

@ffidan61 ffidan61 added the bug label Mar 20, 2022
@alextran1502
Copy link
Contributor

Can you try docker-compose up --build -V from the docker directory.

Did you change anything from the docker-compose file? Can you also share your .env file?

@ffidan61
Copy link
Author

docker-compose up --build -V gave me this (same?) error:

Building immich_server
Sending build context to Docker daemon 921.1kB
Step 1/8 : FROM node:16-alpine3.14 AS development
---> 61b24385412d
Step 2/8 : ARG DEBIAN_FRONTEND=noninteractive
---> Using cache
---> 7e4c97e5be92
Step 3/8 : WORKDIR /usr/src/app
---> Using cache
---> 0d12dcab5684
Step 4/8 : COPY package.json package-lock.json ./
---> Using cache
---> 48eee65e6cc3
Step 5/8 : RUN apk add --update-cache build-base python3 libheif vips-dev vips ffmpeg
---> Using cache
---> 193e80027251
Step 6/8 : RUN npm install
---> Using cache
---> 0af961d58b89
Step 7/8 : COPY . .
---> Using cache
---> 83dc6a049be7
Step 8/8 : RUN npm run build
---> Using cache
---> a1459b1289b3
Successfully built a1459b1289b3
Successfully tagged immich-server-dev:1.0.0
Traceback (most recent call last):
File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 203, in perform_command
File "compose/metrics/decorator.py", line 18, in wrapper
File "compose/cli/main.py", line 1186, in up
File "compose/cli/main.py", line 1182, in up
File "compose/project.py", line 664, in up
File "compose/service.py", line 348, in ensure_image_exists
File "compose/service.py", line 1133, in build
File "compose/service.py", line 1948, in build
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpql6mps1b'
[728260] Failed to execute script docker-compose

No I didn't touch the docker-compose file.
Here is my .env file

STAGE

NODE_ENV=development

Database

DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich

Upload File Config

UPLOAD_LOCATION=/home/furkan/media/pics

JWT SECRET

JWT_SECRET=29525AB6C77EB733BAFD38C898CA9AEB8FC0118F7D29A9A5F43F54457857F229

MAPBOX

ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEY

ENABLE_MAPBOX=false
MAPBOX_KEY=

@ippocratis
Copy link

ippocratis commented Mar 21, 2022

Docker daemon is running?

sudo systemctl status docker

sudo systemctl start docker

@alextran1502
Copy link
Contributor

Found this similar issue on StackOverflow

Probably an issue from how you install docker, I assume you used snap?

@ffidan61
Copy link
Author

At least not consciously I'll see if that's the reason.

@ffidan61
Copy link
Author

You are right. I somehow had installed docker via snap. Switched back to legacy now immich works 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants