Bug: Plexignore makes local media assets disappear (Plex Movie agent)

  1. I’m sorry I was not able to provide immediate 1:1 notification to your satisfaction.
  2. While not clear in the release notes, the activity is listed.

I will use the example given by @Volts and submit for this once verified.
If not, I will post back here

1 Like

No need for sarcasm here. I just meant that I could’ve provided immediate feedback while the bug was being investigated. Because it sounds like a similar bug was being fixed instead of mine.

If you’re talking about #13373, that’s a completely different bug.

Thanks, although I think my example from the OP was also pretty good. Hey, as long as this gets tackled, I can’t complain.

Please let me apologize.

Plex hat off

I do not like showing my personal side here so please understand.
I’m trying to recover from long covid and a chest infection which won’t quit.
I am not having a good month.
I’m normally bright and friendly in all correspondence.

I’m sorry if I allowed my frustrations from another user spill out here. It was not intentional.

Again, please accept my apologies.

Plex hat on

I will figure this out, get to the bottom of it, and get it resolved.

1 Like

You don’t need to apologize, maybe I did sound a little impatient. I just hate waiting. At the end of the day, we’re in the same team, striving for the same goal: A better Plex experience.
And thank you for listening. Get well soon!

@Ari @Volts

I know something is missing here.
Please direct me further.

Source Files:

[chuck@lizum Fantastic Beasts and Where to Find Them (2016).2038]$ ll
total 69668676
drwxrwxr-x 2 chuck chuck         184 Mar  1 17:41 ./
drwxr-xr-x 3 chuck chuck          68 Mar  1 17:41 ../
---------- 1 chuck chuck 16859201962 Mar  1 17:11 Fantastic Beasts and Where to Find Them (2016) [1080p].mkv
-rw-r--r-- 1 chuck chuck 54170432046 Jan  1  2019 Fantastic Beasts and Where to Find Them (2016).mkv
-rw-rw-rw- 1 chuck chuck   311082334 Mar  1 17:13 Fantastic Beasts-interview.mkv
[chuck@lizum Fantastic Beasts and Where to Find Them (2016).2039]$ 

Scanning error in log.

Mar 01, 2022 18:45:58.785 [0x7f3bd763eb38] DEBUG - Activity: registered new activity 0aca5975-a6d7-4380-b43a-5da098194f85 - "Scanning"
Mar 01, 2022 18:45:58.785 [0x7f3bd763eb38] DEBUG - Scanning section 9
Mar 01, 2022 18:45:58.785 [0x7f3bdaffeb38] DEBUG - Completed: [192.168.0.13:38208] 201 POST /library/sections?name=IGNORE&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&downloadMedia=&location=%2Fglock%2Fplex%2Fqa%2Fignore&prefs%5BenableBIFGeneration%5D=0&prefs%5BcollectionMode%5D=0 (9 live) TLS GZIP 23701ms 849 bytes (pipelined: 12)
Mar 01, 2022 18:45:58.785 [0x7f3bd763eb38] DEBUG - Activity: updated activity 0aca5975-a6d7-4380-b43a-5da098194f85 - completed 0.0% - Scanning IGNORE
Mar 01, 2022 18:45:58.788 [0x7f3bcad8cb38] DEBUG - MyPlex: Sending Server Info to myPlex (user=Chuck.Lasher@gmail.com, ip=, port=0)
Mar 01, 2022 18:45:58.788 [0x7f3bcad8cb38] DEBUG - HTTP requesting POST https://plex.tv/servers.xml?auth_token=xxxxxxxxxxxxxxxxxxxx
Mar 01, 2022 18:45:58.788 [0x7f3bd763eb38] DEBUG - Job was already killed, not killing again.
Mar 01, 2022 18:45:58.790 [0x7f3bd763eb38] DEBUG - Asked to cull library timeline before time 1646177158, we're starting with 2048 items.
Mar 01, 2022 18:45:58.790 [0x7f3bd763eb38] DEBUG - Library timeline cull complete with 2048 items left.
Mar 01, 2022 18:45:58.790 [0x7f3bd763eb38] DEBUG - Scanning IGNORE using en-US(Plex Movie) with 0 current media items and 1 section locations in the database.
Mar 01, 2022 18:45:58.790 [0x7f3bd763eb38] DEBUG - Performing a scan with 'Plex Movie' (language: en-US virtual: 0).
Mar 01, 2022 18:45:58.790 [0x7f3bd763eb38] DEBUG -   * Scanning /glock/plex/qa/ignore
Mar 01, 2022 18:45:58.791 [0x7f3bcaec7b38] DEBUG - [Database optimization/com.plexapp.plugins.library.db] Activity: Ended activity de47baf3-e219-4897-a99a-0f2932bf4b6b.
Mar 01, 2022 18:45:58.791 [0x7f3bd763eb38] DEBUG - Scanner: Processing directory /glock/plex/qa/ignore (parent: no)
Mar 01, 2022 18:45:58.793 [0x7f3bd763eb38] DEBUG - Scanner: Processing directory /glock/plex/qa/ignore/Fantastic Beasts and Where to Find Them (2016) (parent: yes)
Mar 01, 2022 18:45:58.796 [0x7f3bd763eb38] ERROR - Error opening file '"/glock/plex/qa/ignore/Fantastic Beasts and Where to Find Them (2016)/Fantastic Beasts and Where to Find Them (2016) [1080p].mkv"' - Permission denied (13)
Mar 01, 2022 18:45:58.797 [0x7f3bd763eb38] DEBUG - Directory had 1 files, database had 0 files, can't skip.
Mar 01, 2022 18:45:58.797 [0x7f3bd763eb38] ERROR - Error opening file '"/glock/plex/qa/ignore/Fantastic Beasts and Where to Find Them (2016)/Fantastic Beasts and Where to Find Them (2016) [1080p].mkv"' - Permission denied (13)
Mar 01, 2022 18:45:58.798 [0x7f3bca9deb38] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/home/plex/Library/Application\ Support/Plex\ Media\ Server/Codecs/62cc2bc-4226-linux-x86_64/' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Media Scanner' '--match' '--type' '1' '--log-file-suffix' ' Matcher' '--files' '/glock/plex/qa/ignore/Fantastic Beasts and Where to Find Them (2016)/Fantastic Beasts and Where to Find Them (2016).mkv'
Mar 01, 2022 18:45:58.798 [0x7f3bd763eb38] DEBUG - Activity: updated activity 0aca5975-a6d7-4380-b43a-5da098194f85 - completed 99.0% - Scanning IGNORE
Mar 01, 2022 18:45:58.798 [0x7f3bca9deb38] DEBUG - [JobRunner] Jobs: Starting child process with pid 810487
Mar 01, 2022 18:45:58.803 [0x7f3bdace1b38] DEBUG - [HttpClient] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:37859/:/plugins/tv.plex.agents.movie/prefs
Mar 01, 2022 18:45:58.803 [0x7f3bd6ff2b38] DEBUG - [tv.plex.agents.movie] HTTP reply status 200, with 132 bytes of content.
Mar 01, 2022 18:45:58.804 [0x7f3bdaffeb38] DEBUG - Completed: [192.168.0.13:38210] 200 GET /:/plugins/tv.plex.agents.movie/prefs (9 live) TLS GZIP 32059ms 692 bytes (pipelined: 1)
Mar 01, 2022 18:45:58.832 [0x7f3bd6f69b38] DEBUG - Request: [192.168.0.13:38208 (Subnet)] GET /media/providers (8 live) TLS GZIP Signed-in Token (ChuckPA)
Mar 01, 2022 18:45:58.835 [0x7f3bdafdbb38] DEBUG - Completed: [192.168.0.13:38208] 200 GET /media/providers (8 live) TLS GZIP 2ms 5894 bytes (pipelined: 13)
Mar 01, 2022 18:45:58.843 [0x7f3bd6ff2b38] DEBUG - Request: [192.168.0.13:38212 (Subnet)] GET /library/sections (9 live) TLS GZIP Signed-in Token (ChuckPA)
Mar 01, 2022 18:45:58.844 [0x7f3bdaffeb38] DEBUG - Completed: [192.168.0.13:38212] 200 GET /library/sections (9 live) TLS GZIP 1ms 1478 bytes (pipelined: 1)
Mar 01, 2022 18:45:58.876 [0x7f3bdc9dbb38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 810487 is 0 (success)
Mar 01, 2022 18:45:58.876 [0x7f3bca9deb38] ERROR - Unknown metadata type: 
Mar 01, 2022 18:45:58.876 [0x7f3bca9deb38] DEBUG - Native Scanner: Executed Local Metadata stage in 0.08 sec.
Mar 01, 2022 18:45:58.876 [0x7f3bca9deb38] DEBUG - Looking for path match for [/glock/plex/qa/ignore/Fantastic Beasts and Where to Find Them (2016)/Fantastic Beasts and Where to Find Them (2016).mkv]
Mar 01, 2022 18:45:58.958 [0x7f3bd6f69b38] DEBUG - Request: [192.168.0.13:38212 (Subnet)] GET /media/providers (9 live) TLS GZIP Signed-in Token (ChuckPA)
Mar 01, 2022 18:45:58.958 [0x7f3bd6ff2b38] DEBUG - Request: [192.168.0.13:38208 (Subnet)] GET /library/sections (9 live) TLS GZIP Signed-in Token (ChuckPA)
Mar 01, 2022 18:45:58.959 [0x7f3bdaffeb38] DEBUG - Completed: [192.168.0.13:38208] 200 GET /library/sections (9 live) TLS GZIP 1ms 1478 bytes (pipelined: 14)
Mar 01, 2022 18:45:58.960 [0x7f3bdaffeb38] DEBUG - Completed: [192.168.0.13:38212] 200 GET /media/providers (9 live) TLS GZIP 2ms 5894 bytes (pipelined: 2)
Mar 01, 2022 18:45:58.988 [0x7f3bd6ff2b38] DEBUG - Request: [192.168.0.13:38212 (Subnet)] GET /media/providers (9 live) TLS GZIP Signed-in Token (ChuckPA)
Mar 01, 2022 18:45:58.989 [0x7f3bdafdbb38] DEBUG - Completed: [192.168.0.13:38212] 200 GET /media/providers (9 live) TLS GZIP 1ms 5894 bytes (pipelined: 3)
Mar 01, 2022 18:45:59.090 [0x7f3bd6f69b38] DEBUG - Request: [192.168.0.13:38212 (Subnet)] GET /library/sections/9/all?type=1&includeCollections=1&includeExternalMedia=1&includeAdvanced=1&includeMeta=1 (9 live) TLS Page 0-49 GZIP Signed-in Token (ChuckPA)

No -Interview listed

Only show 2160p file (as expected)

<Media id="139717" duration="7972352" bitrate="54358" width="3840" height="2160" aspectRatio="1.78" audioChannels="8" audioCodec="truehd" videoCodec="hevc" videoResolution="4k" container="mkv" videoFrameRate="24p" videoProfile="main 10">
<Part accessible="1" exists="1" id="139874" key="/library/parts/139874/1546404951/file.mkv" duration="7972352" file="/glock/plex/qa/ignore/Fantastic Beasts and Where to Find Them (2016)/Fantastic Beasts and Where to Find Them (2016).mkv" size="54170432046" container="mkv" videoProfile="main 10">
<Stream id="80608" streamType="1" default="1" codec="hevc" index="0" bitrate="53910" language="English" languageTag="en" languageCode="eng" bitDepth="10" chromaLocation="topleft" chromaSubsampling="4:2:0" codedHeight="2160" codedWidth="3840" colorPrimaries="bt2020" colorRange="tv" colorSpace="bt2020nc" colorTrc="smpte2084" frameRate="23.976" height="2160" level="153" profile="main 10" refFrames="1" width="3840" displayTitle="4K HDR10 (HEVC Main 10)" extendedDisplayTitle="4K HDR10 (HEVC Main 10)"> </Stream>
<Stream id="80609" streamType="2" selected="1" default="1" codec="truehd" index="1" channels="8" language="English" languageTag="en" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" samplingRate="48000" title="TrueHD Atmos 7.1" displayTitle="English (TRUEHD 7.1)" extendedDisplayTitle="TrueHD Atmos 7.1 (English)"> </Stream>
<Stream id="80610" streamType="2" codec="ac3" index="2" channels="6" bitrate="448" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" title="AC3 5.1-EX" displayTitle="English (AC3 5.1)" extendedDisplayTitle="AC3 5.1-EX (English)"> </Stream>
<Stream id="80611" streamType="3" codec="pgs" index="3" language="English" languageTag="en" languageCode="eng" headerCompression="1" title="English (SDH)" displayTitle="English (PGS)" extendedDisplayTitle="English (SDH) (PGS)"> </Stream>
</Part>
</Media>

Right. Why isn’t -Interview listed? Do you expect it not to be listed?

If you delete Fantastic Beasts and Where to Find Them (2016) [1080p].mkv, then the -Interview appears, correct?

Why does an unreadable (or ignored with .plexignore) file cause the extras to vanish?

Maybe I’m missing something obvious myself. :slight_smile:

There is no .plexignore file.

I’m doing this “Step 1” style – What happens when it can’t read one of the files. ?
(I’m slow like that :sunglasses: )

I should be seeing my -interview in front of all the IVA correct?
(I don’t rip extras for the most part)

Interesting tidbit.

May be related, maybe not.

Sorting by inode number , which is how readdir() will see them

[chuck@lizum Fantastic Beasts and Where to Find Them (2016).2040]$ ls -lai
total 69668676
163208845325 drwxrwxr-x 2 chuck chuck         184 Mar  1 17:41 ./
152471457792 drwxr-xr-x 3 chuck chuck          68 Mar  1 17:41 ../
163208845326 ---------- 1 chuck chuck 16859201962 Mar  1 17:11 Fantastic Beasts and Where to Find Them (2016) [1080p].mkv
163208845327 -rw-rw-rw- 1 chuck chuck   311082334 Mar  1 17:13 Fantastic Beasts-interview.mkv
163208845328 -rw-r--r-- 1 chuck chuck 54170432046 Jan  1  2019 Fantastic Beasts and Where to Find Them (2016).mkv

[chuck@lizum Fantastic Beasts and Where to Find Them (2016).2041]$

That being the case, shouldn’t everything get ignored ?

I don’t have many extras myself. I think locally-provided extras are always listed before the IVA ones.

It seems like if it can’t read one of the files, it removes that file … and all associated extras. Even if those extras are still valid for other versions.

Will repeat with that in mind

I’ve recreated it.

Thank you.

1 Like

Should I file this as it stands?

The thread relates to .plexignore.

When I looked these behaved the same -

  • using .plexignore to hide one version
  • using permissions to hide one version

Both resulted in all extras being hidden.

But @Ari originally posted about .plexignore. This doesn’t actually affect me, I was trying to help by reproducing and validating and adding on to his/her report. :slight_smile:

I ask because .plexignore is a fickle thing.
One would think it’s not but a single incorrect character and/or placed in the wrong spot and :boom:

If this can be sufficiently reproduced at this simple level, I’d like to do so but @Ari can make the final determination

My guess is that the local media assets don’t get “saved”, kinda like closing a file before it has the chance to ask you if you wanna save. Maybe a generous try-catch block if we’re talking in code.

I don’t understand what you mean by that. If the question is “Should I report this as-is, meaning extras don’t work when there’s a read error?”, I’d say go for it. It’s likely that both symptoms are part of the same bug/oversight so I bet if that gets fixed, both get fixed.
But can’t you reproduce it my way? Because I would’ve assumed that the plexignore case is much more common (Exhibit A: me) than having a file randomly lack read permissions.

I think that I’ve said earlier in this thread that I would want the plexignore functionality to get a little rework, fixing outstanding bugs and then also having the ability to also ignore more things like extras and subtitles. But let’s focus on the bug first :slight_smile:

@Ari

I’ll give it a try by creating a targeted, single file, .plexignore file.

…adjusting for maximum :fire:

[chuck@lizum ignore.2049]$ ls -la
total 8
drwxr-xr-x  3 chuck chuck   91 Mar  1 20:19 ./
drwxr-xr-x 28 chuck chuck 4096 Mar  1 16:10 ../
drwxrwxr-x  2 chuck chuck  184 Mar  1 17:41 Fantastic Beasts and Where to Find Them (2016)/
-rw-r--r--  1 chuck chuck  106 Mar  1 20:19 .plexignore
[chuck@lizum ignore.2050]$ cat .plexignore 
Fantastic Beasts and Where to Find Them (2016)/Fantastic Beasts and Where to Find Them (2016) [1080p].mkv
[chuck@lizum ignore.2051]$ 

Verified as well.
Bug report, with screenshots, log files, and plexignore contents submitted.

2 Likes

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

Reopened by request.

There is no word from Engineering at this time.