[BUG] Docker-compose script execution failed #28

Closed
opened 2026-02-04 16:40:08 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @ffidan61 on GitHub (Mar 20, 2022).

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

Originally created by @ffidan61 on GitHub (Mar 20, 2022). **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 3. cd into docker folder 4. edit .env 5. 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 <module> > 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
Author
Owner

@alextran1502 commented on GitHub (Mar 21, 2022):

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?

@alextran1502 commented on GitHub (Mar 21, 2022): 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?
Author
Owner

@ffidan61 commented on GitHub (Mar 21, 2022):

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=

@ffidan61 commented on GitHub (Mar 21, 2022): `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 <module> 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= >
Author
Owner

@ippocratis commented on GitHub (Mar 21, 2022):

Docker daemon is running?

sudo systemctl status docker

sudo systemctl start docker

@ippocratis commented on GitHub (Mar 21, 2022): Docker daemon is running? `sudo systemctl status docker ` `sudo systemctl start docker`
Author
Owner

@alextran1502 commented on GitHub (Mar 21, 2022):

Found this similar issue on StackOverflow

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

@alextran1502 commented on GitHub (Mar 21, 2022): Found this similar issue on [StackOverflow](https://stackoverflow.com/questions/67986387/docker-compose-up-build-states-an-error-but-it-works-after-i-use-docker-compos) Probably an issue from how you install docker, I assume you used `snap`?
Author
Owner

@ffidan61 commented on GitHub (Mar 21, 2022):

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

@ffidan61 commented on GitHub (Mar 21, 2022): At least not consciously I'll see if that's the reason.
Author
Owner

@ffidan61 commented on GitHub (Mar 21, 2022):

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

@ffidan61 commented on GitHub (Mar 21, 2022): You are right. I somehow had installed docker via snap. Switched back to legacy now immich works :+1:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#28