ImmichI
Immich5mo ago
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"

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!
Was this page helpful?