EHOSTUNREACH 172.18.0.3:6379
Hi guys! All of the sudden my Immich_Server started restarting every 2 minutes and says that it can't connect to the Redis on port 6379.
I've tried rebooting my server, pulling the latest images but to no help.
I'm running it in docker and the error message in Immich_server is something like this:
Error: connect EHOSTUNREACH 172.18.0.3:6379
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1634:16) {
errno: -113,
code: 'EHOSTUNREACH',
syscall: 'connect',
address: '172.18.0.3',
port: 6379
}
and after a while:
microservices worker error: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details., stack: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.
at Socket.<anonymous> (/usr/src/app/node_modules/ioredis/built/redis/event_handler.js:182:37)
at Object.onceWrapper (node:events:639:26)
at Socket.emit (node:events:524:28)
at TCP.<anonymous> (node:net:351:12)
microservices worker exited with code 1
Killing api process
Initializing Immich v1.120.2
Detected CPU Cores: 4
I dont think I have made any changes at all (I updated the immich_server to latest version yesterday tho).
Please help!
29 Replies
:wave: Hey @mURGA,
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. :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.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
Initializing Immich v1.120.2This does not compute with "latest version" if you are on release, try
docker compose pull
againI might be really slow over here, but just to make sure I even used this image; ghcr.io/immich-app/immich-server:v1.125.7 and rebuilt it, still in logs:
Initializing Immich v1.120.2
Detected CPU Cores: 4
Starting api worker
Starting microservices worker
Can you detail the exact steps and commands you use?
I have an inkling you're doing
docker (compose) start
instead of docker compose up
im actually using portainer for deploying so I just go Containers -> immich_server -> recreate -> Pull latest image
what does
docker ps -a
sayf1458bdc5f2a ghcr.io/immich-app/immich-server:v1.125.7 "tini -- /bin/bash sā¦" 4 minutes ago Up 57 seconds (healthy) 0.0.0.0:2283->2283/tcp, :::2283->2283/tcp immich_server
Well that looks good at least, is it the only immich server in there?
yup
FYI when we ask for logs and command output, no need to filter anything (unless you want certain things unseen for privacy reasons), more is always better
If you're not using any volumes to store data I'd compose down the immich project, prune all docker images and then compose up again (it will pull fresh because prune)
i am using volumes.. š I deployed immich as a stack in portainer - heres how it looks;
WARNING: Make sure to use the docker-compose.yml of the current release:
https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
The compose file on main may not be compatible with the latest release.
#
name: immich
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- stack.env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
maybe something is off over here? also there are things about redis, machine learning and postgre
That's not the full compose though š
no it aint, i couldnt paste the text due to 2000 char limit
Could you either save it all in a file and upload that or use code blocks

coming up!
Doesn't look like you're using volumes for the storage š
model-cache is no worry
im sorry docker is not my native language š
here's how it looks in portainer;

yeah but those aren't docker volumes
ahh, as i said im kinda new to all this!
If you stop and start the stack, what are the logs for each container? For immich server the top is fine until it errors
I'm going to sleep now, I'll check in the morning š
sorry but everything looks like it's on the old version
Are you SURE you're doing this toggle @mURGA ?

otherwise it won't do much
you sure are a wizard my guy!
i was redeploying the IMAGE on the CONTAINER and not the stack..
now everything seems to work again. thanks a lot!
Glad it works, but keep the words family friendly if you please. š
im sorry, edited it out - i got too excited i guess!