Closed norton-chris closed 1 week ago
Can you help updating to the latest version first then see of the error message is still there?
Ope thought I was at the latest, you guys come out with releases quick :) I just upgraded to v1.118.2 and did the appropriate yml config changes, then deleted the library, created and scanned new library, and I saw all the photos and videos and 154GB in the external library tab, however server stats only says 2GB. Then did a rescan and got the same issue as before. Tons of messages saying: "DEBUG [Microservices:LibraryService] Asset is no longer in an import path, removing: " then the photo name. The external library says 0 assets 0B after that. I think the 2GB in the server stats is from my phone backing up to the library/upload folder, I don't think it's seeing any of the external library assets. edit: I updated the version and docker-compose.yml in the issue.
What is your import path?
@etnoy on Immich: "external/Norton_Family" docker compose: /srv/dev-disk-by-uuid-7936f8bd-919b-463a-8e0f-ea540e30d588/RAID_Drive/Family_Photos:/usr/src/app/external
docker container shows it exists: docker exec -it immich_server bash root@de580e9e8905:/usr/src/app# cd external/ root@de580e9e8905:/usr/src/app/external# ls Norton_Family (other folders I excluded from this output)
Your import path must be absolute.
/usr/src/app/external/Norton_Family
I didn't know a relative path would pass validation, that part is a bug
Oh. Well, that was an easy fix. I see these messages during a rescan and they are showing in the external library tab: "DEBUG [Microservices:LibraryService] Asset was offline or modified, updating asset record"
So it looks like it's working alright now after using an absolute path. Thanks!
Weird that's been working fine for me for months, didn't realize it was absolute path, but I should've tried that.
Oh. Well, that was an easy fix. I see these messages during a rescan and they are showing in the external library tab: "DEBUG [Microservices:LibraryService] Asset was offline or modified, updating asset record"
So it looks like it's working alright now after using an absolute path. Thanks!
Weird that's been working fine for me for months, didn't realize it was absolute path, but I should've tried that.
We have done major work under the hood recently, likely it worked before but no longer. Closing.
The bug
I created a new postgres and library folder to test it wasn't just something weird there and I scanned in one of the smaller folders to test. I found when I scanned in the library it shows the correct size in the external library tab, but under server stats it says 0B but have 1400 images and 200 videos. But I can see everything in Immich just fine. But if I try to rescan the folder, I get a bunch of messages that says: "DEBUG [Microservices:LibraryService] Asset is no longer in an import path, removing: " then the file name it's removing. Then I go back to immich Photos tab and all the images are gone, but they still exist on the hard drive and are in the correct spot in the immich_server docker container.
I have the most recent version of Immich installed through Docker on Armbian on my RockPi. It has run without issues till a couple weeks ago.
My question is why is it removing them? and it was scanning them correctly and the path is the same, but what changed?
How do I fix this issue? I'm out of ideas.
The OS that Immich Server is running on
Armbian 23.8.1 bullseye
Version of Immich Server
v1.118.2
Version of Immich Mobile App
v1.118.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
Immich has been working fine since January and I've been staying up-to-date. I've followed the breaking changes and made appropriate changes.