Immich-server.service fails to start - dependency or permission issue

What app is this about, and its version: Immich, 2.3.1~ynh3
What YunoHost version are you running: 12.1.36 (stable)
What type of hardware are you using: Old laptop or computer

Describe your issue

after the installation all seemed fine. Later after a restart the redis-server was missing. I installed it again. Seemed to work but after I tried manually to put (thousands of) photos in the upload folder (I did not know that I had to use the webinterface for it) and after a restart there was a problem starting the app and I got a 502 Bad Gateway error if I try to open the app on yunohost.local or on yunohost.local/photos.
The services immich-server and machine-learning won’t start.
Immich is the only app on this Yunohost machine
What I have tried:
sudo chown -R immich:immich /home/yunohost.app/immich
sudo chmod -R 775 /home/yunohost.app/immich/upload/
but have not worked.

Share relevant logs or error messages

journalctl:

Dec 08 21:19:39 systemd[1]: immich-server.service: Job immich-server.service/start failed with result 'dependency'.```

Immich-server log:
```    at FileUploadInterceptor.handleFile (/var/www/immich/app/dist/middleware/file-upload.interceptor.js:145:29)
    at /var/www/immich/app/node_modules/.pnpm/multer@2.0.2/node_modules/multer/lib/make-middleware.js:158:17
    at callbackify (/var/www/immich/app/dist/middleware/file-upload.interceptor.js:72:16)
e[31m[Nest] 18163  - e[39m08/12/2025, 00:03:04 e[31m  ERRORe[39m e[33m[Api:ErrorInterceptor~dde41kpk]e[39m e[31mUnknown error: Error: EACCES: permission denied, mkdir '/home/yunohost.app/immich/upload/29d1f867-1e46-44fa-ae88-1b2d0bf07efb/cf/3e'e[39m
Error: EACCES: permission denied, mkdir '/home/yunohost.app/immich/upload/29d1f867-1e46-44fa-ae88-1b2d0bf07efb/cf/3e'
    at mkdirSync (node:fs:1349:26)```

Hi, please can you show the log files of immich-services, from the webadmin of Yunohost?

Hi, thanks for replying. Log is here:

(I tried to copy the log URL earlier but as a new user here I was not allowed to post URL’s)

thanks.

the following line is strange

Dec 08 21:19:39 systemd[1]: immich-server.service: Job immich-server.service/start failed with result 'dependency'.
  1. What is the result of

    sudo service –status-all

  2. then

    sudo systemctl status immich-server

  3. then

    ls -all /home/yunohost.app/immich/upload/

Thanks Marc. I thought it would be easier and quicker to just do a fresh install of Yunohost and Immich app. I will close the support request.