I
Immichβ€’3mo ago
KaZ

Import images uploaded after backup was taken

I had to restore from a backup taken a week ago. The restore went great and I have Immich back up and running with photos showing from a week ago and older. However, I was expecting all the photos to show, since I have Immich set to upload to a NAS, which was not wiped, so all the photos are still there. Is it possible to get Immich to rescan the uploads folder to include all the photos? Even if the current profile has no idea they were uploaded?
30 Replies
Immich
Immichβ€’3mo ago
:wave: Hey @KaZ, 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. :ballot_box_with_check: 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. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Mraedis
Mraedisβ€’3mo ago
How did you know you restored if the images aren't showing up @KaZ ?
KaZ
KaZOPβ€’3mo ago
Sorry if I wasn't being clear. Images older than 1 week (that was included when I took my backup) are showing. Anything newer is not I believe the newer photos should be there too, since they are stored on a NAS, which was never touched. I had the docker-compose.yml file from before and reconstructed everything based on that. These are my storage locations FYI: UPLOAD_LOCATION=/mnt/photosNfs/upload THUMB_LOCATION=./library/thumbs ENCODED_VIDEO_LOCATION=/mnt/photosNfs/encoded-video PROFILE_LOCATION=./library/profile BACKUP_LOCATION=./library/backups Anything on /mnt/photosNfs wasn't touched. Anything local was wiped and rebuilt
Mraedis
Mraedisβ€’3mo ago
There is no "scan" for the upload folder I'm afraid
KaZ
KaZOPβ€’3mo ago
Hmm okay, unfortunate. We still have the two phones that have been uploading the images from the last week. Can we mark the photos for re-upload in the Android client? They were initially uploaded using the automatic backup
Mraedis
Mraedisβ€’3mo ago
You can't, it's a bit of a painful situation I believe best bet would be to clear data for the app and re-process everthing, assuming you don't have crazy amounts of assets on the phone?
KaZ
KaZOPβ€’3mo ago
It's a few thousand photos and videos I would guess. But there is also some older stuff not currently on our phones, so I would hate to lose that
Mraedis
Mraedisβ€’3mo ago
I thought you said the older stuff was uploaded?
KaZ
KaZOPβ€’3mo ago
Maybe I misunderstood. I thought you were suggesting to clear the Immich data. Are you suggesting to clear the data of the Immich app on the phones?
Mraedis
Mraedisβ€’3mo ago
Yes πŸ™‚ Only the phones, and not the pictures, just the app It will try to upload everything, but duplicates will be rejected
KaZ
KaZOPβ€’3mo ago
Okay, that would probably work well. Any duplicates would be caught by Immich I would guess. That's a pretty neat idea. Okay cool, time to figure out how to do that in the app then! Thanks a bunch
Mraedis
Mraedisβ€’3mo ago
SImply uninstall and wipe all app data And then just log in again
KaZ
KaZOPβ€’3mo ago
Okay thank you so much
KaZ
KaZOPβ€’3mo ago
Ah shoot. I didn't realize the photos aren't actually showing. But this is probably a question for a different post. Basically, I see each photo as an option to click on (no thumbnails though but I figured that was due to not generating them), but the photos also don't load when I click on them
No description
No description
Mraedis
Mraedisβ€’3mo ago
ah uhh πŸ‘€ If you download them, what happens?
KaZ
KaZOPβ€’3mo ago
Weirdly enough Videos seem to load. Very confusing. Downloading an image gets me a JPG file that opens without issue
Mraedis
Mraedisβ€’3mo ago
Seems like the thumbs are the issue then
KaZ
KaZOPβ€’3mo ago
I'll try to hit the ALL button on the Generate Thumbnails job
Mraedis
Mraedisβ€’3mo ago
Did you recover the thumbs folder? If not, yes that's what you need to do πŸ˜›
KaZ
KaZOPβ€’3mo ago
No I didn't back that one up since I figured I could just regenerate them haha. I just thought the photos would still open, even without thumbnails
Mraedis
Mraedisβ€’3mo ago
THey do actually We just show thumbs in a lot more places than you think It's a bit misleading because the 'big' thumbs are 1440p
KaZ
KaZOPβ€’3mo ago
Ah okay so big thumbs are probably what it's trying to open when I click the image?
Mraedis
Mraedisβ€’3mo ago
Yep And then when you zoom I think it will cut over to the actual image
KaZ
KaZOPβ€’3mo ago
Which would also explain why videos are working, since they don't have a big thumb?
Mraedis
Mraedisβ€’3mo ago
Yep
KaZ
KaZOPβ€’3mo ago
Very cool, I learned something new today! Other than needing a better backup strategy LOL
Mraedis
Mraedisβ€’3mo ago
nah you're doing fine, even managed a restore
KaZ
KaZOPβ€’3mo ago
I appreciate the kind words! I'll report back in a few hours if the thumbnail thing worked πŸ™‚ Thank you so much Alright, found a few images that now has Thumbnails and they load as expected. Thank you again! I will let the job run, and then reinstall the app on our phones to re-upload everything.
hoplie
hoplieβ€’3mo ago
Would it have been possible to identify the β€žlastβ€œ uploaded asset from db, identify all assets younger than that date on the nas, move them out (as they arenβ€˜t referenced in the db anyway) and just reupload them? That would have been the workflow i would have thought of first.
Mraedis
Mraedisβ€’3mo ago
Yes but that's potentially a lot of manual work

Did you find this page helpful?