Hi.
I have a problem with my Plex system using Linux 16.04. This has happened twice, and on both times the server required a hard reboot of the entire machine to fix it, which isn’t ideal.
The server remains “active” when checking via service plexmediaserver status, but inaccessible via plex.tv or http://ip.address:32400/web.
When I try to forcefully stop the process it gets stuck for hours and just stays on “deactivating” when checking via service plexmediaserver status.
Here’s the logs before the server crashed.
Jul 05, 2018 02:03:51.473 [0x7fdb60bec700] DEBUG - Activity: updated activity 91dbef0c-4c3f-4d24-9b61-57664584e22f - completed 0% - Optimizing database
Jul 05, 2018 02:03:51.473 [0x7fdb60bec700] DEBUG - Activity: updated activity 91dbef0c-4c3f-4d24-9b61-57664584e22f - completed 10% - Optimizing database
Jul 05, 2018 02:03:51.473 [0x7fdb60bec700] DEBUG - Running database fix-ups.
Jul 05, 2018 02:03:52.567 [0x7fdb60bec700] WARN - Held transaction for too long (../Library/DatabaseFixups.cpp:207): 0.390000 seconds
Jul 05, 2018 02:03:53.067 [0x7fdb60bec700] DEBUG - Running database fix-ups completed in 0.4 seconds.
Jul 05, 2018 02:03:53.067 [0x7fdb60bec700] DEBUG - Captured session 0.
Jul 05, 2018 02:03:53.067 [0x7fdb60bec700] DEBUG - Captured session 1.
Jul 05, 2018 02:03:56.356 [0x7fdb9b3ff700] DEBUG - Auth: authenticated user 13316819 as Jessica
Jul 05, 2018 02:03:57.304 [0x7fdb643f3700] WARN - Timed out waiting for segment.
Jul 05, 2018 02:03:57.304 [0x7fdb9abfe700] DEBUG - Completed: [::ffff:81.96.127.140:49942] 404 GET /video/:/transcode/universal/session/fed126d4481078fa-com-plexapp-android/base/00058.ts (42 live) TLS 119980ms 259 bytes
Jul 05, 2018 02:04:21.262 [0x7fdb97fff700] DEBUG - EPG[onconnect]: Purging 23 airings which completed in the past.
Jul 05, 2018 02:04:21.264 [0x7fdb97fff700] DEBUG - Destroying metadata item 21 (Nigeria, Belize, and Bangladesh Tours)
Jul 05, 2018 02:04:21.294 [0x7fdb97fff700] DEBUG - Destroying metadata item 61 (Episode 07-04)
Jul 05, 2018 02:04:21.295 [0x7fdb97fff700] DEBUG - Destroying metadata item 60 (Season 2018)
Jul 05, 2018 02:04:21.296 [0x7fdb97fff700] DEBUG - Destroying metadata item 59 (The Big NHS Singalong Live)
Jul 05, 2018 02:04:21.328 [0x7fdb97fff700] DEBUG - Destroying metadata item 114 (Episode 31)
Jul 05, 2018 02:04:21.353 [0x7fdb97fff700] DEBUG - Destroying metadata item 138 (Night at the Crossroads)
Jul 05, 2018 02:04:21.515 [0x7fdb97fff700] DEBUG - Destroying metadata item 397 (Episode 07-04)
Jul 05, 2018 02:04:21.531 [0x7fdb97fff700] DEBUG - Destroying metadata item 403 (2017 Stage 19: Embrun to Salon-de-Provence)
Jul 05, 2018 02:04:21.633 [0x7fdb97fff700] DEBUG - Destroying metadata item 536 (1971/72: Manchester United v Stoke City)
Jul 05, 2018 02:04:21.658 [0x7fdb97fff700] DEBUG - Destroying metadata item 583 (Episode 07-04)
Jul 05, 2018 02:04:21.911 [0x7fdb97fff700] DEBUG - Destroying metadata item 646 (Episode 07-04)
Jul 05, 2018 02:04:21.925 [0x7fdb97fff700] DEBUG - Destroying metadata item 645 (Season 2018)
Jul 05, 2018 02:04:21.930 [0x7fdb97fff700] DEBUG - Destroying metadata item 644 (Liverpool’s Sound: Kop Chants and Their Origins)
Jul 05, 2018 02:04:21.973 [0x7fdb97fff700] DEBUG - Destroying metadata item 674 (Episode 07-04)
Jul 05, 2018 02:05:01.446 [0x7fdb663f7700] DEBUG - EPG[onconnect]: Next thing to start/end is at 2018-07-05 00:15:00 (in 600 seconds)
Jul 05, 2018 02:05:21.286 [0x7fdb643f3700] DEBUG - BPQ: onConsiderProcessing: Idle (true)
Jul 05, 2018 02:05:21.286 [0x7fdb643f3700] DEBUG - BPQ: [Idle] → [Processing]
Jul 05, 2018 02:06:47.254 [0x7fdb873ff700] DEBUG - Shutting down idle session fed126d4481078fa-com-plexapp-android (idle time is 180 seconds)
Jul 05, 2018 02:06:47.254 [0x7fdb873ff700] DEBUG - Killing job.
Jul 05, 2018 02:06:47.254 [0x7fdb873ff700] DEBUG - Signalling job ID 31401 with 9
Jul 05, 2018 02:06:47.254 [0x7fdb873ff700] DEBUG - Job was already killed, not killing again.
Jul 05, 2018 02:06:47.254 [0x7fdb873ff700] DEBUG - Stopping transcode session fed126d4481078fa-com-plexapp-android
Jul 05, 2018 02:06:47.254 [0x7fdb63bf2700] DEBUG - Cleaning directory for session fed126d4481078fa-com-plexapp-android (/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-fed126d4481078fa-com-plexapp-android-bdb70141-d8c2-4953-ad2d-984b66339705)
Jul 05, 2018 02:06:47.257 [0x7fdb873ff700] DEBUG - Transcoder: Cleaning old transcode directories.
Jul 05, 2018 02:06:47.258 [0x7fdb873ff700] DEBUG - Transcoder: Cleaning old transcode directory: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-a7474351f13bcb6e9dafa62bed5bb137-c1f7c63c-cd45-4142-b3a4-c17fc6461033
Jul 05, 2018 02:06:47.258 [0x7fdb873ff700] DEBUG - Whacked session fed126d4481078fa-com-plexapp-android, 0 remaining.
Jul 05, 2018 02:06:47.258 [0x7fdb873ff700] DEBUG - Killed 1 idle sessions out of a total of 1.
Jul 05, 2018 02:07:04.458 [0x7fdb7effc700] DEBUG - [Now] Removing idle session for device fed126d4481078fa-com-plexapp-android_Video.
Jul 05, 2018 02:07:06.542 [0x7fdb6a3ff700] DEBUG - Streaming Resource: Timing out session 0x7fdb6da3c420:fed126d4481078fa-com-plexapp-android
Jul 05, 2018 02:07:06.543 [0x7fdb6a3ff700] DEBUG - Streaming Resource: Terminating session 0x7fdb6da3c420:fed126d4481078fa-com-plexapp-android which is using 1992kbps of WAN bandwidth. Used is now 0kbps
Jul 05, 2018 02:07:06.543 [0x7fdb6a3ff700] DEBUG - Streaming Resource: Terminating session 0x7fdb6da3c420:fed126d4481078fa-com-plexapp-android which is using transcoder slot. Used slots is now 0
Jul 05, 2018 02:07:06.543 [0x7fdb6a3ff700] DEBUG - Streaming Resource: Terminated session 0x7fdb6da3c420:fed126d4481078fa-com-plexapp-android with reason Client stopped playback.
Jul 05, 2018 02:07:06.543 [0x7fdb6a3ff700] DEBUG - Streaming Resource: Removing session 0x7fdb6da3c420:fed126d4481078fa-com-plexapp-android
Jul 05, 2018 02:07:06.543 [0x7fdb727fc700] DEBUG - Job was already killed, not killing again.
Jul 05, 2018 02:07:06.543 [0x7fdb727fc700] DEBUG - Job was already killed, not killing again.
Jul 05, 2018 02:07:06.543 [0x7fdb727fc700] DEBUG - Transcoder: Cleaning old transcode directories.
Jul 05, 2018 02:07:06.543 [0x7fdb727fc700] DEBUG - Whacked session fed126d4481078fa-com-plexapp-android, 0 remaining.
Jul 05, 2018 02:09:21.991 [0x7fdb727fc700] DEBUG - EPG[onconnect]: Purging 0 airings which completed in the past.
Also here is the images of “active” and “deactivating”


Any help on how to fix this would be greatly appreciated, but for now it looks like another hard reboot… sighs