I have a large majority of my media stored in a unionfs mount that uses GDrive. Recently, much of the media placed there does not have metadata tied to it, and usually will not automatically show the poster art. The poster art is there to select from, so it seems to be matching it, it just won’t choose it automatically.
This didn’t used to be the issue, and in fact the movies that already had the metadata available have the same permissions as the more recently added movies that are having this issue. All of the folder structures are the same, and I’ve never had an issue with Plex naming conventions.
TV Shows stored on this drive have had the same issue recently as well. I’ve refreshed metadata, changed the order of various agents, confirmed IPV6 is off at both an OS level and on my router, and I’m unsure what else to do at this point.
(Incidently, around the same time I’ve had a few shows that refuse to be marked as watched. I can mark them as watched, but they’ll usually show as unwatched about a day or so after. This is less of a concern than the metadata).
May I recommend turning off Cinematerial agent and selecting PlexMovie.
Personally, I never use it.
Cinematerial is mishaving for some reason.
2019-06-18 14:23:12,203 (7f525a7fc700) : CRITICAL (agentkit:1078) - Exception in the update function of agent named 'CineMaterial', called with guid 'com.plexapp.agents.imdb://tt2980516?lang=en' (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-005053bb5/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1076, in _update
agent.update(obj, media, lang, **kwargs)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-005053bb5/MoviePosterDB.bundle/Contents/Code/__init__.py", line 42, in update
valid_names.append(self.add_poster(metadata, secret, poster, i))
File "/usr/lib/plexmediaserver/Resources/Plug-ins-005053bb5/MoviePosterDB.bundle/Contents/Code/__init__.py", line 55, in add_poster
thumb_url = poster['thumbnail_location']
File "/usr/lib/plexmediaserver/Resources/Plug-ins-005053bb5/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in <lambda>
_getitem_ = lambda x, y: x.__getitem__(y),
KeyError: 'thumbnail_location'
After doing this, you will need to “Refresh all metadata” so it scans, reconnects, and downloads anything possibly missing.
Thanks for the advice, but now I’ve gone and disabled that one and moved it all the way down the list, refreshed metadata, and no changes.
And while fixing another film for another reason, I’ve noticed that this issue isn’t just limited to the unionfs mount, it’s happening with a local drive as well. Somehow this makes me feel a little better about the issue?
Given it’s failed so many time prior to doing this, let’s take the next step and forcibly clear the metadata cache. Partial downloads have also been known to manifest this way.
stop plex
cd “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Caches”
delete everything here ( sudo rm -rf )
Start Plex
Now perform the refresh.
If still failing, please collect a new set of logs and attach upon completion.
I’m seeing a few other issues so will share as I encounter then from your logs:
DNS Rebinding Protection - Need to allow plex.direct private domain in the DNS resolver of the modem/router. This will slow things down and cause communication issues between client and server. It won’t impact the metadata.
Jun 24, 2019 08:57:36.584 [0x7fe365ffb700] WARN - HTTP error requesting GET https://192-168-1-167.c4c88daf54ae421b9baa9a41f5045750.plex.direct:32400 (0, No error) (Failed to connect to 192-168-1-167.c4c88daf54ae421b9baa9a41f5045750.plex.direct port 32400: No route to host)
This is more metadata retrieval failing.
Jun 24, 2019 08:57:48.983 [0x7fe3cd7fa700] DEBUG - HTTP requesting GET /media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jun 24, 2019 08:57:48.983 [0x7fe3cd7fa700] ERROR - Error issuing curl_easy_perform(handle): 3
Jun 24, 2019 08:57:48.983 [0x7fe3cd7fa700] WARN - HTTP error requesting GET /media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (0, No error) (<url> malformed)
With it unfortunately coming down to this:
Jun 24, 2019 08:59:19.896 [0x7fe3857fa700] ERROR - SQLITE3:(nil), 11, database corruption at line 64873 of [bf8c1b2b7a]
Jun 24, 2019 08:59:19.896 [0x7fe3857fa700] ERROR - SQLITE3:(nil), 11, statement aborts at 8: [select tags.id as 'tags_id', tags.parent_id as 'tags_parent_id', tags.metadata_item_id as 'tags_metadata_item_id', tags.tag as 'tags_tag', tags.tag_type as 'tags_tag_type', tags.tag_val
Jun 24, 2019 08:59:19.896 [0x7fe3857fa700] ERROR - Exception inside transaction (inside=1) (../Library/MetadataItem.cpp:6093): sqlite3_statement_backend::loadOne: database disk image is malformed
Jun 24, 2019 08:59:19.896 [0x7fe3857fa700] ERROR - Exception loading item '7 Minutes' f
There is database damage. PMS 1.15.x variants seem to be susceptible to this. 1.16.x is looking better.
It might be best to either:
Return to your previous copy of 1.14.1.5488 or step forward to 1.16.x
Replace the damaged database by copying one of the backups into primary place and refreshing the metadata again.
Thanks f or the advice. Just so I’m understanding, are you suggesting that simply updating to 1.16.x should help with this database issue, or do I also need to roll back to an older backup for this to work again?
I moved this library over when I moved machines. It’s now running in a docker container and I’m running into a few issues. One is that about half of my movies, and anything newly added (movies and TV) are not showing poster art or metadata. They match fine, but just won’t pull the other data. I’ve already cleared out all of my plugins caches per the plex article and I followed the other article you shared to repair the databases without any change.
The other issue I’m having is that it’s showing as an indirect connection regardless of where I’m connecting to (this is less dire since it still connects). I have my router forwarding the port to the docker container IP address, but it’s the same problem if I forward it to the machine’s IP address as well.