Server currently unavailable, yet service is still running

Server Version#: 1.13.9.5439
Player Version#: Any and all

This is driving me absolutely bonkers!!! The server crashes multiple times per day sometimes multiple times in an hour. All of the clients get the error that the plex server is currently unavailable. I log in to the server, and all of the services are running as normal, but can’t access the PMS even from the server it’s running on. The only way to restore connectivity is to end task on all of the Plex related processes running in the background, and then restart the PMS. The only post I could find on this was from quite a while ago, and attributed to some sort of conflict with the media scanner. I’ve talked to three other users that are running Windows PMS in my family, and they are experiencing the same issues. Not on the scale that I am, however, their libraries are also not as large. This has been happening for multiple versions of the server, and I keep upgrading HOPING that Plex has finally figured out the issue, Alas, the problem persists, and it appears it’s time to get someone on the inside to look at this. I’ve downloaded the logs from the server, and can provide those as well. I just have no idea which one of these 140+ files to start looking in! Any help here would be greatly appreciated.Plex Media Server Logs_2018-10-28_16-22-51.zip (4.0 MB)

Hello,

I think I have the same problem but it happens like once a week.
When the crashes happens, the Plex icon in the taskbar is still responding right? I mean you can right click it and then press Exit. But when you open the Plex Media Server again, it doesn’t work until you close all the Plex related processes before opening it again right?

Maybe if it is the same problem we can try to fix it together.

That is correct, that’s the only thing you can do from that icon though, nothing else works from that menu on the icon.

Have to end task on all of the Plex related process before starting the server again.

Server just crashed again, here’s an updated set of logs after starting it again.
Plex Media Server Logs_2018-10-28_18-43-31.zip (3.5 MB)

What plugins do you have installed with your PMS?
I really don’t know a lot about logs, but maybe we have something in common that makes the crash.

That is a deadlock that started at Oct 28, 2018 17:55:16

For deadlocks we need process dump + list of connections + logs

Diagnostics for a deadlock / lockout (Windows)

  1. Prepare yourself by finding the server security token string as it will be needed for the connections list request. To find the token string, see this support article https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
  2. When the problem occurs (and please wait for sufficient time before capturing diagnostics or restarting eg 10 minutes of requests to the server not getting through) , get the output from a specific browser request on the server. In a browser, go to this url http://localhost:32400/connections?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxx where you put the server token string instead of the xxxxxxxxxxxxxxxx. Copy the displayed output to a text file and save and note down the exact time when the request response was returned
  3. Next is to force a process dump for the Plex Media Server.exe process. We can do this with Windows Task Manager - but on a 64-bit windows and with Plex Media Server.exe being a 32-bit application, you would need to load the 32-bit x86 version of windows task manager. So load this program instead of the default task manager C:\Windows\SysWow64\Taskmgr.exe
  4. Using this 32-bit Taskmgr.exe find the Plex Media Server.exe process, select it and right click on it and choose Create Dump
  5. Check that the dmp file has been created
  6. Restart the server and capture the zipped logs
  7. Zip the dmp files and upload to dropbox or similar service
  8. send me by private message link to the zipped dmp files and send the saved /connections output text files and the zipped logs

Thanks for the dump and connections list and logs
All good

I have referred it to the development team

Any updates on this?

I seem to be having the same issue.

No update at this stage. The evidence of more users encountering a rare (may be not rare for some users ) deadlock, the higher priority the issue becomes.

If you believe you have this problem, please provide diagnostics outlined here Server currently unavailable, yet service is still running - #6 by sa2000 and if it the same, I will add it to the evidence already referred to development . It may be a different problem anyway, so to start with provide logs as outlined and then we can take it to the next step if it is a deadlock

I have sent you a Build with potential fix for the deadlock

Hope you can try it and let me know the results

Plex Media Server 1.14.0.5468 has just been released as Beta. It has a fix for the deadlock seen in diagnostics provided in this forum thread.

See Release Notice

  • (Transcoder) Resolved a rare deadlock (#9332)

Anyone running an early beta or a development build with early release of these fixes should now update to the official beta, Thank you for helping confirm the fixes

Great to hear, my early beta has been running great so far.

Would you be able to share the specific issue? I’m curious

It was a deadlock where a couple of Plex Media Server threads lock each other out and stop also requests needing lock to be processed

It was a timing condition brought about when doing a lot of seek foiward/backward actions

Ah! that is very interesting!

It happened a lot when my friend was watching a lot of a particular sports event, one where you typically fast forward between each fight.

I am going to close this topic - that would make it easier to identify any new deadlocks !