ever since updating to the new beta update my server is crashing constantly help please
Plex Media Server Logs_2019-02-09_11-52-58.zip (7.2 MB)
I posted the following topic 2 days ago that might be similar to the problem you are seeing:
Have been looking into this. At this moment we are not getting any crash reports or crash dumps generated by windows (using the LocalDumps override in the registry)
What we know is that these crashes occur soon after scheduled tasks start.
The fingerprint for the crashes as seen in the Windows Application Event Log looks like this
Faulting module name: ucrtbase.dll, version: 10.0.17134.319, time stamp: 0xc1f0557a
Exception code: 0xc0000409
Fault offset: 0x000a24cb
Faulting process id: 0x309c
Faulting application start time: 0x01d4c0c3729e6665
Faulting application path: C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 7b5f64f8-df1a-4a48-a977-60c926467e8b
The Exception Code is always 0xc0000409 which is
STATUS_STACK_BUFFER_OVERRUN
Same thing keeps happening to me. Seems to be when adding new media to server. Please help it’s obviously quite frustrating.
Could you try to do a database optimize and if problem persists after that get fresh set of logs
See Library Actions support page https://support.plex.tv/articles/200392106-library-actions/
Seems i got the same craches ever since Windows 10 1809 in combination with latest plex.
Not sure why and how but i happens after every +/- 20 minutes. a restart helps and then after 20 minutes a crash again…
Faulting application name: Plex Media Server.exe, version: 1.15.0.659, time stamp: 0x5c5c2814
Faulting module name: ucrtbase.dll, version: 10.0.17763.1, time stamp: 0xc3ae1887
Exception code: 0xc0000409
Fault offset: 0x000a5d0b
Faulting process id: 0x2150
Faulting application start time: 0x01d4c2ee25e906ca
Faulting application path: C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 32f455b1-fc13-4df2-908a-416289077537
Faulting package full name:
Faulting package-relative application ID:
Do the crashes happen during the scheduled tasks period ?
What do you have set for server setting:
Library / Generate video preview thumbnails ?
Logs ?
It happens random so it seems…at first it looked like every +/- 20 minutes. But yesterday and tonight plex crashed after 10 minutes.
Video previeuw tumbnails are disabled.
Logs are attachedPlex Media Server Logs_2019-02-14_19-59-36.zip (418.8 KB)
There is evidence of database corruption but i cannot tell which database because you disabled debug logging
I need debug logging enabled and then logs captured after the restart after the next crash
See
https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/
Plex Media Server Logs_2019-02-16_17-21-24.zip (412.2 KB)
Attached the logging with debug logging enabled and a crash…
thanks for your reply’s, hope you find some info to work with. because it’s verry annoying Plex keeps crashing…
can’t see any debug logging
Where did you enable it?
See https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server
Whoops…seems like i didn’t save the settings after activating the debug loggin. Attempt #2 attached…Plex Media Server Logs_2019-02-17_19-26-38.zip (699.6 KB)
Thanks
The database corruption i saw does not appear to be within the main database and relates to one of the gracenote cache databases. We can get that recreated
I would like to know about the crash
I can see at 17:00 on the 17th Feb, the main database got locked out - with probably a thread holding on to it. Last logged entry was at 17:01 and then there was a relaunch of Plex Media Server at 19:25
Did Plex Media Server system tray icon disappear at 17:01 ? and that would also mean that the Plex Media Server.exe would disappear from Windows Task Manager ?
I presume you noticed the issue at 19:25
Cab you also look at the Windows Application Event log using eventvwr.exe and tell me if there any plex rleated exceptions between 17:00 and 19:25
Your correct. The Plex system tray icon disappears and then i have to do a manual restart. The issue appeared at 17.01 when the kids where watching, i had time at 19.25 to do a manual restart.
These are the events i find the Application Error and a Windows Error Reporting.
Both logs are below:
Application Error at 17-2-2019 17:01:42
Faulting application name: Plex Media Server.exe, version: 1.15.0.659, time stamp: 0x5c5c2814
Faulting module name: ucrtbase.dll, version: 10.0.17763.1, time stamp: 0xc3ae1887
Exception code: 0xc0000409
Fault offset: 0x000a5d0b
Faulting process id: 0x10ec
Faulting application start time: 0x01d4c6bdfdce45cf
Faulting application path: C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: ceda2b11-85cf-4de8-a6e4-19290d495f82
Faulting package full name:
Faulting package-relative application ID:
Windows Error Reporting at 17-2-2019 17:01:47
Fault bucket 1758766396513382936, type 5
Event Name: BEX
Response: Not available
Cab Id: 0
Problem signature:
P1: Plex Media Server.exe
P2: 1.15.0.659
P3: 5c5c2814
P4: ucrtbase.dll
P5: 10.0.17763.1
P6: c3ae1887
P7: 000a5d0b
P8: c0000409
P9: 00000007
P10:
Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER46EA.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5207.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5266.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5273.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER52B3.tmp.txt
These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Plex Media Serve_349f73a67d629cae5c0095ded57f227aa726b_73f1b63c_08395736
Analysis symbol:
Rechecking for solution: 0
Report Id: ceda2b11-85cf-4de8-a6e4-19290d495f82
Report Status: 268435456
Hashed bucket: 822ca44c80f9500f286864b82312f218
Cab Guid: 0
Hi,
Had the same problem here. After the last beta channel update Plex random crashes during the day, always during scheduled task run, always because of ucrtbase.dll. Looked into the logs, found the gracenote before the CRITICAL tag. I removed the artist folder with all albums, library scan, empty trash and now stable as before, no crashes anymore.
Can beta update just a coinsidence, has nothing to do with the root cause, but the real cause is the gracenote corruption happened at the same time?
Putting back the artist brings the crashes back. The albums are not new, already in my library for many months, without any issues until now.
could i have at the logs? And any info on exceptions in the Windows Application event log for Plex Media Server. I am interested in establishing how widespread the Exception code: 0xc0000409 crashes are and if you were getting database busy warnings in the log as seen in other logs
With regards to gracenote, the logs would show if there is corruption in the gracenote cache query databases - these can be deleted and they would get recreated - but would need to see logs to confirm if this is what is happening - would need debug logging to be enabled in server general advanced settings
Thanks for the confirmation.
The problem we have with this is that no crash reports are getting generated. The logs also show prolonged database busy periods, eg
before the crash
Feb 17, 2019 17:00:52.880 [11120] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:53.192 [8612] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:53.208 [8668] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:53.286 [10432] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:54.442 [11120] ERROR - Failed to begin transaction (E:\jenkins\server\2133006478\Statistics\StatisticsManager.h:201) (tries=2): Cannot begin transaction. database is locked
Feb 17, 2019 17:00:55.427 [4504] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:56.536 [8612] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:56.552 [8668] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:56.630 [10432] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:56.724 [11120] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:58.286 [11120] ERROR - Failed to begin transaction (E:\jenkins\server\2133006478\Statistics\StatisticsManager.h:201) (tries=3): Cannot begin transaction. database is locked
Feb 17, 2019 17:00:58.770 [4504] WARN - Waited one whole second for a busy database.
Feb 17, 2019 17:00:59.895 [8612] WARN - Waited one whole second for a busy database.
As we are not getting dumps for the 0xc0000409 stack overrun crashes, i would like to see if we can get a manual dump whilst the database is locked like this. I would need to send you a development build for 1.15.1 for this. I don;t know if you can determine when the issue arises - perhaps browsing the Plex Media Server.log and looking for prolonged period of WARN - Waited one whole second for a busy database. log entries. That would be the time to force a dump using C:\Windows\Syswow64\Taskmgr.exe and dumping the Plex Media Server.exe process and get me that dump with debug logs.
With regards to the gracenote db corruptions - as showing here
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, database corruption at line 122744 of [bf8c1b2b7a]
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, malformed database schema (
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, database corruption at line 122744 of [bf8c1b2b7a]
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, malformed database schema (
Feb 17, 2019 13:40:49.349 [10948] ERROR - Gracenote: Playlist locale error -1870658241 (CorruptDB: A database disk image is malformed.)
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, database corruption at line 122744 of [bf8c1b2b7a]
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, malformed database schema (
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, database corruption at line 122744 of [bf8c1b2b7a]
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, malformed database schema (
Feb 17, 2019 13:40:49.349 [10948] ERROR - Gracenote: Music locale error -1870658241 (CorruptDB: A database disk image is malformed.)
Feb 17, 2019 13:40:49.349 [10948] ERROR - SQLITE3:0x46038d54, 11, database corruption at line 122744 of [bf8c1b2b7a]
To address this, we can delete the cache databases used by gracenote and new ones will be created. So shutdown Plex Media Server then locate these files and delete them or rename them
gn_cachq.gdb
gn_colls.gdb
gn_lists.gdb
They would be in this directory on your system
D:\PLEX-APPDATA\Plex Media Server\Cache
Hi - would like to know if the crashes are continuing. and if database optimization made a difference
Please let me have new logs if problems persist. Also would like to see an export of the Windows Application log - you can filter for Event IDs 1000 and 1001
After posting the message last week everything seemed ok. But then a few crashes the last few days so yesterday I ran the database optimization. But alas coming down this morning, the server had crashed again.
Attached are requested logs.
Thanks.
Plex Media Server Logs_2019-02-19_08-52-21.zip (5.0 MB)
plexWinlog.txt (1.5 MB)
You can find the logs here:
https://drive.google.com/open?id=1MPi8PJwYpcgWIOl_2vdGbh2LSTcY3Jo0
I managed to narrow down the crashes to a single album only, title “Mama, Don’t You Recognize Ivan & the Parazol?”
crashes based on event viewer (yeah, i moved in and out a few times):
2019. 02. 19. 8:22:17
2019. 02. 19. 8:16:18
2019. 02. 19. 8:08:21
2019. 02. 19. 7:58:37
2019. 02. 19. 7:54:18
exception code always 0xc0000409
After the crash, the plex media scanner or plexrelay stays in the memory, depending if happened during library refresh or metadata refresh. I had to kill them via taskmgr or restart the pc to be able to restart the plex server.
last event viewer extract (sorry, in local language)
NaplĂł neve: Application
Forrás: Application Error
Dátum: 2019. 02. 19. 8:22:17
EsemĂ©nyazonosĂtĂł:1000
FeladatkategĂłria:(100)
Szint: Hiba
Kulcsszavak: Klasszikus
Felhasználó: n.a.
SzámĂtĂłgĂ©p: xxxxxxx
LeĂrás:
A hibát okozó alkalmazás neve: Plex Media Server.exe, verzió: 1.15.0.659, időbélyeg: 0x5c5c2814
A hibát okozó modul neve: ucrtbase.dll, verzió: 10.0.17763.1, időbélyeg: 0xc3ae1887
Kivételkód: 0xc0000409
Hiba pozĂciĂłja: 0x000a5d0b
A hibát okozĂł folyamat azonosĂtĂłja: 0x22e4
A hibát okozĂł alkalmazás indĂtásának idĹ‘pontja: 0x01d4c823b03abf3f
A hibát okozó alkalmazás elérési útja: C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
A hibát okozó modul elérési útja: C:\WINDOWS\System32\ucrtbase.dll
JelentĂ©s azonosĂtĂłja: d89c951a-8c5e-416c-825b-e13e0a487a46
A hibát okozó csomag teljes neve:
A hibát okozĂł csomag relatĂv alkalmazásazonosĂtĂłja: