ETIMEDOUT Error when trying to access Immich GUI
ETIMEDOUT Error when trying to access Immich GUI
Edit: I found the solution. I was missing a few environment variables.
These are the functioning Ansible tasks to deploy Immich:
I'm trying to install Immich via Ansible and so far so good. The containers are all running and as long as I don't try to access it the logs all look fine but as soon as I try to access the GUI I get the following error spammed in the immich-server container log and the browser just shows a timeout and doesn't connect to the GUI.
[Nest] 7 - 05/02/2024, 9:20:45 AM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: Connection terminated due to connection timeout
at Connection.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:132:73)
at Object.onceWrapper (node:events:632:28)
at Connection.emit (node:events:518:28)
at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:63:12)
at Socket.emit (node:events:518:28)
at TCP.<anonymous> (node:net:337:12)
Error: connect ETIMEDOUT
at Socket.<anonymous> (/usr/src/app/node_modules/ioredis/built/Redis.js:170:41)
at Object.onceWrapper (node:events:632:28)
at Socket.emit (node:events:518:28)
at Socket._onTimeout (node:net:589:8)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
errorno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect'
}
Here are my Ansible tasks to deploy Immich:
The variables are:
immich_postgres_db_name: immich
immich_postgres_db_user: postgres
immich_postgres_db_password: postgres
for testing purposes.
I'm currently running this on a Hyper-V VM running Fedora 39 Server Edition.
I don't know how to fix this issue, can someone help me?
I found this issue on the Immich GitHub where I found a possible fix regarding the firewall that it might block something but it didn't really help.
So I'm thankful for any ideas you can throw my way. Tell me if you need any more info.
Edit: Overlooked an error in the log and added it to the post.