Upgrade Server on Ubuntu 24.04.1
I tried following the directions I found here
https://immich.app/docs/install/docker-compose/#step-4---upgrading
and my server is still unusable as of the most recent update. I would appreciate assistance troubleshooting, as I was having fun using Immich up until now.
48 Replies
:wave: Hey @Dan,
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_01GY0DAKGXDEHE263BCAYEGFJAChecklist
I have...
1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
FAQ | Immich
User
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
docker compose pull && docker compose up -d
unable to get image 'ghcr.io/immich-app/immich-machine-learning:release': permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/images/ghcr.io/immich-app/immich-machine-learning:release/json": dial unix /var/run/docker.sock: connect: permission denied
that's the command I bashed in, and the readout I got in response
i'm very new to this, so I'm not sure what I'm supposed to do
I see the list of 1-7, and #1 is to confirm I'm on the latest version, which I know I'm not
everything was working fine until I got a notification that there was a new version, and then everything just basically crashed
Can you run “docker —version”
I think you Docker engine is not running
You can run “sudo systemctl start docker”
Docker version 27.4.1, build b9d17ea
I think you need to do these steps so you can run docker command without sudo https://docs.docker.com/engine/install/linux-postinstall/
Docker Documentation
Post-installation steps
Find the recommended Docker Engine post-installation steps for Linux users, including how to run Docker as a non-root user and more.
most people use docker with sudo, did you try that..?
you mean, did I run this command?
sudo systemctl start docker
I did that
sudo docker compose pull && sudo docker compose up
I ran steps 1-4 from there
I tried running this, but it says no configuration file provided. Is there somewhere I need to open the terminal from in order to properly execute this command?
uh, you need to be in the folder that contains the docker-compose.yml file
I executed this command, and it seems to have stalled out
sudo docker compose pull && sudo docker compose up -d
missing -d, my bad
this is all from our docsI'm not just new to running immich on my home server - I'm also really new to all of this, so I appreciate your help
I ran that command - what's the next step?
uh, it should be done ?
I should be able to open immich again?
please post a lot more details, logs from all the containers, what steps you have tried, etc
this is what I got when I typed in the command you suggested
sudo docker compose pull && sudo docker compose up -d
[+] Pulling 4/4
✔ immich-server Pulled 0.3s
✔ database Pulled 0.1s
✔ immich-machine-learning Pulled 0.4s
✔ redis Pulled 0.1s
[+] Running 4/0
✔ Container immich_postgres Runni... 0.0s
✔ Container immich_machine_learning Running 0.0s
✔ Container immich_redis Running 0.0s
✔ Container immich_server Running 0.0s
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e5ca0905190f ghcr.io/immich-app/immich-machine-learning:release "tini -- ./start.sh" 11 minutes ago Up 11 minutes (healthy) immich_machine_learning
59a7cb7d8cfd ghcr.io/immich-app/immich-server:release "tini -- /bin/bash s…" 11 minutes ago Up 11 minutes (healthy) 0.0.0.0:2283->2283/tcp, :::2283->2283/tcp immich_server
ec0393e8f838 redis:6.2-alpine "docker-entrypoint.s…" 3 days ago Up 31 hours (healthy) 6379/tcp immich_redis
efe6ad3466dc tensorchord/pgvecto-rs:pg14-v0.2.0 "docker-entrypoint.s…" 3 days ago Up 31 hours (healthy) 5432/tcp immich_postgres
let me know what else you need to see
docker compose logs
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.oneoff%3DFalse%22%3Atrue%2C%22com.docker.compose.project%3Dimmich%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied
seems like I might be doing something wrong
Here is a good article about sudo and root permissions: https://servicenow.iu.edu/kb?id=kb_article_view&sysparm_article=KB0022817
you should expect to have to run most docker commands, and other major comands, as sudo on linux. since you are not running as the root user/admin
About Unix sudo and su commands - IUKB
The Unix commands sudo and su allow access to other commands as a different user.
gotcha. I added sudo to the command, and got a huge readout
do you want me to paste the whole thing here?
Please run
curl http://localhost:2283
I got a failed to connect message
curl: (56) Recv failure: Connection reset by peer
I also got a different error message when I replaced the "localhost" with the IP address of the server
curl: (28) Failed to connect
I'm still stuck trying to get the server to work again. Any assistance would be appreciated. I am also happy to go through and read whatever I need to - I guess I'm just trying to get this thing diagnosed
it was working just fine until yesterday, when I got a message saying there was a new version of the software available
alright, let start
from the command line, can you run
docker compose down && docker compose pull && docker compose up
then monitor the logs and post it here?
Also what is the output of ip -c a
?[+] Running 5/5
✔ Container immich_machine_learning Removed 0.5s
✔ Container immich_server Removed 0.5s
✔ Container immich_redis Removed 0.2s
✔ Container immich_postgres Remov... 0.2s
✔ Network immich_default Removed 0.2s
unable to get image 'docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8': permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/images/docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8/json": dial unix /var/run/docker.sock: connect: permission denied
ip -c a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 98:fa:9b:63:56:a2 brd ff:ff:ff:ff:ff:ff
altname enp0s31f6
inet 192.168.0.138/24 brd 192.168.0.255 scope global noprefixroute eno1
valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:a2:6a:45:e8 brd ff:ff:ff:ff:ff:ff
22: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1350 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 100.64.100.6 peer 100.64.100.5/32 scope global tun0
valid_lft forever preferred_lft forever
Can you put the code between the three back-tick to format them as code?

Alright, you need the
sudo
in front of all the command'''
[+] Running 5/5
✔ Container immich_machine_learning Removed 0.5s
✔ Container immich_server Removed 0.5s
✔ Container immich_redis Removed 0.2s
✔ Container immich_postgres Remov... 0.2s
✔ Network immich_default Removed 0.2s
unable to get image 'docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8': permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/images/docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8/json": dial unix /var/run/docker.sock: connect: permission denied
'''
well that's not it
backtick is next to number 1 on the keyboard
Can you run
sudo docker compose pull
?
then sudo docker compose up
the other command is taking longer to populate
yeha that is fine, the server is starting up and depends on your machine, the time it takes is varied
does it start eventually?
it's running through this process every five minutes
still running
would you like to see what's happened so far?
Yes please
You need to put the
compose up -d
so it will detachimmich_server | [Nest] 17 - 01/09/2025, 7:33:49 PM LOG [Api:Bootstrap] Immich Server is listening on http://[::1]:2283 [v1.124.2] [production]
so it started
I wanted to see all logs so I don 't put that in the commandyeah, the UI is running again
So neext is to go to the browser and enter
http://192.168.0.138:2283
okay
so it works?it would appear so
so do you know why it stopped working?
so i don't have to bother you fine people again next time
thank you, by the way
Not sure, maybe it wasn't stop working but perhaps using
sudo
in the command doesn't bring the container up automatically?So you do this https://docs.docker.com/engine/install/linux-postinstall/
Docker Documentation
Post-installation steps
Find the recommended Docker Engine post-installation steps for Linux users, including how to run Docker as a non-root user and more.
then logout and log back in your Ubuntu server/VM
after that, bring down the container and start it with
docker compose up
without sudo
Thank you