Cancelling stream after no data was received for 6s

Reception, channel detection, network issues, CableCARD setup, etc.
Post Reply
dinki
Posts: 93
Joined: Sat Aug 18, 2018 8:35 am

Cancelling stream after no data was received for 6s

Post by dinki »

I am getting cancelled streams while watching live OTA on both of my HDHomerun devices (connect and quatro) when using Channels DVR. Here is an example of the error:

```
2024/10/05 10:29:17.706782 [TNR] Cancelling stream 1072D5CE/0 ch15.1 after no data was received for 6s
2024/10/05 10:29:21.059991 [TNR] Closed connection to 1072D5CE/0 for ch15.1 KADN HD
```

I had this issue months ago and it appeared to resolve on it's own. Some additional information:

* both devices are located in the same closet and are fed to a switch which is connected to the main hub in my office
* all Channels connected players view over wifi. These are Firestick and Android TV device. All are affected
* ChannelsDVR server is hosted on an i5 mini PC with 16GB RAM running as a Docker container. This PC has been running for over a year without issue
* The station that is being tuned that cancels can be restarted immediately and can play for hours without an issue and then it can happen again but may also happen minutes later
* Restarting the Docker container seems to lengthen the time between cancel occurrences but this may be coincidence

I am unsure how to even start to pinpoint where the problem lies. Does anyone have any advice?

[Logs located here](https://dpaste.org/tpiFq#)

Some users on Channels forum suggested I remove the amp from my antenna signal and I did try that but am still seeing the same cancel:

```
2024/10/05 13:31:07.992444 [DVR] Fetched guide data for XMLTV-Pluto in 27ms
2024/10/05 13:31:18.468111 [DVR] Indexed 13231 airings into XMLTV-Pluto (414 channels over 37h0m0s) + 719 skipped [9s index]
2024/10/05 13:31:18.511796 [DVR] pruned 1546 replaced airings in 43ms.
2024/10/05 13:31:18.993595 [DVR] Waiting 3h58m41.006405546s until next job 1728167400-52 NBC Nightly News With Lester Holt
2024/10/05 13:36:10.240218 [TNR] Cancelling stream 1072D5CE/0 ch3.1 after no data was received for 6s
2024/10/05 13:36:13.590849 [TNR] Closed connection to 1072D5CE/0 for ch3.1 KATC-HD
2024/10/05 13:36:13.590904 [SNR] Statistics for ch3.1 KATC-HD: ss=93%,92%-96% snq=100% seq=100% bps=7011260,2185312-11919200 pps=600,187-1021
2024/10/05 13:36:13.591022 [SNR] Buffer statistics for 192.168.0.134 (onn. Streaming Device 4K pro) for ch3.1 KATC-HD: buf=0% drop=0%
2024/10/05 13:37:07.347876 [TNR] Opened connection to 1072D5CE/0 for ch3.1 KATC-HD
2024/10/05 13:38:14.438357 [TNR] Cancelling stream 1072D5CE/0 ch3.1 after no data was received for 6s
2024/10/05 13:38:17.788116 [TNR] Closed connection to 1072D5CE/0 for ch3.1 KATC-HD
2024/10/05 13:38:17.788210 [SNR] Statistics for ch3.1 KATC-HD: ss=94%-95% snq=100% seq=100% bps=6850970,2386848-11037856 pps=586,204-945
2024/10/05 13:38:17.788506 [SNR] Buffer statistics for 192.168.0.134 (onn. Streaming Device 4K pro) for ch3.1 KATC-HD: buf=0% drop=0%
```
I am using [this antenna](https://amzn.to/4gVMDwi). I replaced a piece of garbage with this and I did have the amplifier enabled as I thought more was better and that 100% is optimal.

Is there anything I can do to determine if the problem lies with the HDHRs or elsewhere? Any help is most appreciated.

jasonl
Silicondust
Posts: 17094
Joined: Sun Oct 28, 2007 9:23 pm
x 62

Re: Cancelling stream after no data was received for 6s

Post by jasonl »

Start by watching side by side on the HDHomeRun app and Channels, preferably with just one HDHomeRun on to eliminate a variable. If only Channels goes out, then it's probably an issue with the DVR server or software. If both go out at the same time, then it's probably not the server, but may be the network, the HDHomeRun, or reception.

dinki
Posts: 93
Joined: Sat Aug 18, 2018 8:35 am

Re: Cancelling stream after no data was received for 6s

Post by dinki »

So I took your advice and I ran the test directly on my Channels server and I did see a handful of network errors, some transport errors and a good many sequence errors.

I moved the server from the switch it was on to connect directly to the router and also changed the network cable. Initially I did see one network error after a day of running the test but I have not seen any since as I've continued to run the test for three or four days. So either the problem was with the switch and or the network cable but I have not seen the DVR stop since switching this. Thanks for this great tool for troubleshooting.

I do still see sequence errors when I stop these tests and it shows the summary. What does this indicate and should it be alarming?

jasonl
Silicondust
Posts: 17094
Joined: Sun Oct 28, 2007 9:23 pm
x 62

Re: Cancelling stream after no data was received for 6s

Post by jasonl »

Each broadcast channel is divided up into separate data streams, one for each component of the broadcast (e.g. video for the first channel, audio track 1 for the first channel, audio track 2 for the first channel, the index that tells the receiver where to find the video and audio tracks for the first channel, and so on). There is a counter on each packet that runs from 0-15, and within each data stream the packets climb sequentially from 0 to 15 then start over at 0. Any time that the numbers don't go up in perfect order is a sequence error. This can indicate that data has been lost due to reception problems, but it can also indicate that equipment on the broadcaster's side is misconfigured, just depending on which stream or streams are experiencing the issue. If you're seeing sequence errors but not transport or network, it's probably an issue with the broadcast and can be ignored.

Post Reply