© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•7mo ago•
125 replies
Bean

Authentication Error after Restoring Backup

I wanted to move my Docker install and immich DB to a new volume and so I am trying to restore my DB from one of the backups in UPLOAD_LOCATION/Backups.

I have followed all of the steps as described here https://immich.app/docs/administration/backup-and-restore/ but the logs show that there is authentication errors trying to access the database. I can't understand why as the DB name, username and password haven't changed and I am using the same values in the restore command.

The logs from immich_postgres show this repeatedly every twelve seconds or so:
2025-07-25 09:02:59.137 UTC [196] FATAL:  password authentication failed for user "postgres"
2025-07-25 09:02:59.137 UTC [196] DETAIL:  Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
2025-07-25 09:02:59.137 UTC [196] FATAL:  password authentication failed for user "postgres"
2025-07-25 09:02:59.137 UTC [196] DETAIL:  Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"

I have attached the logs for immich_server and immich_redis as they were both too long to fit in the post. immich_server shows authentication errors, immich_redis shows errors but not specifically authentication.

I have attached my stack.env file, the only thing that I changed since moving my install to a new volume is "DB_DATA_LOCATION" to reflect that the database is to be installed on the new volume. The UPLOAD_LOCATION is remaining on the old volume.

I have attached my docker-compose.yaml as well. I have tried modifying it to write the DB name, username and password directly into the file in case it was a problem with stack.env but that made no difference.

I have attached a .sh file showing my specific modifications to the Restore process. I have no been running this as one .sh script but instead copying and pasting the commands line by line to ensure they all fired off correctly.

Finally I have attached the entire console output of the restore process.

Thanks in advance!
immich_redis-logs.txt3.5KB
stack.env198B
docker-compose.yaml2.24KB
immich_server-logs.txt1.7KB
immich_restore.sh1.1KB
console-output.txt8.54KB
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

Restoring from backup error
ImmichIImmich / help-desk-support
9mo ago
Restoring Backup
ImmichIImmich / help-desk-support
6mo ago
Error while restoring a backup
ImmichIImmich / help-desk-support
3mo ago
Restoring from backup
ImmichIImmich / help-desk-support
8mo ago