ImmichI
Immich11mo ago
Athul

Permission issue for Restored Immich (with borg)

I have backed up the immich_app that runs on my raspberry pi using borgBackup, as shown in the Backup Script.

To test this backup, I have restored it to my laptop running windows (WSL + docker_desktop).
  • Borg didn't have any erros
  • db restoration (as shown here) didn't have any errors either.
While trying to start immich with docker compose up -d, immich start-up fails silently. It doesn't open on localhost:2283, and the logs show that immich_postgres keeps restarting every few seconds because of a permission error.

Borg docs had mentioned something related to permission issues if the user that's restoring is not the user who backed up. But there must be a way to restore on a different machine right?


LOG of immich_postgres:
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are enabled.

initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
fixing permissions on existing directory /var/lib/postgresql/data ... chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
Was this page helpful?