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
lowbeat
lowbeatOP3y ago
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.
jrasm91
jrasm913y ago
Can you look at the logs for the immich-server container?
lowbeat
lowbeatOP3y ago
ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...
Alex Tran
Alex Tran3y ago
No description
Alex Tran
Alex Tran3y ago
Why are you changing this?
lowbeat
lowbeatOP3y ago
I have postgre running without container Is that causing issues ?
jrasm91
jrasm913y ago
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
Alex Tran
Alex Tran3y ago
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
lowbeat
lowbeatOP3y ago
oh can I just set it back to immich_postgres ?
Alex Tran
Alex Tran3y ago
However, I suggest using the internal database, for better compatibility and ease of backup/migration if needed I believe so
lowbeat
lowbeatOP3y ago
should I stop this here ? sry new to docker
lowbeat
lowbeatOP3y ago
No description
Alex Tran
Alex Tran3y ago
Just change the value, then restart the stack yes
jrasm91
jrasm913y ago
The three dots probably has a restart option
lowbeat
lowbeatOP3y ago
No description
lowbeat
lowbeatOP3y ago
after restarting
jrasm91
jrasm913y ago
You changed the env back?
Alex Tran
Alex Tran3y ago
Have you changed the value?
lowbeat
lowbeatOP3y ago
No description
lowbeat
lowbeatOP3y ago
let me stop and start isntead restart
lowbeat
lowbeatOP3y ago
No description
lowbeat
lowbeatOP3y ago
still same issue, connecting to that ip like it didnt reand new env do I need to run docker compose up again ?
Alex Tran
Alex Tran3y ago
from the command line. do docker compose down then docker compose up
lowbeat
lowbeatOP3y ago
it worked tyvm
Alex Tran
Alex Tran3y ago
👍

Did you find this page helpful?