Server Version#: 1.32.5.7349
Player Version#: Roku Streaming Stick 7.6.8501-67117911f-Plex
When I try to view a program which is in the process of recording, very often it appears that the program is no longer recording. I do not get the normal message asking me if I want to start the program from the beginning. After viewing several log files from my HDHomeRun scanner, it appears that when I have this problem, the HDHomeRun indicates that the “http stream ended” at some time before I attempt to view the program in progress. Often the stream ended several minutes before I attempted to view it live. Does anyone have any idea why this is happening? Here are the components I am using and log files from Plex and from my HDHomeRun
Scanner is a
HDHomeRun CONNECT QUATRO Model: HDHR5-4US
I have both scanner and PC connected to a
NETGEAR ProSAFE Gigabit Switch GS105
my PC is
Lenovo Thinkcentre Desktop
Windows 10 Pro
i5 - 4570 CPU
8 GB RAM
3 TB NTFS External Seagate Hard Disk connected to the PC through a USB cable
The library for my recorded shows is on the external hard drive
For the “Transcoder temporary directory” I am using a folder on my PC’s Desktop
Player is
Roku Streaming Stick version 7.6.1.8501
(I have the same problem when I use my Sony smart TV)
I have my DVR set up to start recording at 7:00AM and end at 9:00 AM. Notice in the HD homerun log that the Tuner starts steaming at 11:59 (which is really 7:00AM in my time zone and in Plex Logs) but then ends about 11 minutes later and says “remote closed”
During the attempted recording there are a series of errors in the Plex Server logs similar to the following:
Aug 23, 2023 07:07:07.451 [1424] ERROR - Caught exception trying to stream file: C:\Users\byron\Desktop\deleteMe\Transcode\Sessions\plex-transcode-6cbfe79b-be18-4955-b7c2-bdcfe0ee567e\media-00416.ts: write: A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call [system:10058]
and then Plex finally stops the recording with the following errors:
Aug 23, 2023 07:12:29.432 [2384] ERROR - [Req#559911/Transcode/3945d420-022d-433a-8d3d-4c3cf7f85ad3/eb0b6673-0d85-4f07-a290-ad8dc183ebca] av_interleaved_write_frame(): Invalid argument
Aug 23, 2023 07:12:29.433 [2384] ERROR - [Req#55992a/Transcode/3945d420-022d-433a-8d3d-4c3cf7f85ad3/eb0b6673-0d85-4f07-a290-ad8dc183ebca] Error writing trailer of D:\snetTvRecordings\.grab\c503ba1cc58e989bd4c0d02138a436309cdf676f-87c2c137b92c9d83ee2cc5f47a5b0c2c0f0e7bd9\Today (1952) - S71E289 - Today.ts: Invalid argument
Aug 23, 2023 07:12:29.436 [2384] ERROR - [Req#55992c/Transcode/3945d420-022d-433a-8d3d-4c3cf7f85ad3/eb0b6673-0d85-4f07-a290-ad8dc183ebca] Error closing file D:\snetTvRecordings\.grab\c503ba1cc58e989bd4c0d02138a436309cdf676f-87c2c137b92c9d83ee2cc5f47a5b0c2c0f0e7bd9\Today (1952) - S71E289 - Today.ts: Invalid argument
Aug 23, 2023 07:12:29.451 [2120] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\Plex Transcoder.exe' exit code for process 8496 is 1 (failure)
Aug 23, 2023 07:12:29.451 [8904] DEBUG - [Grabber/c503ba1cc58e989bd4c0d02138a436309cdf676f] Recorder: No more consumers, stopping.
Aug 23, 2023 07:12:29.451 [8904] DEBUG - [Grabber/c503ba1cc58e989bd4c0d02138a436309cdf676f] Recorder: Asked to stop recording 'Today - E289 - Today' on channel 5fc76e22eb8098002d84febe-5fc705f7088e7d002d4c718e.
I see your channel signal strength is fantastic. Is there a particular reason that you moved the transcode directory to your desktop? I’m mostly curious since it would have moved it from the default location on the C: drive to your desktop, which is also on the C: drive.
Have you tried a reboot of the computer since this problem started? Also, you may want to run a check disk on your C: drive to make sure there aren’t any errors or issues with the drive. Is the C: drive excessively busy during the time of this recording? I’d also suggest trying the default location for the transcoder temp directory (e.g. clear the transcoder temp directory field in Plex and restart the Plex Server.)
I moved the temporary transcode directory to a folder on my desktop because I wanted to assure it was on the C: drive which is a SSD. My plex libraries are located on my D: drive which is an external hard disk drive connected to my PC through USB cable so I assume the default for temporary transcoder is also on the D:. I thought that some of my problems were related to the speed of communication to the external disk drive through the USB for temporary files. My external HDD is much bigger than my PC SSD so which is why I have my libraries on the external HDD. I changed my temporary transcoder directory to the default as you suggested. Let’s see if that helps.
I have not viewed the disk “active time” when a recording failed, but right now it happens to be successfully recording and my C: active time is around 1%-2% and my D: drive is about 1%-5% with periodic spikes around 15%-20% on D:. I do notice the very large spikes in average response time on my D: drive as high as 25 ms and 70 ms were as my C: drive is only around 3 ms.
I do not understand the plex server log file messages. Do you think my problem might be related to the speed of reading/writing to my external HDD through USB?
Yes the error persist after rebooting my PC.
I did a check disk on my C: & D: drives. No errors.
BTW, I used to have poor signal strength but my signal strength has been fantastic (as you observed) ever since I installed an outdoor Antennas Direct ClearStream 4MAX.
The location of the default transcode directory isn’t entirely obvious, but if you have set it back to the default then you should find it under the Plex data directory. Unless you have gone out of your way to change the default data directory, it is at %LOCALAPPDATA%\Plex Media Server. You can verify your %LOCALAPPDATA% by going to the command line and executing “echo %LOCALAPPDATA%”.
Unfortunately the error is an operating system error when trying to read/write from disk, and I’m not seeing this in the Plex forums as a common error. This tends to make me think there is an issue specific with your setup versus a fundamental issue with Plex Server. I’m leaning toward the errors with D: are a result of the previous C: errors on the recording process.
Please post back with the results of recording using the default transcode location.
My Plex Server has been recording shows much more reliably now. I moved my temporary file location like hokierulz suggested and in addition I installed some optional updates through Windows Update–> Advanced Options–> Optional Updates which included some drivers. I have always done recommended Windows updates, but rarely do optional updates. I have had only 2 occasions which did not record since those changes. One time, I noticed there was a Windows update and a Plex update. After I updated both, my system started recorded normal again. I do not know why it didn’t record the second time. See log files from Plex and from HDhomeRun. Time of error is 3:13 in the HDhomeRun clock which is about the same time as 22:13 in the Plex Log. HdhomeRunWhenDidntWork20230920.txt (757 Bytes) Plex Media Server subset.log (3.6 MB)