connect ECONNREFUSED 172.18.0.6:3001 - ECONNREFUSED
Stacktrace
Error: connect ECONNREFUSED 172.18.0.6:3001
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
25 Replies
Pastebin
###################################################################...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Can you look at the logs for the immich-server container?
ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...

Why are you changing this?
I have postgre running without container
Is that causing issues ?
I bet the server can't connect to it and hasn't started, which is why connection refused for 3001
Pull up the container logs for the server though
Oh sorry, just saw this message lol
Let's say your docker network is 10.1.0.1
and you are trying to connect to 192.168.0.10
so it is not on the same network, you might have to use the bridge mode for the network to be able to connect
oh
can I just set it back to immich_postgres
?
However, I suggest using the internal database, for better compatibility and ease of backup/migration if needed
I believe so
should I stop this here ?
sry new to docker

Just change the value, then restart the stack
yes
The three dots probably has a restart option

after restarting
You changed the env back?
Have you changed the value?

let me stop and start isntead restart

still same issue, connecting to that ip
like it didnt reand new env
do I need to run docker compose up again ?
from the command line. do
docker compose down
then docker compose up
it worked
tyvm
👍