Hi!
I’ve had this problem for a few days now, but I cannot define at which PMS version I have been when it started. First I thought it was releated to a specific series I was watching, but then I also found it happening in several movies.
I use PMS for Windows 10, streaming to a ChromeCast using the Android App. Both server and app are at the newest versions.
At random points while watching, Plex would just immediately stop, displaying transcoder error with a very general message. The moment the errors would occur are at completely different times in the videos; when restarting, the error would some times not occur again, or shortly after the moment it happened the last time, but never at the exact same moment as before.
I activated the log and watched again, restarting the movie when Plex crashed to generate possible errors several times.
Here are the errors I found in the MediaServer log at the timestamps where PMS would crash:
Blockquote
Jul 22, 2018 20:05:42.004 [9148] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::remove: Das System kann die angegebene Datei nicht finden: “C:\Users\Sinus\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-2l6skg3ms2ym7htlv70zfvgv-346344f0-4299-4567-a3b6-69c4a27d6935\chunk-00087”)
Jul 22, 2018 20:05:42.005 [9148] DEBUG - Whacked session 2l6skg3ms2ym7htlv70zfvgv, 0 remaining.
Blockquote
Jul 22, 2018 20:08:52.309 [1304] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::status: Zugriff verweigert: “C:\Users\Sinus\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-9l5timgr805wgbgn2sjrwoex-093ca154-aa8c-44f6-a7f6-45f0913b1d3f\header”)
Jul 22, 2018 20:08:52.310 [1304] DEBUG - Whacked session 9l5timgr805wgbgn2sjrwoex, 0 remaining.
Blockquote
Jul 22, 2018 20:09:57.721 [3724] ERROR - Transcoder: Failed to delete session directory (boost::filesystem::remove: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: “C:\Users\Sinus\AppData\Local\Plex Media Server\Cache\Transcode\Sessions\plex-transcode-odqqc5a6buiq4dx9pamy1fgh-ef96a899-d39d-4e3d-a282-0e52a20f0a86\chunk-00031”)
Jul 22, 2018 20:09:57.721 [3724] DEBUG - Whacked session odqqc5a6buiq4dx9pamy1fgh, 0 remaining.
I added the whole logs as attachment: Plex Media (1.2 MB)
Now as clever as I though I would be, immediately suspected my antivirus to scan these files. I thought it (BitDefender TotalSecurity 2018) might monitor Plex’ behaviour, scanning the files it creates, and while scanning the files Plex would try to delete them, which it can’t do cause they are opened, so Plex fails.
But that wasn’t it. I completely shut BD down, same errors.
I navigated to the sessions folder in the log messages and tried to delete them myself. Windows blocked me and noted that the files are currently opened by an application and that I could not delete them. I clicked ‘skip’, so all files would be deleted except the ones opened in an application. A single ‘chunk-000XX’ file remained that I could not delete. Then I shut PMS down and tried to delete it again; boom, deleted.
So this is an absolute suspicion as I know nothing about PMS’ internals, but it seems that it (or another one of its processes) is keeping hold on chunks while a cleanup process is already trying to delete them, which failes. If thats the case, the cleanup could just skip deleting the chunk until later, or whatever.
I hope you can help me, as you can see from my logs as soon as the error happens for the first time its happening over and over again in ~5 minute intervals, which makes it impossible to watch anything.
One more thing: I have tried restarting PMS and start watching again; after some time: same problem.
Thanks for looking into this!