Error: getaddrinfo ENOTFOUND redis at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:
hi I am having this error and I cant figure out how to fix it.
Error: getaddrinfo ENOTFOUND redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'redis'
}
Error: getaddrinfo ENOTFOUND redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'redis'
}
Error: getaddrinfo ENOTFOUND redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'redis'
}
29 Replies
:wave: Hey @Eugeezy,
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
Checklist
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.I used this guide https://mariushosting.com/how-to-install-immich-on-your-synology-nas/
Marius Hosting
How to Install Immich on Your Synology NAS
Trustworthy expert guide to your Synology NAS.
the infamous Marius.
if you can start over, I recommend you to follow the official install procedures depending on your platform https://immich.app/docs/install/portainer
oh okay let me start over
[Nest] 11 - 05/01/2025, 6:51:00 PM LOG [Microservices:EventRepository] Initialized websocket server
microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
microservices worker exited with code 1
is my new error any clues?
could you share your envs and compose file?
whats the best way to get them?
? you filled them in yourself
for portainer -> edit stack, that's your compose file
env file is whatever you fill in below
yeah cause I uploaded some and then edited it in portainer so might be different
just edit it again and don't make any changes or discard them



does this help?

oops duh hah
UPLOAD_LOCATION=/volume1/docker/immich/upload
DB_DATA_LOCATION=/volume1/docker/immich/db
IMMICH_VERSION=release
DB_PASSWORD=Eug3n312!@#$
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
Why is
start_interval: 30s
commented outoh I had some error and github said to comment it out
let me uncomment and try again
"Failure
Failed to deploy a stack: compose up operation failed: can't set healthcheck.start_interval as feature require Docker Engine v25 or later"
this was the error. so they said to comment that out. and then this error isnt there anymore
Right, your docker version is outdated 👀
but what you need to comment out is:
and all of the
okay let me try that. I should be on the latest docker

now im getting this one
[Nest] 8 - 05/01/2025, 7:05:27 PM LOG [Microservices:EventRepository] Initialized websocket server
microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

What do the logs say when you press the
i
symbol next to immich_postgresPostgreSQL Database directory appears to contain a database; Skipping initialization
2025-05-01 22:04:35.768 EEST [1] FATAL: database files are incompatible with server
2025-05-01 22:04:35.768 EEST [1] DETAIL: The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 14.17 (Debian 14.17-1.pgdg120+1).
this is a new install right?
yes all new
delete everything inside of the
/volume1/docker/immich/db
directoryokay done
restart the database container and wait I guess 👀
okay let me see
wahoooo
it works!
thank you so much for all the help!