Plex keeps shutting down during the night

every night, usually around 3 am, plex shuts down. I have been unable to find anything in the plex Logs so far, but I did find something in the windows log.

Faulting application name: Plex Media Server.exe, version: 0.9.16.2, time stamp: 0x56e9f8d4
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f7ce6
Exception code: 0xc0000409
Fault offset: 0x000a46a9
Faulting process id: 0x94c
Faulting application start time: 0x01d185be90839a91
Faulting application path: C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSVCR120.dll
Report Id: 67a8377e-20b5-4e73-b96a-1249d417f3ad
Faulting package full name:
Faulting package-relative application ID:

Does this mean anything to anyone? I have noticed that when I do a plex upgrade, it stops for about 4-5 days and then it starts shutting down (exiting) every night again. Once I either reboot the pc, or restart Plex (doesn’t always want to load unless I do a reboot) Plex will run fine all day long until about 3 am the next morning and then it dies. I have been dealing with this issue for about 2 months now, but I would like to get it figured out instead of just rebooting the computer every morning when I get up.

Thanks for any help and input…

Rick

Check your “Scheduled Tasks” for the server - would they happen to start at 3 A.M.?

I recall having an issue with an older version of PMS, and a forum member recommended disabling the “Refresh metadata periodically” function of those tasks at the time, but obviously I’ve no idea if there’s any correlation with your issue. I’ve since upgraded and haven’t experienced it again, but your description seems very similar to my issue and thought I’d throw it out there. shrug

my tasks are set to happen between 2 and 5 am. I have the latest version of Plex server running. Hmmmm… I will disable it for now and see how things are in the morning… Thanks,

PMS now uses a newer version of the MS Visual C++ runtime library.
To see an older version of this library crashing in connection with Plex server is very suspicious.

You should get server log files. Before you go to sleep next time, please do the following:

  1. activate debug logging (not ‘verbose’!)
  2. quit Plex Server
  3. wait 1 minute
  4. empty the Plex Server log folder
  5. start Plex Server

and most importantly: get the Crash Dump (attention: if you re-start PMS, the crash dump gets erased - so make sure to fetch it beforehand)

Then zip up crashdump and logfiles and attach them to a post or PM them to me

You might very well have something like these on your system.

This problem is arising because the install process is not replacing old versions of libcurl.dll and other third party dll’s that are still linked to the earlier versions of MS VC++ libraries.

Plex Media Server as mentioned is now compiled with VS2015 which needs the MS VC++ 2015 libraries - but 3rd party DLLs which got recompiled with the new libraries kept the version numbers unchanged resulting in the install process thinking the files did not change and as a result do not get replaced.

This is going to be fixed in a future release of Plex Media Server to ensure these DLLs get updaed. In the meantime the following is the way round the problem

  • Download the current version of Plex Media Server from plex.tv/downloads

  • Shut Down Plex Media Server

  • Check all processes for Plex Media Server are terminated (windows task manager)

  • Uninstall Plex Media Server through Control Panel / Programs

  • Delete the whole contents of C:\Program Files (x86)\Plex\Plex Media Server

  • Install the latest version that you downloaded

this option will be a painful one as I have customized the genre Icons and have a lot of different directories for like Kids shows, kid movies, scifi movies, comedy, main TV, Rick’s TV and so on. But if this is what it takes to fix it, I guess I will have to and just rebuild everything from scratch. I could always make a backup of the Library sections that I had edited so plex used my genre icons. It may have to wait until next weekend though as I don’t have much time to do anything this weekend. Thanks for the info

Nothing from the procedure @sa2000 mentioned will touch your libraries or your Plex database.
Plex’s data live in a completely different place.

OttoKerner. Thanks. I guess I knew that, I just wasn’t thinking it through. I should never do this when I am tired. I knew that Plex files were in multiple locations like C:\Users\Rick\AppData\Local\Plex Media Server. I should have just gone to bed and looked at things this morning. I have gone through sa2000 suggestion above. Hopefully tomorrow morning I will still see Plex running. I share out some media with my mom, sister, and step daughter. So when it isn’t running, I find out from one of them…

Release 0.9.16.4 has addressed the issues caused by not replacing libcurl.dll in previous updates. Files will now be replaced on every upgrade