ERROR [TypeOrmModule] Unable to connect to the database.
I'm running into an issue where Immich won't start and is just spitting a bunch of these errors: . This is a totally fresh install so not sure what could be causing this. Thanks in advance!
10 Replies
Looks like the issue is that none of the containers have access to either the LAN or the internet which is still something I haven't been able to figure out how to fix so if anyone has any ideas feel free to let me know
Can you post your Docker compose? And what OS is this running on?
It’s running on Ubuntu and this is essentially just the default compose file
The issue with none of my containers is an issue with all the non immich containers running on this host as well
This shouldn't necessarily be an issue. Do you have custom docker networks?
Nope
I’m trying to move to a new host so this is a totally fresh install of both Ubuntu and Docker
Also don’t the containers need lan to connect to each other or connect to the db
Docker internally has a default bridge network. Most of the time that is something like
172.16.0.0/24
afaik. This is used for internal container communication
I think it would still be helpful to have your docker compose and .env
file. And a little more log; what does immich_redis say for instance?Sure
I can’t grab those now unfortunately but I’ll send those as soon as I can
.env
redis logs
Ended up figuring it out
Essentially the mail server install I had going borked with the network configs when installing which removed all of the containers' abilities to have any connection to the internet or the lan which I guess messed up Immich's ability to contact the db and other needed services