I
Immich•3mo ago
Keedera

Problems after image upgrade

Hi all, as i wrote here https://github.com/immich-app/immich/pull/19673#issuecomment-3122892075 i do not know how to solve this problem due to the fact that i cannot connect to server container (error /bin/bash: start.sh: No such file or directory reported on logs). After some reading on above link seems to be that move the file (start.sh) to the right position not only is not a solution, but it is impossible to do because i am unable to connect to server as i said before. So i get a good suggestion from danieldietzler on github (i am LordRouter there) to came here hoping to find a way to solve without lose any data on my immich server. On above link there is my docker-compose.yml and env file, do i repost it here? The only thing Logs says is what i wrote above: error /bin/bash: start.sh: No such file or directory (i've upgraded from 135) Any help is appreciated, Thanks to all
21 Replies
Immich
Immich•3mo ago
:wave: Hey @Keedera, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA [Pull Request] chore: dockerfile layout changes (immich-app/immich#19673) Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Keedera
KeederaOP•3mo ago
i can't paste other container logs because discord gets them as .txt even if i put they here as code ...
Daniel
Daniel•3mo ago
That's not a problem, it'll still be formatted nicely :)
Keedera
KeederaOP•3mo ago
ok i try to do so, thanks
Keedera
KeederaOP•3mo ago
Keedera
KeederaOP•3mo ago
Using SSD storage

PostgreSQL Database directory appears to contain a database; Skipping initialization

2025-07-26 15:47:38.267 UTC [1] LOG: redirecting log output to logging collector process

2025-07-26 15:47:38.267 UTC [1] HINT: Future log output will appear in directory "log".

Using SSD storage

PostgreSQL Database directory appears to contain a database; Skipping initialization

2025-07-26 15:49:31.822 UTC [1] LOG: redirecting log output to logging collector process

2025-07-26 15:49:31.822 UTC [1] HINT: Future log output will appear in directory "log".
Using SSD storage

PostgreSQL Database directory appears to contain a database; Skipping initialization

2025-07-26 15:47:38.267 UTC [1] LOG: redirecting log output to logging collector process

2025-07-26 15:47:38.267 UTC [1] HINT: Future log output will appear in directory "log".

Using SSD storage

PostgreSQL Database directory appears to contain a database; Skipping initialization

2025-07-26 15:49:31.822 UTC [1] LOG: redirecting log output to logging collector process

2025-07-26 15:49:31.822 UTC [1] HINT: Future log output will appear in directory "log".
immich postgres (above)
[07/26/25 15:47:55] INFO Starting gunicorn 23.0.0

[07/26/25 15:47:55] INFO Listening at: http://[::]:3003 (8)

[07/26/25 15:47:55] INFO Using worker: immich_ml.config.CustomUvicornWorker

[07/26/25 15:47:55] INFO Booting worker with pid: 9

[07/26/25 15:48:10] INFO Started server process [9]

[07/26/25 15:48:10] INFO Waiting for application startup.

[07/26/25 15:48:10] INFO Created in-memory cache with unloading after 300s

of inactivity.

[07/26/25 15:48:10] INFO Initialized request thread pool with 4 threads.

[07/26/25 15:48:10] INFO Application startup complete.

[07/26/25 15:49:39] INFO Starting gunicorn 23.0.0

[07/26/25 15:49:39] INFO Listening at: http://[::]:3003 (8)

[07/26/25 15:49:39] INFO Using worker: immich_ml.config.CustomUvicornWorker

[07/26/25 15:49:39] INFO Booting worker with pid: 9

[07/26/25 15:49:50] INFO Started server process [9]

[07/26/25 15:49:50] INFO Waiting for application startup.

[07/26/25 15:49:50] INFO Created in-memory cache with unloading after 300s

of inactivity.

[07/26/25 15:49:50] INFO Initialized request thread pool with 4 threads.

[07/26/25 15:49:50] INFO Application startup complete.
[07/26/25 15:47:55] INFO Starting gunicorn 23.0.0

[07/26/25 15:47:55] INFO Listening at: http://[::]:3003 (8)

[07/26/25 15:47:55] INFO Using worker: immich_ml.config.CustomUvicornWorker

[07/26/25 15:47:55] INFO Booting worker with pid: 9

[07/26/25 15:48:10] INFO Started server process [9]

[07/26/25 15:48:10] INFO Waiting for application startup.

[07/26/25 15:48:10] INFO Created in-memory cache with unloading after 300s

of inactivity.

[07/26/25 15:48:10] INFO Initialized request thread pool with 4 threads.

[07/26/25 15:48:10] INFO Application startup complete.

[07/26/25 15:49:39] INFO Starting gunicorn 23.0.0

[07/26/25 15:49:39] INFO Listening at: http://[::]:3003 (8)

[07/26/25 15:49:39] INFO Using worker: immich_ml.config.CustomUvicornWorker

[07/26/25 15:49:39] INFO Booting worker with pid: 9

[07/26/25 15:49:50] INFO Started server process [9]

[07/26/25 15:49:50] INFO Waiting for application startup.

[07/26/25 15:49:50] INFO Created in-memory cache with unloading after 300s

of inactivity.

[07/26/25 15:49:50] INFO Initialized request thread pool with 4 threads.

[07/26/25 15:49:50] INFO Application startup complete.
immich machine learning (above)
/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory
/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory

/bin/bash: start.sh: No such file or directory
immich server (above)
Zeus
Zeus•3mo ago
Please run the following:
docker compose down
docker image prune -a
docker compose up -d
docker compose down
docker image prune -a
docker compose up -d
Please share the output of these commands
Keedera
KeederaOP•3mo ago
immich runs on docker, managed it via portainer. Host machine is a Mini pc intel with ubuntu 22.04 i do all via portainer, anyway docker compose down output this
docker compose down
no configuration file provided: not found
docker compose down
no configuration file provided: not found
docker image prune -a
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y
Deleted Images:
untagged: ghcr.io/immich-app/immich-server@sha256:df5bbf4e29eff4688063a005708f8b96f13073200b4a7378f7661568459b31e9
deleted: sha256:79eeffe9d8642e13089ef8f0130cdf3d6bbb6686a1030a20289f24a2465f2ba4
deleted: sha256:f5953bb28e1eaacaeda263a67c74fe3bd11d20b090682b0ccb5677dd7ccc5586
deleted: sha256:3ab5a158552272317a0a7ffac4450a4e6c10d0bcd86f85b29b2f3b4807af56b5
deleted: sha256:7ad82eb5b317c747933673705c8f272f4335b7dc75e4575be787be29e7bf5eec
deleted: sha256:c078923cdd1f73628a85cda00503d333f99828385c25ef8c467ccc0345b082c2
deleted: sha256:629f6ac0852aae6d7cb5bf9e64577e9f1854647fa6615bd96825ccb70a1b8a8f
deleted: sha256:c80a2d1061ec592dda41134238b8899d22c6b72e0a0fe89470ef52708b015852
deleted: sha256:00124d0ef44d614d26898f3232d8d93842b746ba3d52e5d1d88d8847e119beda
deleted: sha256:b892251f4be38a204e5d1b4eef819f717dfafd2314ea4978dca11f8502e8e9d5
deleted: sha256:628f856aee364251e3eb64b38347af93683cc7f34c126470a7698bca568e3693
deleted: sha256:e358c1bc3fe53527a131320d5e16026196193d1c6de9618c932ed0a6dbeab543
deleted: sha256:444c5d3c7b257dac730fe875dc87d2ce857da01be62a002ac8a6b1358795ce61
deleted: sha256:804e77d80235085ecb76d7211d96fa5de852851904aa9b71f96cc02dc8ebb937
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y
Deleted Images:
untagged: ghcr.io/immich-app/immich-server@sha256:df5bbf4e29eff4688063a005708f8b96f13073200b4a7378f7661568459b31e9
deleted: sha256:79eeffe9d8642e13089ef8f0130cdf3d6bbb6686a1030a20289f24a2465f2ba4
deleted: sha256:f5953bb28e1eaacaeda263a67c74fe3bd11d20b090682b0ccb5677dd7ccc5586
deleted: sha256:3ab5a158552272317a0a7ffac4450a4e6c10d0bcd86f85b29b2f3b4807af56b5
deleted: sha256:7ad82eb5b317c747933673705c8f272f4335b7dc75e4575be787be29e7bf5eec
deleted: sha256:c078923cdd1f73628a85cda00503d333f99828385c25ef8c467ccc0345b082c2
deleted: sha256:629f6ac0852aae6d7cb5bf9e64577e9f1854647fa6615bd96825ccb70a1b8a8f
deleted: sha256:c80a2d1061ec592dda41134238b8899d22c6b72e0a0fe89470ef52708b015852
deleted: sha256:00124d0ef44d614d26898f3232d8d93842b746ba3d52e5d1d88d8847e119beda
deleted: sha256:b892251f4be38a204e5d1b4eef819f717dfafd2314ea4978dca11f8502e8e9d5
deleted: sha256:628f856aee364251e3eb64b38347af93683cc7f34c126470a7698bca568e3693
deleted: sha256:e358c1bc3fe53527a131320d5e16026196193d1c6de9618c932ed0a6dbeab543
deleted: sha256:444c5d3c7b257dac730fe875dc87d2ce857da01be62a002ac8a6b1358795ce61
deleted: sha256:804e77d80235085ecb76d7211d96fa5de852851904aa9b71f96cc02dc8ebb937
deleted: sha256:a7e6562f2f27633726699afe69227ba1e0676365735347aa9bc936fbc121d3b8
deleted: sha256:8d172c1d6db3a7169fb2cfb5b9f09f89c20c442df7febe33392cd18fb7181a46
deleted: sha256:7eeb647783c73e061815ff861eb9f9ae50b544a60392f7f41f87980947dde0ac
deleted: sha256:7cefe21440b51ef997989de250124e1f5fdae4f7d9cc68d121912f6545e05b73
deleted: sha256:8abcff5cccfbf527e40ddeabb24a9bb509405fc34817489791f3eea653becd17
deleted: sha256:8386772e80fbc0457070d74649b8f20f63ed5bdec890253c8cf6c3ff3839bc65
deleted: sha256:bcb2106b99a57a94873925802936c90152e6d28df183e94e1a48014a0d1533ab
deleted: sha256:501ebe7090c7defc3efad2c0edef7556230ae581a8194217b7e873ff781958ee
deleted: sha256:1b9d20c7ccf1593e5475981892e64e7f8e6787fcd588e4f3189dbc22f3631ea6
deleted: sha256:af1c3c13c1706a442abdc9eb9347532b63fc2a2ebb4d83263356edd5739838a9
deleted: sha256:8ceaf0a42da72de4183e95726334a1261b16ab821ccacbe04a400c77818c2c48
deleted: sha256:ea680fbff095473bb8a6c867938d6d851e11ef0c177fce983ccc83440172bd72

Total reclaimed space: 1.999GB
deleted: sha256:a7e6562f2f27633726699afe69227ba1e0676365735347aa9bc936fbc121d3b8
deleted: sha256:8d172c1d6db3a7169fb2cfb5b9f09f89c20c442df7febe33392cd18fb7181a46
deleted: sha256:7eeb647783c73e061815ff861eb9f9ae50b544a60392f7f41f87980947dde0ac
deleted: sha256:7cefe21440b51ef997989de250124e1f5fdae4f7d9cc68d121912f6545e05b73
deleted: sha256:8abcff5cccfbf527e40ddeabb24a9bb509405fc34817489791f3eea653becd17
deleted: sha256:8386772e80fbc0457070d74649b8f20f63ed5bdec890253c8cf6c3ff3839bc65
deleted: sha256:bcb2106b99a57a94873925802936c90152e6d28df183e94e1a48014a0d1533ab
deleted: sha256:501ebe7090c7defc3efad2c0edef7556230ae581a8194217b7e873ff781958ee
deleted: sha256:1b9d20c7ccf1593e5475981892e64e7f8e6787fcd588e4f3189dbc22f3631ea6
deleted: sha256:af1c3c13c1706a442abdc9eb9347532b63fc2a2ebb4d83263356edd5739838a9
deleted: sha256:8ceaf0a42da72de4183e95726334a1261b16ab821ccacbe04a400c77818c2c48
deleted: sha256:ea680fbff095473bb8a6c867938d6d851e11ef0c177fce983ccc83440172bd72

Total reclaimed space: 1.999GB
docker compose up -d
no configuration file provided: not found
no configuration file provided: not found
Zeus
Zeus•3mo ago
Idk with portainer but you need to bring down the stack and purge all the images to force re download
Keedera
KeederaOP•3mo ago
i do this every time i upgrade an image
Zeus
Zeus•3mo ago
you should do it again because its possible the first download got corrupted
Keedera
KeederaOP•3mo ago
Should I do this by updating the stack or one stack image at a time?
CJPeckover
CJPeckover•3mo ago
Personally when updating apps with portainer, I'll delete the containers, go to the images page and delete the (now) unused images, then go to the stack and just click deploy Unless stated, I only delete the Immich-server and immich-machine-learning. I leave postgres and redis alone unless a change is explicitly needed per the release notes
Keedera
KeederaOP•3mo ago
for me the working and simpliest way is to go into container and click "recreate" button with flag re-deploy image for every images that needs upgrade this time anyway the stange thing is that there is a file missing (start.sh) upgrading to 135 was to add this flag shared_preload_libraries=vectors.so, vchord.so on command section of docker compose... after that i learned to read breaking changes BEFORE upgrade, thing that i do this time and reading them it seemed like it should work right away but it's not true.
CJPeckover
CJPeckover•3mo ago
Pretty sure with 135 update a breaking change was to remove the database healthcheck and command, wasn't it?
Keedera
KeederaOP•3mo ago
yes, it is
CJPeckover
CJPeckover•3mo ago
*133
Keedera
KeederaOP•3mo ago
Maybe. I only noticed after a couple of version updates because it made me repeat the installation as the first user (which I obviously never did, preferring to solve the problem). Once I understood, I had no more problems. until today.... which is the correct pull command for the latest (136) immich-server image? I ask this because the actual image is v1.135.3 even trying to repull from portainer
CJPeckover
CJPeckover•3mo ago
if using portainer still I would just update the stack: Delete container (server, machine-learning) and images, double check the compose matches similarly to the official one, sparing any specific volume mounts you've set up, then deploy again. You could also test before that that your database is functioning correctly by going through the backup step in https://immich.app/docs/administration/backup-and-restore/
Keedera
KeederaOP•3mo ago
OMG! Now it works! I've done the same things today 2 times and getting errors. Now it works....!!! Thanks for ur support @CJPeckover
CJPeckover
CJPeckover•3mo ago
Happy to help! make sure you've got accessible backups (db, pictures) just in case 🙂

Did you find this page helpful?