2019-03-18 09:56:41,040 (7fdd9cff9700) : CRITICAL (agentkit:639) - Exception when constructing media object (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/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-782228f99/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-782228f99/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-782228f99/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-782228f99/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-782228f99/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-782228f99/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-782228f99/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)
Sorry for answering so late.
If you see the log that I passed you can see a permission error. OSError: [Errno 13] Permission denied: '/config/Library/Application Support/Plex Media Server/Media/localhost/d/941b916143d0ed1fab7d5c21711e99d2312ca72.bundle/Contents/Subtitle Contributions'
I changed the permissions of the folder d / 941b916143d0ed1fab7d5c21711e99d2312ca72.bundle from cmd and everything was solved.
This has happened to me because I tried to update the library from cmd on ubuntu server: docker exec -ti plex /usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh
Then there was a confusion of permissions with ubuntu server and docker.