Server Version#: 1.18.2.2058
Been getting this really funky error for the past couple of days. I’ve tried downgrading PMS versions, dumping agent caches etc, nothing helps.
019-11-26 15:00:48,953 (7f4782849700) : CRITICAL (agentkit:1091) - Exception in the update function of agent named 'TheTVDB', called with guid 'com.plexapp.agents.thetvdb://303069?lang=en' (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1089, in _update
agent.update(obj, media, lang, **kwargs)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/TheTVDB.bundle/Contents/Code/__init__.py", line 1108, in update
self.processExtras(xml, metadata.seasons[season_num], lang, ivaNormTitle)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/threadkit.py", line 233, in _parallelize_decorator
f(*args, **kwargs)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/TheTVDB.bundle/Contents/Code/__init__.py", line 895, in UpdateEpisodes
ordering = media.settings.get('showOrdering', 'aired') if media.settings else 'aired'
AttributeError: 'NoneType' object has no attribute 'settings'
The MovieDB also gives me a similar error:
2019-11-26 15:03:05,379 (7fbfc2ffd700) : CRITICAL (agentkit:1091) - Exception in the update function of agent named 'The Movie Database', called with guid 'com.plexapp.agents.thetvdb://364322?lang=en' (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1089, in _update
agent.update(obj, media, lang, **kwargs)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/TheMovieDB.bundle/Contents/Code/__init__.py", line 843, in update
def UpdateEpisodes():
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/threadkit.py", line 233, in _parallelize_decorator
f(*args, **kwargs)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/TheMovieDB.bundle/Contents/Code/__init__.py", line 846, in UpdateEpisodes
for s in media.seasons:
AttributeError: 'NoneType' object has no attribute 'seasons'
2019-11-26 14:54:42,730 (7fbfdeffd700) : CRITICAL (agentkit:639) - Exception when constructing media object (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 637, in __init__
setattr(self, 'tree', Media.TreeForDatabaseID(self.id, type(self)._level_names, level_attribute_keys=type(self)._level_attribute_keys))
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 678, in TreeForDatabaseID
tree = MediaTree(cls._core, xml_obj[0], level_names, child_id=dbid if parent_id else None, level_attribute_keys=level_attribute_keys)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 557, in __init__
subitem = MediaTree(self._core, child, next_level_names, level_attribute_keys=next_level_attribute_keys)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 557, in __init__
subitem = MediaTree(self._core, child, next_level_names, level_attribute_keys=next_level_attribute_keys)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 561, in __init__
item = MediaItem(self._core, child)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 497, in __init__
part = MediaPart(self._core, child)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 470, in __init__
self.subtitles = SubtitlesDirectory(self._core, self._core.storage.join_path(self._path, 'Contents', 'Subtitle Contributions', self._core.identifier))
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 365, in __init__
self._core.storage.ensure_dirs(self._path)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 132, in ensure_dirs
self.make_dirs(path)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 128, in make_dirs
os.makedirs(path)
File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/config/Library/Application Support/Plex Media Server/Media/localhost/2/d62007d6dcd526333b1c6af60f53c6b38179dac.bundle/Contents/Subtitle Contributions'