I did some more digging to isolate the source of the failure, and I now know that it is related to my QNAP NAS storage device.
If I try recording TV onto a local hard drive on my PC, I can record tv shows just fine. My P: drive was a hard disk, not a mapped Windows drive.
However, if I try to record to my QNAP \<qnap_ip_address>\Multimedia\tv shared folder, the recording doesn’t get saved. I read and write to the \<qnap_ip_address>\Multimedia\tv folder fine with Windows Explorer, but Plex apparently fails during the recording process.
Note that I don’t use a Windows mapped drive to the QNAP, I always use the UNC path to the QNAP folder.
I can see that Plex is able to write the thousands of .ts files to the \<qnap_ip_address>\Video Conversion\Transcode\Sessions\plex-transcode-xxxxxx during the recording, so Plex has some sort of access to the NAS working.
Here is an edited list from my Plex Media Server.log file:
Search "error" (133 hits in 1 file)
C:\Users\AzJazz\AppData\Local\Temp\7zOC156DB40\Plex Media Server.log (133 hits)
Line 174: Jul 07, 2019 13:01:19.350 [22624] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00044.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
Line 406: Jul 07, 2019 13:01:46.429 [22228] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00071.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
Line 425: Jul 07, 2019 13:01:47.618 [9056] DEBUG - NotificationStream: Removing because of error
Line 577: Jul 07, 2019 13:02:08.356 [22624] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00093.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
Line 775: Jul 07, 2019 13:02:34.454 [22228] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00119.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
...
Line 2528: Jul 07, 2019 13:06:31.380 [22544] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00356.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
Line 2698: Jul 07, 2019 13:06:54.433 [29284] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00379.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
Line 2884: Jul 07, 2019 13:07:19.429 [22624] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00404.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
Line 3157: Jul 07, 2019 13:07:29.026 [24304] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 5289: Jul 07, 2019 13:11:46.434 [22544] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00671.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
Line 5454: Jul 07, 2019 13:12:08.389 [22624] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00693.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
Line 5781: Jul 07, 2019 13:12:27.354 [24952] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 5929: Jul 07, 2019 13:12:31.365 [22544] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00716.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
Line 5973: Jul 07, 2019 13:12:37.006 [23232] WARN - NAT: PMP, got an error: NATPMP_ERR_RECVFROM.
Line 6134: Jul 07, 2019 13:12:58.424 [29284] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00743.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
Line 6314: Jul 07, 2019 13:13:22.393 [22228] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-00767.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
...
Line 19362: Jul 07, 2019 13:38:56.342 [29320] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-02301.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
Line 19535: Jul 07, 2019 13:39:19.363 [12172] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-02324.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
Line 19760: Jul 07, 2019 13:39:40.320 [22228] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-02345.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
Line 19778: Jul 07, 2019 13:39:40.704 [9056] DEBUG - NotificationStream: Removing because of error
Line 20043: Jul 07, 2019 13:40:05.366 [29132] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-02370.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
Line 20235: Jul 07, 2019 13:40:27.274 [22544] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-02392.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
...
Line 31699: Jul 07, 2019 13:58:58.316 [12172] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-03503.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
Line 31918: Jul 07, 2019 13:59:23.302 [29132] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-03528.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
Line 32132: Jul 07, 2019 13:59:47.338 [12172] ERROR - Caught exception trying to stream file: \\172.16.1.200\Video Conversion\Transcode\Sessions\plex-transcode-5a740b3c-0719-4484-91b8-0ce3f75c5006\media-03552.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
Line 32641: Jul 07, 2019 14:04:11.923 [24764] DEBUG - Job running: EAE_ROOT='\\?\P:\Video Conversion\Transcode\Sessions\EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='C\:\\Users\\AzJazz\\AppData\\Local\\Plex\ Media\ Server\\Codecs\\2144ff1-2376-windows-x86\\' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' C:\Program Files (x86)\Plex\Plex Media Server\Plex Transcoder.exe -y -safe 0 -skip_before_video_key 1 -skip_before_inpoint 1 -offset_inout 1 -i \\172.16.1.200\Multimedia\tv\.grab\73f8988d1f5ad59d8af7f89a062ed471c8d98a28\segment-list.txt -map 0 -c copy -loglevel quiet -loglevel_plex error "\\172.16.1.200\Multimedia\tv\.grab\73f8988d1f5ad59d8af7f89a062ed471c8d98a28\NOVA (1974) - S46E11 - Black Hole Universe-comskipped.ts"
Line 32737: Jul 07, 2019 14:05:13.501 [24096] ERROR - Error creating directory "\\172.16.1.200\Multimedia\tv\NOVA (1974)\Season 46": boost::filesystem::create_directories: Access is denied: "\\172.16.1.200\Multimedia\tv\NOVA (1974)"
Line 32737: Jul 07, 2019 14:05:13.501 [24096] ERROR - Error creating directory "\\172.16.1.200\Multimedia\tv\NOVA (1974)\Season 46": boost::filesystem::create_directories: Access is denied: "\\172.16.1.200\Multimedia\tv\NOVA (1974)"
Line 32739: Jul 07, 2019 14:05:13.509 [24096] ERROR - Couldn't rename file "\\172.16.1.200\Multimedia\tv\.grab\73f8988d1f5ad59d8af7f89a062ed471c8d98a28\NOVA (1974) - S46E11 - Black Hole Universe.ts" to "\\172.16.1.200\Multimedia\tv\NOVA (1974)\Season 46\NOVA (1974) - S46E11 - Black Hole Universe.ts": The system cannot find the path specified
Line 33024: Jul 07, 2019 14:05:17.906 [23920] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 33204: Jul 07, 2019 14:05:18.023 [23920] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 33875: Jul 07, 2019 14:07:29.157 [25564] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 34307: Jul 07, 2019 14:12:28.906 [20356] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 34426: Jul 07, 2019 14:12:37.930 [23212] WARN - NAT: PMP, got an error: NATPMP_ERR_RECVFROM.
Line 34872: Jul 07, 2019 14:27:31.644 [16996] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Line 35311: Jul 07, 2019 14:32:27.385 [4932] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html```