[bug] Recordings "stuck" at 100% or not starting at all

I’m experiencing a problem with DVR recordings, using Plex Media Server Version 1.7.2.3878, on Windows Server 2012 R2 Essentials (64-bit), using an HDHomeRun Connect. Several times I’ve had a recording get to “Recording - 100% Complete” when viewing the “Airing Details” from the “Recording Schedule”. An MKV file for the relevant show appears in the .grab directory, but it’s a 0 KB file, and nothing happens from there.

One more thing, which may or may not be related: I’ve also been struggling with recordings showing up as scheduled in the Recording Schedule but never actually getting recorded(especially when recording recurring episodes of a series, like a nightly talk show).

Any ideas?

Thanks in advance.

EDIT: I attempted to shut down and then restart Plex Media Server (without rebooting the actual Windows Server) and this “unstuck” the recording. It has now shown up in my target recordings folder, and the temporary file is gone from the .grab directory. But there’s still obviously an issue that is only being cleared by a shutdown/restart of Plex.


i’m seeing this behavior too. HDHomeRun Connect newest plex media server

Seems to be related to a bug multiple people have been reporting in the 1.7’s. See this thread. https://forums.plex.tv/discussion/274585/issue-with-tuners-and-recordings#latest

Thank you, @lorddoskias. Hopefully we’ll see a fix soon! For now, it looks like I need to figure out how to roll back my Plex server install to 1.5.6. :neutral:

Patch Testing & Sample Media

Greetings! We’re knee-deep in our investigation with this issue and would like to make a call out for additional sample media where the issue is successfully reproduced, or “caught in the act.” Additionally, we’d like to put together a small group of users who would be willing to install a patch to test the potential fix. For this testing we’re going to focus only on the Mac platform with HDHomeRun tuners, though we know the issue exists on other others (the final fix will go out to all platforms). If you meet the following requirements, please read on for how to provide us with appropriate sample media and logs.


Requirements

  • OS: macOS Sierra or High Sierra
  • PMS. v1.9.4 (latest Plex Pass release)
  • HDHomeRun Connect, Prime, or Extend
    • OTA (over-the-air) transmission only
    • If using an Extend, disable on-device transcoding
  • You can consistently reproduce the issue
  • Basic knowledge of the command-line interface
  • All regions welcome

Steps for providing sample media

Please follow these steps in the order provided.

  1. Restart your server, and allow the EPG to load (if it’s been ~18 hours since a server restart)
  2. If you had the EPG reload, then restart your server again (this keeps the logs clean, as there won’t be the EPG refresh this time) - otherwise you can skip this step
  3. While the show you want to use for testing is airing, launch Terminal and run the following command. This will begin recording a raw feed from your tuner. If you are not sure what the URL is, generate PMS logs, open Plex Media Server.log, and search for final URL is.
  • curl http://tunerip:port/auto/channel > /users/outputpath/plexSamples/samplefile.ts
  • e.g.: curl http://10.0.1.20:5004/auto/v40.1 > /users/kinoCharlino/desktop/samplefile.ts
  1. Record the same show in Plex Web by going to Program Guide -> Watch Now (filter the “Discover” dropdown), then find the show and click the small record button at the bottom of the poster art
  2. With the same show on the same channel being recording using 2 tuners (raw feed + Plex), wait for the recording to fail
  3. Once the recording has failed, stop the recording in Plex Web
  4. Stop the raw feed recording by pressing Control + C in Terminal. The .ts file will then complete saving to your selected location
  5. Generate PMS logs in Plex Web by going to Settings -> Server -> Help
  6. Upload your logs and sample media to your favorite file hosting/sharing service (such as Dropbox or Google Drive) and PM @kinoCharlino with the download links

Testing the patch

Once we have received sample media and logs verifying the same issue from several users, I’ll reach out about installing a special patch to test the potential fix.


Edit
If you’re having difficulty locating locating the tuner URL for the Curl command, try recording a few minutes of the problematic challenge and then create the logs. You can then use the URL from that log to record for creating your test sample.