-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index: Ignore nested storage folder in the originals path #1642
Comments
That's in fact a supported config IF you use a hidden folder name like |
I'd vote for the fail-fast solution here to error on startup. Even though it can be avoid by setting up ignore pattern, this is a case where I see responsibility on the side of the application. Without looking into the code I guess the configurations should be available to the application on startup and therefore allows to check whether the |
It's really not THAT easy because Docker hides the actual host paths. The storage folder could be ANYWHERE in originals. Can't check all folders in originals on startup. |
An onboarding wizard for setting config values like paths and the admin password using the web ui is planned as well. It will include at least a hint to not put the storage insides of originals. |
I think if it's supposed to be a supported configuration, creating a special marker-file a la |
Right, I haven't take the container <-> host mapping into account, but @srett already posted the next idea I had 😄 |
Sounds perfect 👍 |
Updated the Known Issues page in our docs to include this issue: Published: https://docs.photoprism.app/known-issues/#nested-storage-folder |
This creates a .ppstorage file in the storage folder so that it can be automatically ignored if found in the originals path while indexing. Signed-off-by: Michael Mayer <michael@photoprism.app>
The commit referenced above creates a An updated |
In particular, I have not yet tested what happens if the storage folder is identical to the originals folder. Ideally, this should generate a clearly visible error message when PhotoPrism starts so that users know about it and can add/change the related config values. |
Great! |
Signed-off-by: Michael Mayer <michael@photoprism.app>
With these changes, PhotoPrism will fail with an error if:
In addition, An updated |
Signed-off-by: Michael Mayer <michael@photoprism.app>
RIght now, if a user places their "Storage" folder (the folder where albums, sidecar, config, cache etc are) inside their "pictures" folder *the folder that it scans to index from), it creates a loop where it creates thumbnails in Storage, indexes the thumbnails, then makes thumbnails of the thumbnail images, index those etc in a recursive loop.
A potential solution is to write a .dont-scan-me file in the storage folder which tells Photoprism to skip it when indexing.
The text was updated successfully, but these errors were encountered: