Plex Memory Leak

Server Version#: 1.31.0.6654
Player Version#: N/A

I have been fighting stability issues on a plex server for months now and not sure where else to turn. I have run this environment for years without issues until recently. It is on docker using the linux server image. Hardware is a pi4b.

Media and config is hosted on a NAS via NFS. No errors in syslog that stand out.

Current issue appears to be a memory leak. When I come to the system after less than 24 hours of running the docker image will be consuming 2.5-3.5 GB of RAM and unresponsive. Reboot recovers for a bit. I have since turned off as many scheduled tasks as I can thinking this was related but hasn’t helped.

Logs are attached. Most recently this includes verbose logging. I have since disabled this. Next time this occurs I will re-upload. I have also uploaded older logs that may help too, however environment has changed since to try rule out some items in that.
Plex Media Server Logs_2023-02-06_03-48-23.zip (2.0 MB)

I have done offline validation my DB is valid.
Plex Media Server Logs_2023-02-07_02-52-01.zip (3.5 MB)

Plex Media Server Logs_2023-02-18_00-55-31.zip (2.7 MB)

My impression right now is the memory leak makes the pi run out of RAM at which point plex no longer responds.

I noticed the following in the systemlog for plex:

2023-02-18 00:52:12,214 (-4bce5288) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-02189b09f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1291, in get_resource_hashes
    json = self._core.networking.http_request("http://resources-cdn.plexapp.com/hashes.json", timeout=5).content
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-02189b09f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
    return self.__str__()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-02189b09f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
    self.load()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-02189b09f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

I am not the first seeing this. I confirmed the URL http://resources-cdn.plexapp.com/hashes.json is a 404 error. I also noticed I have crash dumps.

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