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
: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.That's very very strange... Can you give some more detail on what you did etc?
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
Can you post your compose, env etc?
compose.yml just like in the docs except for this section
.env
Just noticed, that the album-covers just show up in the app, not on the web.
I changed the image: prodrigestivill/postgres-backup-local:14 to image: tensorchord/pgvecto-rs:pg16-v0.2.0I 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?
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
If it's just files missing, I'd expect the album to show empty thumbnails, not just nothing
Oh hmm
UPLOAD_LOCATION is there

Are those file dates from last year?
For completeness you'll also want to check inside those folders
Just another thought...
The fotos in the albums are from an external library
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
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?
Make sure they're mounted properly, run the scan, check the logs
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. 🙏
Yeah that's fine
Thanks again and thanks for the work on the great app.