Have been having issues with keeping Plex Media Server stable and cant find out the reason. Am having to restart the server sometimes twice daily when somebody watching lets me know that it is down. Have attached the logs so any advice would be greatly appreciated.
Are you running version 1.12.2.4929? If you are, I have been having the same issue the past few days and cannot figure out why the crashing.
I am on version 1.12.1.4885… This has been happening for a while now. It started well over 6 months ago, went away for a while then more recently is happening at least once a day.
With the version I am running, it happens way more frequently. I am hoping for either another update to come down or someone to provide insight to the crashes. I do have my server set to send crash reports to Plex, but I do not know if it actually is.
yeah i cant see what is going on with the crash reports and there is no way to get help other than via the community so hopefully they can give us some insight!
Hey Brad
You seem to have the following errors a lot:
Apr 06, 2018 23:52:44.004 [3196] ERROR - Failed to delete session directory (boost::filesystem::remove: The process cannot access the file because it is being used by another process: “C:\Users\Plex\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-te38rb9h5waoqisph9gsftch-9cf663aa-148d-488e-b6e6-14f7c949baa6\media-00636.ts”)
The first one can be answered by a Plex Team Member probably
Apr 06, 2018 23:52:52.941 [0848] ERROR - [Transcoder] [mp4 @ 0588de40] Application provided duration: -32 / timestamp: 25025512 is out of range for mov/mp4 format
This error seems to come from the ffmpeg encoder but unfortunately I can’t help you either if it’s from bad MKV-files (I know the message says …for mov/mp4 format but I think it’s the same message for video-files in the MKV container).
So a lot of talking and no obvious help but I hope it’s an idea to start searching through discussion forums and google for the error message, what causes it and how to get rid of it.
How much is your CPU utilization when someone is watching (streaming) a movie that causes transcoding? Try to reduce it if it’s very high (like 90-100%) -> PMS -> Settings -> Server -> Transcoder.
Thanks a lot! I have just upped the amount of virtual CPUs on the VM i am using for PMS and will see if that helps! I cant see any reason why the 2 errors above would cause it to completely crash. Thanks a lot for your review!
@bradolson83 said:
Have been having issues with keeping Plex Media Server stable and cant find out the reason. Am having to restart the server sometimes twice daily when somebody watching lets me know that it is down. Have attached the logs so any advice would be greatly appreciated.I am using version 1.12.1.4885.
I have attached the logs from the last 2 days any help with some guidance to why these crashes are happening would be greatly appreciated.
There was a crash at
Apr 08, 2018 02:11:32
I cannot find any crash reports on our crash reporting servers - some crashes eg Heap Corruption crashes do not always get uploaded
Could you check windows application event log
Run eventvwr.msc
and select Windows Logs
and then Application
log and look for any exceptions logged there around the time
Also look in this folder for any windows captured dumps
C:\Users\Plex\AppData\Local\CrashDumps
- if windows captured the dmp - it would be there
If we can’t get any crash reports, do the regedit to get windows to manage the dumps temporarilly - see section on crash dumps handled by windows here
https://support.plex.tv/articles/201455336-crash-logs-plex-media-server/
Suggest you also update to the latest beta anyway - available from https://plex.tv/downloads
@bradolson83 said:
Have been having issues with keeping Plex Media Server stable and cant find out the reason. Am having to restart the server sometimes twice daily when somebody watching lets me know that it is down. Have attached the logs so any advice would be greatly appreciated.I am using version 1.12.1.4885.
I have attached the logs from the last 2 days any help with some guidance to why these crashes are happening would be greatly appreciated.
Further to my earlier response, noticed log entries relating to MediaFoundation
Apr 08, 2018 09:20:45.951 [7648] ERROR - [FFMPEG] - could not initialize MediaFoundation
Is this Windows 10 standard ? or Windows 10 RT ? Windows 10 N
or Windows 10 KN
edition?
Please do not double post for same issue - I will consolidate both topics into this one
Have been having issues with keeping Plex Media Server stable and cant find out the reason. Am having to restart the server sometimes twice daily when somebody watching lets me know that it is down. Have attached the logs so any advice would be greatly appreciated.
I am using version 1.12.1.4885.
I have attached the logs from the last 2 days any help with some guidance to why these crashes are happening would be greatly appreciated.
I am attaching my logs from today as my PMS just crashed just now.
@demonicpagan said:
I am attaching my logs from today as my PMS just crashed just now.
You have disabled debug logging !
Please re-enable it, restart the server and provide logs after the next crash
See https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/
The log shows some memory issue when processing an image file
Apr 09, 2018 18:55:27.333 [24992] ERROR - Format [JPEG] - Insufficient memory (case 4)
Apr 09, 2018 18:55:27.333 [24992] ERROR - Error resizing an image, we don't trust what we cached [C:\Users\Dustin\AppData\Local\Plex Media Server\Cache\PhotoTranscoder\b3\b3ce535628119805f55086d017c4560164dcef6e.jpg]
There is a fix for a memory leak that will be released in version 1.12.3 - but I am not sure if that is the same problem - Your server crashed within 50 minutes of launch and the memory leak would take much longer time before causing a crash)
Does this file exist still?
C:\Users\Dustin\AppData\Local\Plex Media Server\Cache\PhotoTranscoder\b3\b3ce535628119805f55086d017c4560164dcef6e.jpg
and if it does, do you know which library item it relates to ?
The logs with debug logging enabled would help identify it
Here are logs with debugging turned on after another crash.
@demonicpagan said:
Here are logs with debugging turned on after another crash.
You have some app / device that is killing the server with repeated requests - repeating same request without any pause between the repeats
The app is using your account to authenticate and is coming from public IP 66.220.xxx.xxx
It has reference to Node.js
in the header
You can enable verbose logging as well and we get to see more information about these requests
Do you use any 3rd party products /apps to access Plex Media Server?
This was happening between 23:17:21 on 9th April and 00:38:56 10th April when the server crashed out after running out of threads / resources to handle the queued load of repeated requests
Yes, I have a Node.Js application that I wrote that should be sending a request every 5 minutes to get the title of what is playing and see if the server is online.
@demonicpagan said:
Yes, I have a Node.Js application that I wrote that should be sending a request every 5 minutes to get the title of what is playing and see if the server is online.
wow - it started as 20 a second every 5 minutes. Near the end of the log I can see 200 a second requests GET /status/sessions
Whoops! My debugging wasn’t showing that it was happening that frequently.
@sa2000 said:
Is this Windows 10 standard ? or Windows 10 RT ?
Windows 10 N
orWindows 10 KN
edition?
With the Event viewer the only thing i can see around the time is the following:
Log Name: Application
Source: ESENT
Date: 8/04/2018 3:28:00 PM
Event ID: 916
Task Category: General
Level: Information
Keywords: Classic
User: N/A
Computer: HOME-PLEX01
Description:
svchost (3268,G,0) The beta feature EseDiskFlushConsistency is enabled in ESENT due to the beta site mode settings 0x800000.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ESENT" />
<EventID Qualifiers="0">916</EventID>
<Level>4</Level>
<Task>1</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-04-08T05:28:00.001049600Z" />
<EventRecordID>4660</EventRecordID>
<Channel>Application</Channel>
<Computer>HOME-PLEX01</Computer>
<Security />
</System>
<EventData>
<Data>svchost</Data>
<Data>3268,G,0</Data>
<Data>
</Data>
<Data>EseDiskFlushConsistency</Data>
<Data>ESENT</Data>
<Data>0x800000</Data>
</EventData>
</Event>
Other than that the following was there at around 5 am:
Log Name: Application
Source: Microsoft-Windows-Security-SPP
Date: 8/04/2018 4:24:39 AM
Event ID: 16384
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: HOME-PLEX01
Description:
Successfully scheduled Software Protection service for re-start at 2118-03-14T18:24:39Z. Reason: RulesEngine.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-SPP" Guid="{E23B33B0-C8C9-472C-A5F9-F2BDFEA0F156}" EventSourceName="Software Protection Platform Service" />
<EventID Qualifiers="16384">16384</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-04-07T18:24:39.437347700Z" />
<EventRecordID>4639</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>HOME-PLEX01</Computer>
<Security />
</System>
<EventData>
<Data>2118-03-14T18:24:39Z</Data>
<Data>RulesEngine</Data>
</EventData>
</Event>
@sa2000 said:
@bradolson83 said:
Have been having issues with keeping Plex Media Server stable and cant find out the reason. Am having to restart the server sometimes twice daily when somebody watching lets me know that it is down. Have attached the logs so any advice would be greatly appreciated.I am using version 1.12.1.4885.
I have attached the logs from the last 2 days any help with some guidance to why these crashes are happening would be greatly appreciated.
Further to my earlier response, noticed log entries relating to
MediaFoundation
Apr 08, 2018 09:20:45.951 [7648] ERROR - [FFMPEG] - could not initialize MediaFoundation
Is this Windows 10 standard ? or Windows 10 RT ?
Windows 10 N
orWindows 10 KN
edition?
I just saw this so i searched the forums and found this : https://forums.plex.tv/discussion/294474/windows-10-pro-n-error
So will see if that patch assists otherwise ill have to do a full rebuild on 10 Pro … didnt have a spare licence around for it. Do you think that will solve my issues?