-
Hi, this issue has been since ~1.100? I think. I started Immich around 1.9x ? I am now on 1.105.1 I think the issue is with my old Portainer-Stack file settings?? Symptoms are;
I have checked read-only access within both containers and they work with the external libraries;
All four of those photos have read-only access. I have checked the external paths, and validated them successfully. The rest of Immich works great, including new images from 2x Android phones nightly, including facial recognition etc. But, I am unsure how to update the PG database from docker volume to a mounted volume? ( I don't want to loose all my albums and face tagging for 20yrs of images). My Settings; Portainer Stack;
The latest Portainer Stack; (image paths, and namely the volume for database container)
Would this be causing my scan and offline issues? How do I migrate the docker volume to my mounted disk volume? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 24 replies
-
Can you check if the mount is actually there? |
Beta Was this translation helpful? Give feedback.
-
Hi Alex, Firstly, thanks for Immich! This is how I check; (correct me if i'm wrong?) Host Terminal;
Is this the correct way to check it? Edit; I also check the microservices container logs; and notice this after every scan, re-scan, and forced re-scan;
This always comes up as 0 assets, even if they are present? Is it a permission thing with the docker containers? I don't know what else to check - it worked great for all the initial imports of external library, and i'm not sure when it all went 'offline'. |
Beta Was this translation helpful? Give feedback.
-
@alextran1502 any ideas? Anything I can try to investigate? I'm really trying to avoid making a new library; 2 weeks of scanning, 24 import paths, 175 albums, 210 named people... i really wish to not do all that again. |
Beta Was this translation helpful? Give feedback.
-
Just ran another test; Created a new Import Library using the gui, the folder was nested in my external library called "test_import"; Both server and microservices containers can see it in the 4 locations;
However, the microservices container "Found 0 assets when crawling import paths" but didn't list the new import path; "test_import". Is the external library scanning feature having bugs? |
Beta Was this translation helpful? Give feedback.
-
@etnoy So; Debug & Verbose logging have been on for some time (i'm watching the microservices container logs). New External Libraries get listed, all the actions get listed, how many assets it finds, faces, etc. The original External Library that plays up keeps displaying this;
FYI; my docker mount is (for reference above); I just completed the following test;
Is it the import paths (and directories themselves) have spaces in them? I also chmod'd everything in my external library to be 774. |
Beta Was this translation helpful? Give feedback.
-
Hi etony; I have pgadmin running and connected to the immich database, however I do not know what I am looking for within it to verify data paths? Do you have information you could share so I can start searching and trying to validate? Thanks |
Beta Was this translation helpful? Give feedback.
-
I will try, I have never used a database or pgadmin, so far I've only
connected, I haven't discovered how to display the tables.
Edit;
Ok, I have found the tables, and can view them. Give me some time to roam about!
|
Beta Was this translation helpful? Give feedback.
-
Hi @etnoy So I have discovered; Table: libraries :: ImportPaths Any import paths with spaces have " " around them; eg; And import paths without spaces, have no "" around them; eg; Table: assets :: originalPath values in this column do not have "" around their paths, which the paths include spaces. eg; '/docker_container_location/import path with space/file.jpg' However, I have two test libraries, with and without spaces, that work. And the large original External Library that isn't working (with spaces). Can also confirm, I have assets that are offline, that have no spaces in their import paths or file paths. What else should I look for? |
Beta Was this translation helpful? Give feedback.
-
From the post above, if I modify the database ImportPath values, and it doesn't fix it, can I revert them back without isssues? I'm at a loss for what to do to fix (without rebuilding), but I've never worked with databases, and I don't understand enough of the backend of the Immich Microservices to understand the mechanics of the "asset is offline" part. Any hints or leads to chase to resolve would be much apricated so I can try and find the route cause of the issue. thanks |
Beta Was this translation helpful? Give feedback.
-
Edit edit: the force re-scan appears to have fixed it, perhaps this was unrelated. Sorry for the noise. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I have a similar issue, but not all files are offline. Only like 10-15 files (from ~60000) are often marked as offline when using Scan New Library Files. I just run the scan 3 times, first time I got 13 files marked as offline, second time no files offline (correct), third time the 13 same files again. But I remember a week ago there were at least some different files. I think this never happened when using Re-scan All Library Files option. This scan takes bit longer and I think that's what I always successfully used to fix my issue. |
Beta Was this translation helpful? Give feedback.
-
Maybe my solution will help, I noticed that my offline files had a different path than the path set in my external library. |
Beta Was this translation helpful? Give feedback.
-
For those searching; please see above link. Issue was found to be Single Quotation Marks in the directories (and sub-directories) of one particular Import Path. The entire external library consisted of 24 import paths, and only one had Single Quotation Marks in the parent import path and multiple sub-directories. The Import Path itself Validated fine with the validation button. But once saved and the External Library scanned, it rendered all assets in the entire external library (all 24 import paths) as Offline; "Found 0 asset(s) when crawling..." The original external library was import in full around the 1.9xx.x days, not sure what exact release. |
Beta Was this translation helpful? Give feedback.
#6845 (reply in thread)
For those searching; please see above link.
Issue was found to be Single Quotation Marks in the directories (and sub-directories) of one particular Import Path.
The entire external library consisted of 24 import paths, and only one had Single Quotation Marks in the parent import path and multiple sub-directories.
The Import Path itself Validated fine with the validation button. But once saved and the External Library scanned, it rendered all assets in the entire external library (all 24 import paths) as Offline; "Found 0 asset(s) when crawling..."
The original external library was import in full around the 1.9xx.x days, not sure what exact release.