There was an unexpected error loading this library

Server Version#:1.19.1.2701-6327e27bf
Player Version#:Plex Web—General Version 4.22.3
Device: Synology DS1019+, 5 x 4TB disks, no M.2 SSD cache.

Using web browser on my Windows system, I sometimes get the message “There was an unexpected error loading this library” when clicking on a library. Doesn’t matter which library (I have three), and it only happens sporadically. If I reload the page, it will sometimes load without issue and sometimes it will show the error again. Seems to happen more often when the NAS is busy accessing its disks (all five bays populated with 4 TB NAS disks, SHR mode for raid). And I believe a library scan of my Music library was going on at the time the error occurred. In the Plex logs, unless I’m missing it, I don’t see errors related to database corruption. I do see this at approximately the time of the message in the web browser:

2020-04-27 08:50:13,510 (7f2bedd21700) : CRITICAL (runtime:1128) - Exception in thread named ‘_handle_request’ (most recent call last):
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py”, line 1126, in _start_thread
f(*args, **kwargs)
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/interfaces/socketinterface.py”, line 126, in _handle_request
self.finish()
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/web.py”, line 553, in finish
self.request.finish()
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py”, line 432, in finish
self.connection.finish()
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py”, line 262, in finish
self._finish_request()
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/httpserver.py”, line 283, in _finish_request
self.stream.close()
File “/volume1/@appstore/Plex Media Server/Resources/Plug-ins-6327e27bf/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/tornado/iostream.py”, line 124, in close
self.socket.close()
AttributeError: ‘NoneType’ object has no attribute ‘close’

Plex_mmr_logs_20200427.zip (12.5 MB).

Ideas?

Ctrl-F5 and reload the web app.

Your logs show the server is very busy updating metadata (one item every 1/10th second) and generating thumbnails.

One of the queries is very big (29,000+ items)

29,000+ seems small considering my music library has over 280K files in it. But I suppose it depends on what it was querying at the time. What should I look for in the logs to see what it is querying?

As far as original post, that would simply be a symptom of the server being busy?
Would M.2 SSD cache on the NAS help?

An M.2 would help in this case but without knowing the CPU loading (the usage spike) when the query is made, it might be too much to put into one library section given the Passmark rating of the typical Synology.

OK. I will look into M.2 cache and possibly splitting the library up into smaller chunks. Thank you for the reply.

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