Albums are empty after restore

I has to restore my immich-server-DB. I got it running again now under dockge with the image: tensorchord/pgvecto-rs:pg16-v0.2.0 . All persons that are back and also I can see all albums I created, but they are all empty, with 0 Items. The album-cover is shown. Is there a way to get the pictures back into the albums without sorting them new?
18 Replies
Immich
Immich4mo ago
:wave: Hey @Nordlicht-13, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
bo0tzz
bo0tzz4mo ago
That's very very strange... Can you give some more detail on what you did etc?
Nordlicht-13
Nordlicht-13OP4mo ago
I had immich running under TrueNAS and immich was not starting any more after an update. So I set it up under dockge with the standard compose.yml and .env files. In the compose-file I changed the image: prodrigestivill/postgres-backup-local:14 to image: tensorchord/pgvecto-rs:pg16-v0.2.0 Then I did the following steps: - docker compose down -v - rm -rf /mnt/diskpool-1/Apps_Data/immich/postgres/* - docker compose pull - docker compose create - docker start immich_postgres - sleep 10 - gunzip < "/mnt/diskpool-1/Office/dump.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 --username=postgres docker compose up -d
bo0tzz
bo0tzz4mo ago
Can you post your compose, env etc?
Nordlicht-13
Nordlicht-13OP4mo ago
compose.yml just like in the docs except for this section
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg16-v0.2.0
# image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: --data-checksums
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg16-v0.2.0
# image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: --data-checksums
.env
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/diskpool-1/Apps_Data/immich/upload
# The location where your database files are stored
DB_DATA_LOCATION=/mnt/diskpool-1/Apps_Data/immich/postgres
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Berlin

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=myPASSWORD123

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/diskpool-1/Apps_Data/immich/upload
# The location where your database files are stored
DB_DATA_LOCATION=/mnt/diskpool-1/Apps_Data/immich/postgres
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Berlin

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=myPASSWORD123

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
Just noticed, that the album-covers just show up in the app, not on the web.
bo0tzz
bo0tzz4mo ago
I changed the image: prodrigestivill/postgres-backup-local:14 to image: tensorchord/pgvecto-rs:pg16-v0.2.0
I don't see how it would cause this issue but that's a bit odd. The first image is a postgres backup tool that would be separate from the actual postgres database If you had that in your compose then it's not the same as in the docs - can you post the full compose file for completeness? And just to double check some things: Were there any errors logged when you ran the restore command? Is the rest of Immich (timeline view etc) working properly? Are the assets you'd expect to see in the albums still visible elsewhere? Are there any things in Immich's trash?
Zeus
Zeus4mo ago
We should focus on the web UI and ignore the app for now If you’re able to login and see the albums, but no images, it’s likely that the UPLOAD_LOCATION files are missing
bo0tzz
bo0tzz4mo ago
If it's just files missing, I'd expect the album to show empty thumbnails, not just nothing
Zeus
Zeus4mo ago
Oh hmm
Nordlicht-13
Nordlicht-13OP4mo ago
UPLOAD_LOCATION is there
No description
bo0tzz
bo0tzz4mo ago
Are those file dates from last year? For completeness you'll also want to check inside those folders
Nordlicht-13
Nordlicht-13OP4mo ago
Just another thought... The fotos in the albums are from an external library
bo0tzz
bo0tzz4mo ago
So then "compose.yml just like in the docs" is even less true ;) If Immich can't find files from an external library, they'll get marked as offline and removed from view (they'll show up in the trash panel, though they're not really "trashed") Odds are that's what happened
Nordlicht-13
Nordlicht-13OP4mo ago
Just checked the external librarys in the admin. They show up with 0 files. Do I have to scan them again to get them working again? What do I have to change in the compose.yml?
bo0tzz
bo0tzz4mo ago
Make sure they're mounted properly, run the scan, check the logs
Nordlicht-13
Nordlicht-13OP4mo ago
Great, everything back in place again an running on my licensed server. Log without errors. Is it okay to run immich with tensorchord/pgvecto-rs:pg16-v0.2.0, or should I change here something? Thanks for the help. 🙏
bo0tzz
bo0tzz4mo ago
Yeah that's fine
Nordlicht-13
Nordlicht-13OP4mo ago
Thanks again and thanks for the work on the great app.

Did you find this page helpful?