Server Version#: Version 1.40.0.7998
Player Version#: Version 4.123.2
Greetings! I’ve been running into an issue with my Plex server the past few weeks with what appears to be an overflow of stale connections to the server ends up bring the server to a halt/deadlocking.
This issue has been described before on a few threads I found but I have had no luck implementing a solution to this after many many hours troubleshooting.
The issue initially had occurred roughly 7 Months ago and seemed to “fix” itself but now is back with a vengeance.
To summarize I have found that at times the server responsiveness becomes sluggish/difficult to navigate/have artwork load. When this occurs I can also see that in the Dashboard the server will report Nothing is currently being played even if actively streaming.
From a playback side playback will start to become plagued with buffering issues/messages of connection is not fastest enough. When this occurs I have found navigating to http://10.0.1.98:32400/connections?X-Plex-Token=xxxxxxxxxxxx I can see the server being overwhelmed with what appears to be stale connections.
Typically when it’s the worst can see upwards off 150+ connections.
I have attempted all number of steps to remedy, changing Transcoding locations, increase DB Cache size, running multiple repairs of the DB with the awesome ChuckPA script but the problem always seems to return.
As a test I have stood up a 2nd Plex server to compare the results and have noticed one oddity.
On my fresh server, no running streams - 3 Connections
On my server with issues, no running streams - 16 Connections
Most of these 16 Connections seem to be related to GET /:/websockets/notifications
I have attempted to disable Push Notifications in the “General” Settings as well as disable Webhooks in “Network”
I’m really at a loss of what to try next, waiting for the server to flood it’s connection to acquire a fresh set of Debug logs to post as well.
Edit: A few other troubleshooting steps I’ve taken + additional details.
System: Unraid 6.12.6
Docker: hotio/plex
Reverse Proxy Setup through NPM.
Troubleshooting
- Increase fs.inotify.max_user_watches
- Set Unraid IP address to Static
- Confirmed Preferred network interface in Network settings to be br0
- Tested copying library.db to a new docker instance and attempting playback - Don’t see the
GET /:/websockets/notificationslisted. (No Sharing setup on this server) - Disable server support for IPV6
- Tested with my NPM docker container disabled.
- Optimize Database
- Power off and leave plex container off for 4+ minutes
- Changing Transcode temporary Directory - Both with /tmp and a HDD location.
- User I see present in the
GET /:/websockets/notificationsif I remove their access it goes away but soon as I grant access back the connection is back.
Thanks!