Project

General

Profile

Recordings finish with "Completed OK", but are incomplete

Added by Tom H about 3 years ago

Hi,

I'm having an issue with recordings not completing, but I can't work out why. They show as "Completed OK" and there is no error in the log, but the videos are not full-length when I play them back.

This isn't happening with every recording but it's frustrating when it does happen.

Here's an example from overnight. I scheduled a 2 hour 15 minute recording.

Sep 12 02:34:30 tvh tvheadend[119084]: dvr: "my program" on "my channel" recorder starting
Sep 12 02:34:30 tvh tvheadend[119084]: subscription: 0014: "DVR: my program" subscribing on channel "my channel", weight: 500, adapter: "IPTV #1", network: "IPTV", mux: "1czrtuh2e - my channel", service: "my channel", profile="pass", username="hts" 
Sep 12 02:35:00 tvh tvheadend[119084]: dvr: /home/hts/my program.ts from adapter: "IPTV #1", network: "IPTV", mux: "1czrtuh2e - my channel", provider: "<N/A>", service: "my channel" 
Sep 12 04:50:00 tvh tvheadend[119084]: subscription: 0014: "DVR: my program" unsubscribing from "my channel", username="hts" 
Sep 12 04:50:00 tvh tvheadend[119084]: dvr: "my program" on "my channel": End of program: Completed OK

The resulting file only contains 38 minutes and 38 seconds of video.

I looked in syslog for any errors around the time it finised (02:35 + 38 minutes == 03:13) but there's nothing. Just systemd triggering a metadata check and a DHCPREQUEST.

Sep 12 03:11:11 tvh systemd[1]: Starting Online ext4 Metadata Check for All Filesystems...
Sep 12 03:11:11 tvh systemd[1]: e2scrub_all.service: Succeeded.
Sep 12 03:11:11 tvh systemd[1]: Finished Online ext4 Metadata Check for All Filesystems.

Sep 12 03:12:22 tvh dhclient[587]: DHCPREQUEST for xxx.xxx.xxx.xxx on eth0 to xxx.xxx.xxx.xxx port 67 (xid=0x4575ad21)
Sep 12 03:12:22 tvh dhclient[587]: DHCPACK of xxx.xxx.xxx.xxx from xxx.xxx.xxx.xxx (xid=0x21ad7545)
Sep 12 03:12:22 tvh dhclient[587]: bound to xxx.xxx.xxx.xxx -- renewal in 273 seconds.

I also checked the system's activity graphs. There was plenty of RAM free at that time, disk IO looks ok, etc.

I'm running tvheadend installed from the apt repo on a Ubuntu 20.04 VPS.

Linux tvh 5.4.0-84-generic
tvheadend:
  Installed: 4.3-1979~g8fc2dfa7e~focal

Any ideas to troubleshoot this? I'm stumped!

Thanks!