mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Index: .ppignore is inconsistently ignoring files #2481
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#2481
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrzool on GitHub (Feb 10, 2026).
Originally assigned to: @mrzool on GitHub.
Before You Continue
What Is Not Working as Documented?
Ignoring files and folders whose names match certain patterns is documented as supported via
.ppignorefiles, but this does not appear to work reliably.Specifically, some files are ignored based on their extension using wildcard rules (e.g.
*.mov,*.MOV) in a.ppignorefile placed in the main directory, while other files matching the same rules are still being indexed.This happens despite identical file extensions and a single, correctly placed
.ppignorefile, suggesting the ignore mechanism is applied inconsistently.How Can We Reproduce It?
The issue does not appear to be reliably reproducible, as the ignore behavior is inconsistent. Files matching the same ignore rules are sometimes ignored correctly and sometimes indexed.
I observed this while attempting to ignore
.movfiles, but the issue may affect other file types as well. The library being indexed is a large (~17 TB) media archive.Steps attempted:
.ppignorefile in the mainoriginalsdirectory (exact contents provided below)..ppignorerules are still being added to the index.What Behavior Do You Expect?
Files and directories whose names match rules defined in a correctly detected
.ppignorefile should be ignored consistently and reliably, as documented, and never be indexed.What Could Be the Cause?
Unknown. The behavior appears inconsistent, and I was not able to identify a clear pattern or condition under which
.ppignorerules are applied or ignored.Logs, Sample Files, or Screenshots
.ppignoreI’m trying to build a photos-only archive. Since
.ppignoredoes not support whitelisting, this file explicitly excludes video, audio, and other non-image formats, (thus the length).Indexing logs
The logs clearly show (a) the
.ppignoregetting detected and directories matching ignore patterns getting ignored successfully (b)movfiles getting correctly ignored and (c)movfiles getting indexed shortly after.Which Software Versions Do You Use?
mariadb from 11.8.5-MariaDB, client 15.2 for debian-linux-gnuOn What Device Is PhotoPrism Installed?
PhotoPrism is running in Docker on a Synology NAS (DSM) with MariaDB, indexing a ~17 TB archive stored on an external USB SSD connected to the NAS.
Do You Use a Reverse Proxy, Firewall, VPN, or CDN?
Using the standard DSM reverse proxy and VPN for remote access.
@lastzero commented on GitHub (Feb 10, 2026):
@mrzool Thanks for your report! If you can help us test it extensively using our development preview build, I can provide a fix/improvement for this issue. I'm currently testing it locally.
@lastzero commented on GitHub (Feb 10, 2026):
@mrzool These changes resolve an issue in which .ppignore rules could be bypassed for related media files during indexing/import. Previously, when a related file (e.g., a generated preview sidecar) was processed later, an ignored main file (e.g.,
*.mov) could be added.Ignore rules are now consistently reapplied to related files, ensuring that ignored files stay ignored. I started a new preview build so you can test this and provide feedback:
Please let us know if it works for you!
@mrzool commented on GitHub (Feb 10, 2026):
Thanks so much for your reply. I’m pretty swamped with work right now but I’ll test this with the dev preview build as soon as possible and update the thread accordingly.