I am seeing this issue with server version Version 1.18.5.2260 (and shield client with 3 hour screen saver setting, roku, or desktop). I can see usually around 220-230 files in the transcode directory before it gets killed. In the debug log I found these entries (bolded), and I certainly did not initiate the termination…
Jan 25, 2020 10:40:40.152 [0x7f4582ffd700] VERBOSE - It took 0.0 sec to serialize a list with 0 elements.
Jan 25, 2020 10:40:40.152 [0x7f45837fe700] DEBUG - Completed: [127.0.0.1:58934] 206 PUT /video/:/transcode/session/e9da9ab2-1049-4300-bd9e-412f4272f90b/35bc5a65-7742-474b-83e6-9fd9f5eab0f8/progress?progress=-1.0&size=-22&remaining=-1&speed=1.0 (12 live) 0ms 355 bytes (pipelined: 469) (range: bytes=0-)
Jan 25, 2020 10:40:40.346 [0x7f4581ffb700] DEBUG - Shutting down idle session e9da9ab2-1049-4300-bd9e-412f4272f90b (idle time is 180 seconds)
Jan 25, 2020 10:40:40.346 [0x7f4581ffb700] DEBUG - Killing job.
Jan 25, 2020 10:40:40.346 [0x7f4581ffb700] DEBUG - Signalling job ID 20116 with 9
Jan 25, 2020 10:40:40.346 [0x7f4581ffb700] DEBUG - Job was already killed, not killing again.
Jan 25, 2020 10:40:40.346 [0x7f4581ffb700] DEBUG - Stopping transcode session e9da9ab2-1049-4300-bd9e-412f4272f90b
Jan 25, 2020 10:40:40.346 [0x7f4588d6c700] DEBUG - Cleaning directory for session e9da9ab2-1049-4300-bd9e-412f4272f90b (/transcode/Transcode/Sessions/plex-transcode-e9da9ab2-1049-4300-bd9e-412f4272f90b)
Jan 25, 2020 10:40:40.350 [0x7f458beec700] VERBOSE - JobManager: child process with handle 20116 exited
Jan 25, 2020 10:40:40.351 [0x7f458beec700] DEBUG - Jobs: ‘/usr/lib/plexmediaserver/Plex Transcoder’ exit code for process 20116 is -9 (signal: Killed)
Jan 25, 2020 10:40:40.351 [0x7f45377fe700] DEBUG - Grabber: Freed a tuner on device://tv.plex.grabbers.hdhomerun/107563B4 (now 4 available)
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Grabber: Recording for ‘Live TV - Session 377287fd085ed765-com-plexapp-android’ on channel 3.1 stopped with status complete.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Grabber: Using recording status.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Grabber: This was a rolling sub, not assimilating.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Grabber: Operation for ‘Live TV - Session 377287fd085ed765-com-plexapp-android’ on channel 3.1 completed with status complete (Success)
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Activity: Ended activity f8b18359-978d-4a97-9796-71616c6a8080.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Activity: updated activity 1067b234-0cff-4f36-b484-21bc28226f4d - completed 100.0% - Refreshing Sub
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Activity: Ended activity 1067b234-0cff-4f36-b484-21bc28226f4d.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Grabber: Cleaning up rolling grab for channel 3.1.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Recorder: No more consumers, stopping.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Recorder: Asked to stop recording ‘Live TV - Session 377287fd085ed765-com-plexapp-android’ on channel 3.1.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Recorder: Stopping transcode session.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Job was already killed, not killing again.
Jan 25, 2020 10:40:40.351 [0x7f4536ffd700] DEBUG - Job was already killed, not killing again.
Jan 25, 2020 10:40:40.351 [0x7f4564ff9700] DEBUG - HTTP requesting GET http://172.16.0.121:80/discover.json
Jan 25, 2020 10:40:40.352 [0x7f4581ffb700] DEBUG - Transcoder: Cleaning old transcode directories.
Jan 25, 2020 10:40:40.352 [0x7f4536ffd700] DEBUG - Subscription: Cancelling grab for subscription 67: ‘Live TV - Session 377287fd085ed765-com-plexapp-android’ on channel 3.1
So, this is weird, but it seems that Plex thinks it has an “idle” session on its hands, and then just goes and terminates it. and when restarting the stream on the front-end there is a little bit of playing going on (approx. 30-60 seconds) and then the picture freezes. In the log the other messages show up, where I think it’s looking for the “container” and can’t find it, because Plex cleaned everything out.