Plex Randomly freezes multiple times Windows 10

Server Version#: 1.24.1.4931
OS Version: Windows 10 20H2 Build 19042.1165

Player Versions:
Web (4.64.3) [includes Web version on actual server as well]
iOS (7.22)
Xbox (5.23.1)Platform Version 10.0.22000.1759
Smart TV (5.23.1)Platform Version 4

At random times over the past couple of months, My server has suddenly lost connection to all client applications, both remote and local. When these dropped connection occur I have tested on all of the client (player) applications listed above. The strange part is, that once I restart the server, this issue will occur 2-3 additional times in rapid succession (usually just 5-10 minutes apart), and then the server will function normally for a day or two, then the pattern repeats.

I’ve attached my logs from one of the times I have caught it occurring.
This issue occurred a few times on 2021-08-31 in between the times of 21:15:38 - 21:47:42)

Plex Media Server Logs_2021-08-31_21-43-19.zip (3.3 MB)

I’ve already tried a clean install of PMS due to the logs seeming to indicate a few missing files from the installation. This has not resolved the issue. The logs do show a few critical errors identical to the one listed below:

2021-08-31 21:37:34,229 (2920) : CRITICAL (core:574) - Exception reading file C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\WebClient.bundle\Contents\Info.plist (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py”, line 55, in load
f = open(filename, mode)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py”, line 70, in builtins_open
return builtins[‘_open’](longpathify(uni(filename)), mode, buffering)
IOError: [Errno 2] No such file or directory: u’\\?\C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\WebClient.bundle\Contents\Info.plist’

2021-08-31 21:37:34,229 (2920) : CRITICAL (core:574) - Exception adding bundle: WebClient.bundle (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\System.bundle\Contents\Code\bundleservice.py”, line 124, in update_bundles
bundle = BundleInfo(self.system, path, plugin)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\System.bundle\Contents\Code\bundleservice.py”, line 18, in init
self.load_plist()
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\System.bundle\Contents\Code\bundleservice.py”, line 22, in load_plist
plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, “Contents”, “Info.plist”)))
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py”, line 32, in ObjectFromString
check_size(string, max_size)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py”, line 22, in check_size
if len(data) > max_size:
TypeError: object of type ‘NoneType’ has no len()

Thank you for your detailed reporting. We are investigating.

I’m seeing the same problem. In my case, the server is running on TrueNAS, and I also see the server crash. And the errors I get are the same, all in Plug-ins-1a38e63c6 – I’m not sure what this is, but for now I’m trying to revert as much to vanilla as possible to see if I can stop the crashes.

Just checking in to see if there was any update on this issue. The server is most certainly still having this issue. Dropping my logs in here again on the off chance it could help in some way that the previous set didn’t.

Plex Media Server Logs_2021-09-23_14-24-20.zip (4.7 MB)

Hello, Just to let you know these random crashes had gone away, but the latest update brought them back to my system. Is there any update on what may have been causing these issues???

Plex Media Server Logs_2021-11-12_20-59-29.zip (3.8 MB)

Here are my newest logs.

Looks like I am still having the same error. I’m pasting the lines I believe most relevant. Please advise on how I can handle this error.

> 2021-11-12 20:52:49,575 (2d60) :  CRITICAL (core:574) - Exception reading file C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\WebClient.bundle\Contents\Info.plist (most recent call last):
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py", line 55, in load
>     f = open(filename, mode)
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 70, in builtins_open
>     return __builtins__['_open'](longpathify(uni(filename)), mode, buffering)
> IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\Program Files (x86)\\Plex\\Plex Media Server\\Resources\\Plug-ins-8dcc73a59\\WebClient.bundle\\Contents\\Info.plist'
> 
> 2021-11-12 20:52:49,575 (2d60) :  CRITICAL (core:574) - Exception adding bundle: WebClient.bundle (most recent call last):
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\System.bundle\Contents\Code\bundleservice.py", line 131, in update_bundles
>     Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier))
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\System.bundle\Contents\Code\bundleservice.py", line 18, in __init__
>     self.load_plist()
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\System.bundle\Contents\Code\bundleservice.py", line 22, in load_plist
>     plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist")))
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py", line 32, in ObjectFromString
>     check_size(string, max_size)
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py", line 22, in check_size
>     if len(data) > max_size:
> TypeError: object of type 'NoneType' has no len()
> 
> 2021-11-12 20:52:49,591 (2d60) :  DEBUG (runtime:1117) - Created a thread named 'ensure_agent_info_exists_inner'
> 2021-11-12 20:52:49,607 (2d60) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
> 2021-11-12 20:52:49,607 (2d60) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 2068 bytes
> 2021-11-12 20:52:49,621 (1a4c) :  DEBUG (runtime:717) - Handling request GET /system/agents/com.plexapp.agents.none/config/1
> 2021-11-12 20:52:49,638 (1a4c) :  DEBUG (runtime:814) - Found route matching /system/agents/com.plexapp.agents.none/config/1
> 2021-11-12 20:52:49,638 (1a4c) :  CRITICAL (core:574) - Exception reading file C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\WebClient.bundle\Contents\Info.plist (most recent call last):
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py", line 55, in load
>     f = open(filename, mode)
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 70, in builtins_open
>     return __builtins__['_open'](longpathify(uni(filename)), mode, buffering)
> IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\Program Files (x86)\\Plex\\Plex Media Server\\Resources\\Plug-ins-8dcc73a59\\WebClient.bundle\\Contents\\Info.plist'
> 
> 2021-11-12 20:52:49,638 (1a4c) :  CRITICAL (core:574) - Exception adding bundle: WebClient.bundle (most recent call last):
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\System.bundle\Contents\Code\bundleservice.py", line 131, in update_bundles
>     Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier))
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\System.bundle\Contents\Code\bundleservice.py", line 18, in __init__
>     self.load_plist()
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\System.bundle\Contents\Code\bundleservice.py", line 22, in load_plist
>     plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist")))
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py", line 32, in ObjectFromString
>     check_size(string, max_size)
>   File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8dcc73a59\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py", line 22, in check_size
>     if len(data) > max_size:
> TypeError: object of type 'NoneType' has no len()

This is happening to me as well, the server will sporadically quit with the exact same logs as those above. I am running a QNAP NAS.

Thanks!

@alphanerd117 Those messages in that log file can be ignored. Can you please disable Verbose logging, Debug is enough. If you are not using the DLNA service can you please disable it? I’m seeing errors when the Xbox is attempting playback but no hard shutdowns.

When you are attempting to check the server via web browser are you using the hosted app.plex.tv or localhost:port? Are you able to connect via localhost? Does the Remote Access setting so any error?

I apologize I thought that log had verbose disabled , but I guess not. Here is one with it disabled.
Plex Media Server Logs_2021-11-13_23-58-16.zip (3.6 MB)

DLNA has never been active on my server (at least the options are all unchecked in my settings). As stated the server is not hard shutdowns of the server.

When I access the local machine it is running on plex still thinks it’s running, but no clients can connect, not even localhost:34000 (which eventually times out and tells me it has no content available). I have to restart the plex services or the local machine to get everything to be accessible again.

As I can’t even get localhost:34000 to load I can’t check Remote Access during a time where the issue is actively occurring, but once I can access it again there is nothing wrong with remote access.