make dev fails on fresh Debian VM due to permission issues #2029

Closed
opened 2026-02-05 04:46:57 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @kaysond on GitHub (Jan 21, 2024).

The bug

make dev fails on a fresh OS install and fresh clone of the latest release.
image

Doing a chmod a+w ./web then running again fixes that problem, but runs into another:
image

This directory doesn't get created until somewhat into the build process, so you could keep doing chmods, but ultimately the issue is caused by using the node user in https://github.com/immich-app/immich/blob/main/web/Dockerfile
Removing those bits and running the container as root works. I'm guessing many people are logged in with the default uid of 1000, which is what the node user in the container uses. Thus permissions just work. But if you're not using that uid, it won't work.

The OS that Immich Server is running on

Debian 12

Version of Immich Server

v1.93.2

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

docker/sample.env

Reproduction steps

1. Install Debian 12 and set up a root user only
2. Install Docker
3. Clone immich release
4. Run `make dev`

Additional information

No response

Originally created by @kaysond on GitHub (Jan 21, 2024). ### The bug `make dev` fails on a fresh OS install and fresh clone of the latest release. ![image](https://github.com/immich-app/immich/assets/1147328/1e007e32-4b18-4bf5-8848-e2041d26f47b) Doing a `chmod a+w ./web` then running again fixes that problem, but runs into another: ![image](https://github.com/immich-app/immich/assets/1147328/db221bfa-2e15-4a8d-89aa-ebc5e821b232) This directory doesn't get created until somewhat into the build process, so you could keep doing chmods, but ultimately the issue is caused by using the `node` user in https://github.com/immich-app/immich/blob/main/web/Dockerfile Removing those bits and running the container as root works. I'm guessing many people are logged in with the default uid of 1000, which is what the node user in the container uses. Thus permissions just work. But if you're not using that uid, it won't work. ### The OS that Immich Server is running on Debian 12 ### Version of Immich Server v1.93.2 ### Version of Immich Mobile App N/A ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell docker/sample.env ``` ### Reproduction steps ```bash 1. Install Debian 12 and set up a root user only 2. Install Docker 3. Clone immich release 4. Run `make dev` ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2029