Plex falls offline, doesn't crash PMS.exe

The last few dates Plex has been falling off and I can’t figure out why. Friends will ask if it’s offline, I’ll go look and all libraries have no “!” Offline mark. I’ll go to refresh to see if it loads and it’ll spin for awhile, then everything appears offline with the yellow “!” next to every folder. I have to close PMS.exe and reload to fix. Happening daily.

PMS.exe doesn’t crash (or Pulseway Manager would have notified me)

Pms.exe is still running in the taskbar

The port isn’t closed (Or UptimeRobot would have notified me)

The server is remote at a friend’s house and internet is fine (I can still connect remotely and when Plex doesn’t work, everything else still does)

I tried uninstalling and reinstalling Plex (no fix)

OS and Data drives healthy (or Stablebit would have alerted me on weekly HDD checks)

Windows 10. Newest Plex (3252). Ryzen 9 12 Core CPU, 64 gigs DDR4 PC3600 memory. 32 Gig RAM drive. OS and Data folder on their own SSDs. Fiber internet. Setup is strong. No issues until last week or so but now it’s constant… Any ideas or known issues going on? What can I try?

I have downloaded the logs not to far after it happened again. I mean, it could have been up to like a half hour before noticing, but doubt more than that. Anyone who can look at it and see if they might see why it keeps appearing as “Offline” and gets “!” on all directories until I close and re-open PMS.exe??

Have you checked the settings of your friend’s router?
If the server keeps running but is no longer visible from the outside this could mean the machine hosting the PMS gets a different local IP from the router. I’ve heard of some routers “force disconnecting” a UPnP connection after some time (automatic port forwards)… you might want to double-check if moving to a manual port forward on the router (incl. related Plex Media Server configuration) changes this behavior (unless you already have that).

It has been installed there for almost 2 months with no issues, but constant issues the last 3 days. Just happened again…

The server (pms.exe) keeps running but no directories show available when local or remote. If you try to load plex libraries they just spin forever, then eventually every directory shows “!” (while viewing locally). Its like it crashed, but pms.exe is still running in task man, in the taskbar, etc.

Once I close PMS.exe and re-load it, everythings back to normal. Happening several times a day last 3 days…

That’s understood and alright but not answering my question…
Things having worked for the last 2 months doesn’t say there has been no change to your friend’s home network. You’d be surprised how many people just keep clicking buttons or installing/uninstalling things because they feel doing “something” might help :wink:

She said nothings changed when I asked her. She has no idea of how to login to a router and she can’t do it from an app. She still pays her bills with checks – that shows her oldschool’ness haha. She doesn’t access her acct or anything. I remotely have rebooted her router and stuff too – but still happens. No OS or Data drive shows issues but keeps happening

just saying
:wink:

The router settings are correct. I have a manual port forward on the router (even did testing using non-32400 port)

Can you check out the Plex server’s logs?

Even if invisible from the outside, when connected through team viewer and managing “locally” the server shouldn’t be making all directories unavailable to load and me not able to navigate server settings and such, as if it wasn’t running

I’ve downloaded two different timestamps of logs, but there’s so many files I don’t know what I look for. Just in the “Plex Media Server” one? Should I be looking for keywords? It’s thousands of lines

when doing that… are you using the PMS’ local IP address (e.g. http://127.0.0.1:32400/web if you’re on the machine running the server or http://[PMS IP address]:32400/web otherwise)?

yes, it’s the Plex Media Server.log – there should be a total of 6 files… the latest/newest being Plex Media Server.log, the oldest Plex Media Server.5.log
1st look should be for lines with an ERROR - prefix.

If your log contains VERBOSE messages, make sure to uncheck Enable Plex Media Server verbose logging before taking your logs (Settings > [Server Name] > General)

Debug was on / Verbose was off. But lots more than 6 files (Screenshot attached). Keyword search for “Error” in PlexMediaServer.log brings up tons of entries:

Some exmples:
(1) Sep 12, 2020 18:53:10.496 [15008] ERROR - Error issuing curl_easy_perform(handle): 7
(2) Sep 12, 2020 18:53:10.496 [15008] WARN - HTTP error requesting GET http://192.168.1.71:49152/wps_device.xml (7, Couldn’t connect to server) (Failed to connect to 192.168.1.71 port 49152: Connection refused)
(3) Sep 12, 2020 18:53:17.638 [13680] ERROR - Sync: failed to generate query for path library://094c513b-40f0-461b-a7a9-58fd0277fe4b/item/%2Flibrary%2Fmetadata%2F450999 in sync item 44838517
(4) Sep 12, 2020 18:51:23.351 [4356] ERROR - Sync: empty sync set, unable to update status for sync list 38382959, sync item 40565010
(5) Bunch of theseSep 12, 2020 18:51:23.463 [4356] ERROR - LPE: unknown item 378704.
Sep 12, 2020 18:51:23.463 [4356] ERROR - Sync: failed to generate query for path library://094c513b-40f0-461b-a7a9-58fd0277fe4b/item/%2Flibrary%2Fmetadata%2F378704 in sync item 43819956

When logging in to check whats up remotely via TeamViewer, and the directories all error out and nothing loads, I am using the : https://app.plex.tv address

I was referring to those 6 files

  • Plex Media Server.log
  • Plex Media Server.1.log
  • Plex Media Server.2.log
  • Plex Media Server.3.log
  • Plex Media Server.4.log
  • Plex Media Server.5.log

:wink:

I’m wondering what is blocking Plex from accessing that local IP address inside your friend’s home network (192.168.1.71) or the given port (tcp/49152).

Please try connecting through the local IP of the PMS. If you go through http://app.plex.tv/desktop while connected via Teamviewer all that tells you is that the server isn’t visible from Plex’s hosted version of Plex Web.
I’m asking for this to verify if we’re looking at an issue with your server or an issue with the remote access setup.

Ok. Next time it happens I will watch on the loopback address and see if it still shows all as “Unavailable” and if the server settings still disappear and respond back. Thanks for your help.

Happened again. Nothing in Plex is accessible on any IP as shown. App.plex.tv shows all offline, and 192.168.1.106 / 127.0.0.1 just give 503 errors. It’s not an issue with internet / port forwarding.


image

pms stayed in system taskbar by clock as if it was running
port stayed open/unblocked
*couldn’t * access server settings + all folders appear offline

Nothing I tried fixed it besides "Right click PMS by clock, “Exit”, and re-launch of it…

Error 503 is indicative of a deadlock and requests queuing up and then when we reach over 4000 queued unactioned requests we start to return error 503

For deadlocks one would need a Plex Media Server process dump and logs zip and list of all the connections at the time of the deadlock.

I see you are running on windows, so should be fairly easy to get a process dump. Please make sure the server remains on the latest version

See the following for diagnostics

Diagnostics for a deadlock / lockout (Windows)

  1. Prepare yourself by finding server security token string as it will be needed to get the list of connections at the time of the lockout, 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 directly 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. Find the Plex Media Server.exe process, select it and right click on it and choose Create Dump
  4. Check that the dmp file has been created
  5. Restart the server and capture the zipped logs
  6. Zip the dmp files and upload to dropbox or similar service
  7. send me by private message link to the zipped dmp files and send the saved /connections output text files and the zipped logs

It hadn’t happened since Sunday which I thought I might have fixed it by removing a potentially bad HDD, but now it just happened again. However, it wasn’t the 503 timeout error. It was just like a crashed webpage. I didn’t see this message until after refreshing the server. I will try this next time. In the meantime, is there anyway this could be causing it? I’ve noticed a ton of errors in the event viewer. I cleared all logs today and there are already ~14,000 events in only a few hours, almost 100% Ombi related. Could Ombi be causing this possibly?
image

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