[BUG] .plexignore in Photo library (QFile upload)

Server Version#: 1.20.1.3252
Player Version#: app.plex.tv (4.41.1)

Since Camera upload isn’t working right now on Plex for iOS (more info here). I have temporary switched to QFile, which can do Auto upload of photos to a specific folder on the QNAP. The only challenge with this is, that QFile doesn’t keep track of what is uploaded. So I’m forced to keep all photos in one folder on the QNAP. But hey, at least QFile is working as planned.

I move my photos to separate date folders (ex. 2020-09-04 - Some title). This results in dublicated photos, since QFile uploads all files - every time. So I made a .plexignore file in the root of the photo library, which excludes the specific QFile uploads folder.

# Ignore subdirectories
*( uploads )/*

When I do a scan in PlexWeb, the upload folder is excluded. When QFile uploads a new photo, all photos in the uploads folder are included/indexed again by PMS. Which results in +2000 photos being scanned/included every time QFile uploads one or more photos/videos.

To me this looks like a bug in PMS, since it shouldn’t include this folder by .plexignore. Are there any known bugs with .plexignore?

How exactly is that uploads folder named and where does it sit in the photo folder root?

I would assume it’s something like this based on your info:

/Photos/.plexignore
/Photos/QFile ( uploads )/bunch of stuff
/Photos/2020-09-03 - Some title
/Photos/2020-09-04 - Some title

If that’s the case then the .plexignore file should work, otherwise please scan the library and then post some logs (Settings -> Troubleshooting -> Download logs)

Yes, you’re example is correct.

The Photo library is pointing to:

/share/CACHEDEV2_DATA/Media/Photos

The ignore file is located at this location:

/share/CACHEDEV2_DATA/Media/Photos/.plexignore

With the following content:

# Ignore files with the extension
*.cr2
*.plist
*.heic

# Ignore subdirectories
*( uploads )/*

The uploads folder is a this location:

/share/CACHEDEV2_DATA/Media/Photos/( uploads )

I’ll get back with the logs. I’m not able to get these right now.

I stopped PMS. Deleted everything in the PMS Logs folder. Started PMS again. Waited a few minutes, so PMS could be done with it’s init jobs. So the logs should be fairly clean.

I took a photo on my mobile, started QFile. Auto upload automatically starts. Now I can hear my NAS working for like 10 minutes (tagging ignored photos). So I decided to get the logs, before it was completely done (will take +30 mins).

Looks like PMS is checking this folder (I could be wrong tho)

Sep 04, 2020 11:29:07.427 [0x7fd95fd11700] DEBUG - [Notify] Now watching “/share/CACHEDEV2_DATA/Media/Photos/( uploads )”

PMS detected upload here:

Sep 04, 2020 11:30:18.493 [0x7fd9122b3700] INFO - Library section 34 (Photos) will be updated because of a change in ‘“/share/CACHEDEV2_DATA/Media/Photos/( uploads )”/IMG_4465.jpg’

PMS logs (DEBUG only)
Plex Media Server Logs_2020-09-04_11-39-30.zip (1.1 MB)

Thanks for the logs, that’s really useful.

I have an idea of what might be going wrong but haven’t tested it yet, however if my theory is correct then there may be an easy work-around for this.

Could you try and put a .plexignore file inside the ( uploads ) folder which contains the following:

# ignore all files in the folder
*
# ignore any sub-directories in the folder
*/*

This seams to have solved the problem. I can now see a bunch of these (on all files in the uploads folder):

Sep 04, 2020 12:01:13.998 [0x7ff5b1f76700] DEBUG - PlexIgnore: Ignoring file '/share/CACHEDEV2_DATA/Media/Photos/( uploads )/2019-04-23 11.58.20.MOV' because of rule '*'

I can’t tell, if these following lines are the photos in the uploads folder - or from some other location (previous throttling):

Sep 04, 2020 12:01:14.042 [0x7ff5b3fff700] WARN - AutoTagging: the service is currently throttled, skipping item 230209
Sep 04, 2020 12:01:14.042 [0x7ff5b3fff700] DEBUG - AutoTagging: completed 1 items
Sep 04, 2020 12:01:14.043 [0x7ff5b3fff700] WARN - AutoTagging: the service is currently throttled, skipping item 230461
Sep 04, 2020 12:01:14.043 [0x7ff5b3fff700] DEBUG - AutoTagging: completed 1 items
Sep 04, 2020 12:01:14.044 [0x7ff5b3fff700] WARN - AutoTagging: the service is currently throttled, skipping item 231437
Sep 04, 2020 12:01:14.044 [0x7ff5b3fff700] DEBUG - AutoTagging: completed 1 items

Not that important tho, since there are only a few lines of these.

Thanks! I’ll file an issue for the .plexignore bug and take a look when I get a chance. Hopefully this works correctly for you now in the meantime.

Those would have to be old ones as items skipped by plexignore wouldn’t get ids to begin with.

1 Like

Thanks for the help @drzoidberg33 Much appreciated! :wink:

@drzoidberg33 I noticed, that there was a .plexignore fix in the current PMS release. Was this a fix for this bug?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.