Switching from a NixOS instance to the TrueNAS Scale app. All data was in ZFS pools immich-pg and immich-data
App or docker compose stack will not start due to a issue with postgres container Container ix-immich-pgvecto-1 Error in /var/log/app_lifecycle.log.
Make sure to check permissions https://docs.immich.app/administration/system-integrity/#folder-checks and follow these instructions https://docs.immich.app/install/truenas/
- SSH into truenas
docker compose lsto find location of compose file./mnt/.ix-apps/app_configs/immich/versions/1.10.4/templates/rendered/docker-compose.yamlin my case- cd in that dir
- Follow immich docs https://docs.immich.app/administration/backup-and-restore/
- Container name is different here:
docker start rendered-pgvecto-1instead ofdocker start immich_postgres - Check compose file for database name
cat docker-compose.yaml. Name and user areimmich. - Run
docker psto find postgres container id.2abeccd00195forghcr.io/immich-app/postgres:15-vectorchord0.4.3-pgvectors0.2.0in my case. - Run restore command from immich docs.
gunzip --stdout "/mnt/pool1/services/immich/immich-data/backups/immich-db-backup-1759449600005.sql.gz" \
| sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" \
| docker exec -i immich_postgres psql --dbname=immich --username=immich docker compose up -dno error, all healthy. Nice!- Kill again and start from truenas dashboard!
docker compose down -v