© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•14mo ago•
38 replies
mingyee

Unable to connect to database

After upgrading, my immich-server has an error saying “Unable to connect to database”. Some Googling suggested that this might be a database corruption, so I attempted to restore from backup using the instructions online. These instructions don’t seem to change anything, however, because the
docker start immich_postgres
docker start immich_postgres
line seems not to do any database initialisation, since it says a database was already found. So I run the instructions again, this time including deleting the postgres directory. When I do this, however, the restore seems not to actually restore anything, since then Immich does indeed start, but it gives me the welcome page asking me to set up my first user. Assistance fixing the problem would be great, but separately. this is the second upgrade in a row that has somehow broken my Immich instance, and I am getting really confused and frustrated :\.
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ECONNREFUSED - Unable To Connect To Database
ImmichIImmich / help-desk-support
14mo ago
Unable to connect to the database
ImmichIImmich / help-desk-support
3y ago
ERROR [TypeOrmModule] Unable to connect to the database.
ImmichIImmich / help-desk-support
12mo ago
ERROR [TypeOrmModule] Unable to connect to the database.
ImmichIImmich / help-desk-support
3y ago