DSM7 Plex Media Server keeps crashing

Server Version#: PlexMediaServer-1.23.6.4881-e2e58f321-x86_64_DSM7
Player Version#: Plex Mac - Version 1.33.0.2444-a220eae4
Synology DS918+ DSM 7.0-41890

Hi,

I noticed since upgrading to DSM7 and PMS 1.23 that PMS keeps crashing several times a day. I notice that my videos are inaccessible, go to DSM and find out PMS stopped running - have to “start” it again.

I’m trying to find out anything useful I can provide to support so that they can look into this and hopefully find the issue / fix. Could use some guidance on what I should do.

  • Q) Should I enable Debug logging? Verbose logging? Or both ?

I managed to find the new log path, but couldn’t find anything useful other than the below (this is without any debug/verbose enabled). I’m happy to enable what you need and gather logs for when it crashes again.

$ dmesg | egrep Plex
[15298.975538] Plex Transcoder[15219]: segfault at 7f25af568000 ip 00007f25b3052204 sp 00007f25af58a8c8 error 4 in ld-musl-x86_64.so.1[7f25b300d000+53000]
[780329.794394] traps: Plex Media Serv[10405] general protection ip:7f6f9bfe57ca sp:7f6f932003b8 error:0 in ld-musl-x86_64.so.1[7f6f9bfd5000+53000]
[781843.023082] traps: Plex Media Serv[23519] general protection ip:7f988fd1b7d0 sp:7f9889b0a3b8 error:0 in ld-musl-x86_64.so.1[7f988fd0b000+53000]
[1035017.185707] traps: Plex Media Serv[18399] general protection ip:7f94202e07dc sp:7f9418f2e3b8 error:0 in ld-musl-x86_64.so.1[7f94202d0000+53000]


/volume1/@apphome/PlexMediaServer/Plex Media Server/Logs# egrep -i "crash" *
grep: PMS Plugin Logs: Is a directory
Plex Crash Uploader.1.log:Aug 09, 2021 19:35:58.641 [0x7f92fad7eb38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId:@gmail.com Version: 1.23.6.4881-e2e58f321
Plex Crash Uploader.2.log:Aug 06, 2021 21:16:14.023 [0x7f0905f2cb38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId:@gmail.com Version: 1.23.6.4881-e2e58f321
Plex Crash Uploader.5.log:Aug 06, 2021 20:51:00.688 [0x7fb857ab2b38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId:@gmail.com Version: 1.23.6.4881-e2e58f321


/volume1/@apphome/PlexMediaServer/Plex Media Server/Logs# cat Plex\ Crash\ Uploader.*
Aug 09, 2021 19:35:58.641 [0x7f92fad7eb38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId:@gmail.com Version: 1.23.6.4881-e2e58f321
Aug 09, 2021 19:36:01.091 [0x7f92fc517848] INFO - Successfully reported 07294205-2048-4036-9bd7d3b2-641cebef
Aug 06, 2021 21:16:14.023 [0x7f0905f2cb38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId:@gmail.com Version: 1.23.6.4881-e2e58f321
Aug 06, 2021 21:16:16.239 [0x7f09076c5848] INFO - Successfully reported 660e683c-17af-4957-144dbda3-eda1f836
Aug 06, 2021 20:51:00.688 [0x7fb857ab2b38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId:@gmail.com Version: 1.23.6.4881-e2e58f321
Aug 06, 2021 20:51:03.227 [0x7fb85924b848] INFO - Successfully reported 511b9039-372b-48e7-6abcbe92-960b7560

Oh nice! Thanks, didn’t notice 1.24.0.4921-ce9f9dc95 just came out… PMS said I was up to date. I’ll get that installed now and enable debug logging if it happens again.

Regarding the crash logs, so you wouldn’t need me to do anything if/when it crashes again right? The engineers would automatically have a copy of what they need and can work on it ?

Ta.

Great :slight_smile:

Thanks! Just one final question …

Would you think the engineers need me to have debug enabled so if/when it crashes again, they would have more data uploaded? Or are said logs not uploaded at all hence irrelevant (and I can just have debug disabled saving on resources)?

Thanks, I’ll keep it on then.

I think we can consider this thread resolved for now :slight_smile:

Thanks for your help.

Edit - yea it seems it’s still crashing.

I think it may have to do with a sync it’s trying to do to my iPhone. It seems to be stuck syncing all the time even when it “finished”, then you restart the player and/or PMS after it crashes and it syncs again and again.

I stopped the syncs for now.

I’m not sure if the iPhone also running out of space is contributing to the trigger.

/volume1/@apphome/PlexMediaServer/Plex Media Server/Logs# tail -50 Plex\ Media\ Server.log
Aug 10, 2021 10:48:44.761 [0x7f0acadb8b38] DEBUG - [Transcode] Whacked session 5f4c200ef43b4be9258e61e40e219861228de157, 3 remaining.
Aug 10, 2021 10:48:44.767 [0x7f0acb208b38] DEBUG - Auth: authenticated user 1 as @gmail.com
Aug 10, 2021 10:48:44.767 [0x7f0aca13bb38] DEBUG - Request: [192.168.1.164:61180 (Subnet)] GET /status/sessions/background (26 live) TLS GZIP Signed-in Token (@gmail.com)
Aug 10, 2021 10:48:44.768 [0x7f0acb134b38] DEBUG - Completed: [192.168.1.164:61180] 200 GET /status/sessions/background (26 live) TLS GZIP 0ms 397 bytes (pipelined: 47)
Aug 10, 2021 10:48:44.775 [0x7f0aca2abb38] DEBUG - Streaming Resource: Terminating session 0x7f0aca4bc488:872d0565be2a72a7c8c63755daedf07f21e4b70a which is using static transcoder slot.  Used slots is now 5
Aug 10, 2021 10:48:44.775 [0x7f0aca2abb38] DEBUG - Streaming Resource: Terminated session 0x7f0aca4bc488:872d0565be2a72a7c8c63755daedf07f21e4b70a with reason Client stopped playback.
Aug 10, 2021 10:48:44.775 [0x7f0aca2abb38] DEBUG - Streaming Resource: Removing session 0x7f0aca4bc488:872d0565be2a72a7c8c63755daedf07f21e4b70a
Aug 10, 2021 10:48:44.793 [0x7f0acbda2b38] DEBUG - Notifying consumer that data is complete.
Aug 10, 2021 10:48:44.880 [0x7f0acb208b38] DEBUG - Activity: updated activity 6f82f07f-0433-424b-a21b-6bab01cdc2e1 - completed 2.8% - Media download by @gmail.com
Aug 10, 2021 10:48:44.880 [0x7f0acb208b38] DEBUG - handleStreamWrite code 32: Broken pipe
Aug 10, 2021 10:48:44.880 [0x7f0acb208b38] DEBUG - Removed transcode data consumer, active count 1 => 0
Aug 10, 2021 10:48:44.880 [0x7f0acb208b38] DEBUG - Completed after connection close: [192.168.1.167:50205] 200 GET /video/:/transcode/universal/start.mkv?session=5f4c200ef43b4be9258e61e40e219861228de157 (26 live) TLS GZIP 21509ms 53837021 bytes
Aug 10, 2021 10:48:44.881 [0x7f0ac9cdab38] DEBUG - [TranscodeOutputStream] Input processing thread exited after writing 62259200 bytes, m_closed=1, m_endOfFileReached=0, session->isStopped()=1
Aug 10, 2021 10:48:44.881 [0x7f0ac9cdab38] DEBUG - Cleaning directory for session 5f4c200ef43b4be9258e61e40e219861228de157 (/volume1/@apphome/PlexMediaServer/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-5f4c200ef43b4be9258e61e40e219861228de157-a409c513-25ce-4011-9513-4ce99dc1e8bf)
Aug 10, 2021 10:48:44.913 [0x7f0ac9cdab38] DEBUG - Streaming Resource: Terminating session 0x7f0aca609488:5f4c200ef43b4be9258e61e40e219861228de157 which is using static transcoder slot.  Used slots is now 4
Aug 10, 2021 10:48:44.914 [0x7f0ac9cdab38] DEBUG - Streaming Resource: Terminated session 0x7f0aca609488:5f4c200ef43b4be9258e61e40e219861228de157 with reason Client stopped playback.
Aug 10, 2021 10:48:44.914 [0x7f0ac9cdab38] DEBUG - Streaming Resource: Removing session 0x7f0aca609488:5f4c200ef43b4be9258e61e40e219861228de157
Aug 10, 2021 10:48:44.915 [0x7f0acb208b38] DEBUG - Activity: Ended activity 6f82f07f-0433-424b-a21b-6bab01cdc2e1.
Aug 10, 2021 10:48:45.193 [0x7f0acb134b38] DEBUG - Auth: authenticated user 1 as @gmail.com
Aug 10, 2021 10:48:45.193 [0x7f0acadfcb38] DEBUG - Request: [192.168.1.167:58849 (Subnet)] GET /video/:/transcode/universal/stop?session=3379911add0f2cf9fb620f5a1461ab24d83438be (25 live) TLS GZIP Signed-in Token (@gmail.com)
Aug 10, 2021 10:48:45.193 [0x7f0aca2abb38] DEBUG - [Transcode] Killing job.
Aug 10, 2021 10:48:45.193 [0x7f0aca2abb38] DEBUG - [Transcode] Signalling job ID 15890 with 9
Aug 10, 2021 10:48:45.193 [0x7f0aca2abb38] DEBUG - [Transcode] Job was already killed, not killing again.
Aug 10, 2021 10:48:45.193 [0x7f0aca2abb38] DEBUG - [Transcode] Stopping transcode session 3379911add0f2cf9fb620f5a1461ab24d83438be
Aug 10, 2021 10:48:45.194 [0x7f0acb208b38] DEBUG - Completed: [192.168.1.167:58849] 200 GET /video/:/transcode/universal/stop?session=3379911add0f2cf9fb620f5a1461ab24d83438be (25 live) TLS GZIP 0ms 195 bytes (pipelined: 18)
Aug 10, 2021 10:48:45.194 [0x7f0aca2abb38] DEBUG - [Transcode] Activity: Ended activity 8cc81d9c-eb54-4608-8fb1-6a9156df316b.
Aug 10, 2021 10:48:45.197 [0x7f0acc849b38] DEBUG - Jobs: '/volume1/@appstore/PlexMediaServer/Plex Transcoder' exit code for process 15890 is -9 (signal: Killed)
Aug 10, 2021 10:48:45.202 [0x7f0aca2abb38] DEBUG - [Transcode] Whacked session 3379911add0f2cf9fb620f5a1461ab24d83438be, 2 remaining.
Aug 10, 2021 10:48:45.204 [0x7f0acb134b38] DEBUG - Auth: authenticated user 1 as @gmail.com
Aug 10, 2021 10:48:45.205 [0x7f0acad84b38] DEBUG - Request: [192.168.1.164:61180 (Subnet)] GET /status/sessions/background (24 live) TLS GZIP Signed-in Token (@gmail.com)
Aug 10, 2021 10:48:45.206 [0x7f0acb134b38] DEBUG - Completed: [192.168.1.164:61180] 200 GET /status/sessions/background (24 live) TLS GZIP 1ms 397 bytes (pipelined: 48)
Aug 10, 2021 10:48:45.663 [0x7f0acb134b38] DEBUG - Auth: authenticated user 1 as @gmail.com
Aug 10, 2021 10:48:45.663 [0x7f0acad61b38] DEBUG - Request: [192.168.1.167:50206 (Subnet)] GET /video/:/transcode/universal/start.mkv?session=2fb445c1025fc37ac058b1b0d41b6335d936572a (25 live) TLS GZIP Signed-in Token (@gmail.com)
Aug 10, 2021 10:48:45.663 [0x7f0acb208b38] DEBUG - Auth: authenticated user 1 as @gmail.com
Aug 10, 2021 10:48:45.663 [0x7f0acad61b38] DEBUG - [Transcode] Found session GUID of 2fb445c1025fc37ac058b1b0d41b6335d936572a in session start.
Aug 10, 2021 10:48:45.663 [0x7f0acad61b38] DEBUG - [Transcode] Using existing transcode session.
Aug 10, 2021 10:48:45.667 [0x7f0aca13bb38] DEBUG - Request: [192.168.1.167:50207 (Subnet)] GET /sync/568A402D-B04D-4233-AFFF-3AD63D3C1FA0/status (25 live) TLS GZIP Signed-in Token (@gmail.com)
Aug 10, 2021 10:48:45.668 [0x7f0acad61b38] DEBUG - [Transcode] Activity: registered new activity 4c8f38e0-d8e9-47c5-b1f0-d241981f523a - ""
Aug 10, 2021 10:48:45.670 [0x7f0acad61b38] DEBUG - [Transcode] Activity: updated activity 4c8f38e0-d8e9-47c5-b1f0-d241981f523a - completed -1.0% - Media download by @gmail.com
Aug 10, 2021 10:48:45.672 [0x7f0acad61b38] DEBUG - Content-Length is -1 (of total: -1).
Aug 10, 2021 10:48:45.673 [0x7f0acad61b38] DEBUG - Activity: updated activity 4c8f38e0-d8e9-47c5-b1f0-d241981f523a - completed 0.0% - Media download by @gmail.com
Aug 10, 2021 10:48:45.673 [0x7f0ac9e78b38] DEBUG - [TranscodeOutputStream] Input processing thread started at offset 0 for -1 bytes.
Aug 10, 2021 10:48:45.677 [0x7f0acb208b38] DEBUG - Completed: [192.168.1.167:50207] 200 GET /sync/568A402D-B04D-4233-AFFF-3AD63D3C1FA0/status (25 live) TLS GZIP 13ms 1137 bytes (pipelined: 5)
Aug 10, 2021 10:48:45.692 [0x7f0acb208b38] DEBUG - Auth: authenticated user 1 as @gmail.com
Aug 10, 2021 10:48:45.695 [0x7f0acadfcb38] DEBUG - Request: [192.168.1.167:50210 (Subnet)] GET /sync/568A402D-B04D-4233-AFFF-3AD63D3C1FA0/library/files/59302/file.mkv (25 live) TLS Signed-in Token (@gmail.com)
Aug 10, 2021 10:48:45.696 [0x7f0acadfcb38] DEBUG - Content-Length of /volume1/@apphome/PlexMediaServer/Plex Media Server/Cache/Transcode/Sync+/36548716/10/59302.mkv is 252293661 (of total: 252293661).
Aug 10, 2021 10:48:45.718 [0x7f0ac9e78b38] DEBUG - [TranscodeOutputStream] Input processed first bytes after 44 ms.
Aug 10, 2021 10:48:45.775 [0x7f0acb208b38] DEBUG - [TranscodeOutputStream] Sent back first bytes after 111 ms.
Aug 10, 2021 10:48:45.803 [0x7f0ac9055b38] DEBUG - [JobRunner] Job running: '/volume1/@appstore/PlexMediaServer/CrashUploader' '--directory=/volume1/@apphome/PlexMediaServer/Plex Media Server/Crash Reports/1.24.0.4921-ce9f9dc95' '--version=1.24.0.4921-ce9f9dc95' '--platform=Linux' '--platformVersion=DSM 7.0.41890-0' '--serverUuid=fb2df59f17e4e0a36e5b959817f9017d7c0c07fe' '--userId=@gmail.com' '--sentryUrl=https://sentry.io/api/1233455/minidump' '--sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' '--vendor=Synology' '--model=x86_64' '--device=DS918+' '--allowRetries=0'
Aug 10, 2021 10:48:45.810 [0x7f0ac9055b38] DEBUG - [JobRunner] Jobs: Starting child process with pid 16081
/volume1/@apphome/PlexMediaServer/Plex Media Server/Logs# cat Plex\ Crash\ Uploader.log
Aug 10, 2021 10:48:45.909 [0x7f190d07bb38] INFO - Crash Uploader - Platform: Linux ServerUUID: fb2df59f17e4e0a36e5b959817f9017d7c0c07fe UserId: @gmail.com Version: 1.24.0.4921-ce9f9dc95
Aug 10, 2021 10:48:45.881 [0x7f190eebc848] DEBUG - HTTP requesting POST https://sentry.io/api/1233455/minidump?sentry_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Aug 10, 2021 10:48:48.218 [0x7f190eebc848] DEBUG - HTTP/2.0 (2.3s) 200 response from POST https://sentry.io/api/1233455/minidump?sentry_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Aug 10, 2021 10:48:48.218 [0x7f190eebc848] INFO - Successfully reported ac91dc31-0bd7-40de-80577db6-3cc601a2

I hope tgz is ok.

I noticed a new Downloads feature replacing Sync, so I switched to that, but I’m happy to switch back and reproduce the issue if you need me to.

logs.tar (22.4 MB)

Sorry for the confusion.

The server crashes when using Sync, and it seems specific to 1 of 2 shows I have.

I just today discovered Downloads which is a replacement of Sync, so I just switched to it instead. Hasn’t crashed yet!

And yes thanks, was meaning to find an easy way to detect those encoded/damaged files, will go through the Plex Media Scanner Analysis logs and fix them.

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