ERROR - Session 0x5f22018 terminated ?!?!?!

Plex Server Version 1.18.8.2468
Server Hardware: AMD FX 8320 8 Core 3.50GHz
Server Memory: 32GB
Server OS: Windows Server 2019 Essentials

Hi All,
I am struggling identifying the root cause of a recent issue that has been affecting my Plex setup since I would say 29th February 2020.

Every file I direct play or transcode to a Plex player in my home, whether it be on a Windows PC, Android Phone, Nvidia Shield 2015/2019, will end up playing perfectly for 10 to 20 minutes before all of a sudden it will stop dead, like it has been paused.

When viewing the status of the playback in the plex dashboard through a web browser it shows initially the playback has been paused, but then after so many seconds it then automatically shows playing again (timer is going up), however the device that was playing the movie etc. just stays with the same static picture frame as if still paused, it can’t be resumed.

I have turned on full verbose debugging but it doesn’t give me much to go on, extract below from the Plex Media Server log:

Mar 02, 2020 14:47:59.806 [8828] ERROR - Session 0x5f22018 terminated
Mar 02, 2020 14:48:02.671 [7916] WARN - Denying access to direct play of part 1952143 due to terminated session
Mar 02, 2020 14:48:03.767 [7916] WARN - Denying access to direct play of part 1952143 due to terminated session
Mar 02, 2020 14:48:06.859 [7916] WARN - Denying access to direct play of part 1952143 due to terminated session
Mar 02, 2020 14:48:13.950 [7916] WARN - Denying access to direct play of part 1952143 due to terminated session
Mar 02, 2020 14:48:29.044 [7916] WARN - Denying access to direct play of part 1952143 due to terminated session
Mar 02, 2020 14:49:00.142 [7916] WARN - Denying access to direct play of part 1952143 due to terminated session

The issue also exists, however to a lesser extent when playing remotely. My wife was just watching a tv episode (Direct Play) and she said it stopped after 30 minutes. I was testing with a bluray movie over 4g on my Pixel phone (transcoded to 720p) earlier today and it went to around 40 minutes fine, before I manually stopped it. I was initially hoping remote playback might have been fine.

I’ve also tried forcing playback as transcoded while at home, but same problem, if direct play doesn’t work correctly, I assumed transcoded wouldn’t either and that is the case.

Does anyone have any ideas, I’ve tried all sorts to help diagnose what is happening but to no avail, at a complete loss now.

I’ve replaced network cables, reset the network adapter on the server back to default, tried different switches, rebooted the router etc. etc.

Any words of wisdom out there?

Do not turn on verbose logging unless you are working with someone and they’ve ask you to do it. Otherwise there is too much info and the issue can get lost. Only use debug logging. Recreate the issue and provide the entire PMS log.

I thought I had logging on before, just ran a quick test now and the only thing I can find of value is a debug entry directly before the dreaded session terminated error. Why it thinks the playback has been paused for too long, beats me:

Mar 02, 2020 21:46:44.743 [12496] DEBUG - Streaming Resource: Terminated session 0x6156b50:token=xxxxxxxxxxxxxxxxxxxx with reason Playback has been paused for too long.
Mar 02, 2020 21:46:45.062 [8388] ERROR - Session 0x6156b50 terminated

I’ll run another test now, shall I just add the logs here?

Yes, attach the entire file. Do not paste the text.

Logs as requested, enjoy!
Logs.zip (120.4 KB)

You still have verbose logging enabled. Please try again.

The playback paused @ 22:14
I left the log capture running for a few more minutes, until the dashboard went from state of paused then to playing for the hung stream.

I then terminated the session from within the dashboard @ 22:17

I might have found a workaround thanks to this previous thread

I had set ā€˜Terminate Sessions Paused for Longer Than’ to a value of 10 mins, it had been set like this for at least a year or more. It was initially set to 60 mins, but as too many remote connections were being paused and never resumed, this caused my server to keep transcoding a stream for minimum 60 mins which was a complete waste of electricity. Hence why I changed this to 10 mins.

However it appears a recent change to plex media server or the clients has caused some conflict with this parameter. I removed the 10 from this field, so it was empty and clicked save, which seems to have defaulted it to 0 mins.

Since that change, no issues so far in streaming, working as it did before.

I switched ā€˜Terminate Sessions Paused for Longer Than’ setting back to 10 and set logging to debug only, logs attached:

Logs (Debug).zip (60.4 KB)

Mar 03, 2020 08:46:40.231 [3912] DEBUG - Streaming Resource: Terminated session 0x5f9d188:token=xxxxxxxxxxxxxxxxxxxx with reason Playback has been paused for too long.

That does appear to be the issue. I thought that issue was fixed.

It’s managed to get out of the box you locked it in, need to call Doctor Sleep! :ghost:

Very long time Plex user here and I ran into this too today. Happens now only with the Shield in our main viewing point. Samsung TV clients and PlexWeb does not seem to be affected. I do have the pause setting applied because I’m using ramdisk transcoding with unraid. Without it the transcoder would run forever and fill all space.

My Plex Server was not recently updated but my Shield was updated to 8.0.2 within a week.

Been experiencing this same issue since early March after the latest public channel upgrade. I then upgraded to the latest beta release hoping it’d fix it, but it has not.

Here’s the debug entries I found which led me here. I too had a value for ā€˜Terminate Sessions Paused for Longer Than’ set - I had mine at 30 minutes which is the exact amount of time between session creation and termination. I’ve removed this value for the time being to see if this avoids the issue.

PMS Version: Version 1.18.8.2468
Client - Latest Plex Client Build - Shield TV

[Session Started]

Mar 09, 2020 21:14:20.583 [10332] DEBUG - Streaming Resource: Added session 0xd3eb730:token=xxxxxxxxxxxxxxxxxxxx
Mar 09, 2020 21:14:20.583 [10332] DEBUG - Streaming Resource: Reached Decision id=32103 codes=(MDE=1000,Direct play OK.) media=(id=46410 part=(id=49721 decision=direct play protocol=* streams=(Video=(id=117235 decision= width=1920 height=1080) Audio=(id=117237 decision= channels=0 rate=0))))

[30 Minutes Later (the value set in PMS) - PMS terminates active session thinking it’s paused.]

Mar 09, 2020 21:44:38.525 [6348] DEBUG - Streaming Resource: Terminated session 0xd3eb730:token=xxxxxxxxxxxxxxxxxxxx with reason Playback has been paused for too long.
Mar 09, 2020 21:44:40.169 [9220] ERROR - Session 0xd3eb730 terminated

[Player continues playing out of it’s cache - but requesting PMS for more]

Mar 09, 2020 21:46:46.312 [12484] DEBUG - Request: [REDACTED:57208 (Subnet)] GET /library/parts/49721/1583812614/file.mkv?autoAdjustQuality=0&hasMDE=1&location=lan&mediaBufferSize=75776 (61 live) TLS Signed-in Token (Home) (range: bytes=1085085141-)
Mar 09, 2020 21:46:46.315 [12484] WARN - Denying access to direct play of part 49721 due to terminated session

I’m also seeing this issue, with the exact same error logs, session terminated from being paused too long and denying access to direct playback xxx. plex sever Version 1.18.7.2457 and using Andriod app. I have removed the 15 min i had in the paused playback settings to see if null will be a good work around. This is in the non beta version too, that should be updated

I am running into this issue exactly from a few days with NVIDIA Shield TV Pro 2019 on latest shield firmware v8.1.1. Issue noticed on 4K HDR Dolby Atmos file. Playback terminates after the time specified in ā€œTerminate Sessions Paused for Longer Thanā€ section in the network settings.

If anyone has any solution please help!

Thanks.

I’ve marked the solution above, although it is just a workaround really.

Just set ā€˜Terminate Sessions Paused for Longer Than’ to 0 in plex server settings.

Not sure if it’s related yet but i’ve been experiencing sudden stops in my video from the Plex App on my 2019 Nvidia Shield TV Pro when playing from a separate Plex Media Server running on Windows 10. The duration that it plays successfully seems random though. I wasn’t able to get much from the plex server console bu this:

My setting for, ā€œTerminate Sessions Paised for Longer Thanā€ is set to 20, I don’t recall ever changing this but I know it hasn’t been in the past few months. I had tried using a RamDisk for transcoding recently but when I started seeing this issue I thought it was related so I reverted it back to it’s previous transcoding folder and the issue persists.

I have attempted to uninstall and reinstall the plex app on my shield but no success. I know that I was also at least 40 minutes into the episode but now that I think about it, I had paused several times while I was watching the episode (I have kids and dogs).

I can attach logs but i had the verbose setting enabled. Based on this thread I have disabled verbose logs, left debug logs enabled and will attempt to get the error again and will grab logs. If I get the issue again then I will download the logs and then attempt the same proposed solution of setting the sessions paused to 0 minutes.

1 Like

You have the exact same scenario as me @ZeroMatrix.

The solution that is working for me is to remove any value in ā€œTerminate Sessions Paised for Longer Thanā€ and save it.

Cheers!

Okay, I was able to reproduce the issue without changing any of my settings. It took almost exactly 1 minute more than my timeout to stop and I think that’s because of caching.

Here is my version information.

  1. Plex Media Server version 1.18.8.2527
  2. 2019 NVidia Shield TV Pro
    • SW version 8.1.1(32.7.301.99)
  3. Plex App version 7.29.2.16071 (71e4f554)

Steps to reproduce:

  1. Use the two preferences listed above, add the total minutes from the two preferences. (ex: 21 minutes)
  2. Play a video that is longer than that duration.
  3. Once playing starts, start a timer, and touch nothing.
    • in my attempt to reproduce, I had added subtitles after I started playing but I guessed (correctly) that if I started my timer as soon as I exited the on screen overlay then the timer would start.
  4. Play will stop at that duration and a message that the server stopped sending the video or something along those lines… Sorry, I didn’t get the exact text but it was something about buffer maybe.

My next steps.

  1. I will clear the value in my preference for Terminate Sessions Paused for Longer Than and click save as @enshittification verified worked for them and @saltyzip marked as the solution.
    • After clearing and saving the setting, I reloaded the settings and the value was ā€˜0’.
  2. I will continue watching some content tomorrow and watch a timer for 21 minutes and if the content freezes then I will attach another log and if not then I will verify that this is a functioning work around.
1 Like

Hey @ZeroMatrix, thanks for the extended writeup.

I skimmed through your logs and find the similar errors as in mine.

Mar 20, 2020 22:52:20.878 [9368] ERROR - Session 0x8efdfc0 terminated
Mar 20, 2020 22:52:21.046 [6924] DEBUG - Auth: authenticated user 1 as ZeroMatrix
Mar 20, 2020 22:52:21.046 [10504] DEBUG - Request: [192.168.86.27:54434 (Subnet)] GET /library/parts/2109377/1579570860/file.mkv?autoAdjustQuality=1&hasMDE=1&location=lan&mediaBufferSize=162688 (23 live) TLS Signed-in Token (ZeroMatrix) (range: bytes=1885415048-) 
Mar 20, 2020 22:52:21.062 [10504] WARN - Denying access to direct play of part 2109377 due to terminated session

I must add that I am no expert in plex logs, however these seem to match mine and look like the issue here.

Do let us know how it goes after you changed your settings.

Stay Safe Everyone!