I
Immich•3w ago
Eugeezy

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
Immich
Immich•3w ago
: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.
Eugeezy
EugeezyOP•3w ago
Marius Hosting
How to Install Immich on Your Synology NAS
Trustworthy expert guide to your Synology NAS.
NoMachine
NoMachine•3w ago
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
Eugeezy
EugeezyOP•3w ago
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?
NoMachine
NoMachine•3w ago
could you share your envs and compose file?
Eugeezy
EugeezyOP•3w ago
whats the best way to get them?
Mraedis
Mraedis•3w ago
? you filled them in yourself for portainer -> edit stack, that's your compose file env file is whatever you fill in below
Eugeezy
EugeezyOP•3w ago
yeah cause I uploaded some and then edited it in portainer so might be different
Mraedis
Mraedis•3w ago
just edit it again and don't make any changes or discard them
Eugeezy
EugeezyOP•3w ago
No description
No description
No description
Eugeezy
EugeezyOP•3w ago
does this help?
Mraedis
Mraedis•3w ago
No description
Eugeezy
EugeezyOP•3w ago
oops duh hah
Eugeezy
EugeezyOP•3w ago
Eugeezy
EugeezyOP•3w ago
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
Mraedis
Mraedis•3w ago
Why is start_interval: 30s commented out
Eugeezy
EugeezyOP•3w ago
oh 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
Mraedis
Mraedis•3w ago
Right, your docker version is outdated 👀 but what you need to comment out is:
healthcheck:
disable: false
healthcheck:
disable: false
and all of the
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
interval: 5m
#start_interval: 30s
start_period: 5m
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
interval: 5m
#start_interval: 30s
start_period: 5m
Eugeezy
EugeezyOP•3w ago
okay let me try that. I should be on the latest docker
No description
Eugeezy
EugeezyOP•3w ago
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)
Eugeezy
EugeezyOP•3w ago
No description
Mraedis
Mraedis•3w ago
What do the logs say when you press the i symbol next to immich_postgres
Eugeezy
EugeezyOP•3w ago
PostgreSQL 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).
Mraedis
Mraedis•3w ago
this is a new install right?
Eugeezy
EugeezyOP•3w ago
yes all new
Mraedis
Mraedis•3w ago
delete everything inside of the /volume1/docker/immich/db directory
Eugeezy
EugeezyOP•3w ago
okay done
Mraedis
Mraedis•3w ago
restart the database container and wait I guess 👀
Eugeezy
EugeezyOP•3w ago
okay let me see wahoooo it works! thank you so much for all the help!

Did you find this page helpful?