Project

General

Profile

Bug #6150

KODI PVR Client Disconnecting from TVHEADEND

Added by Ian Jones over 2 years ago. Updated over 2 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
PVR / DVR
Target version:
-
Start date:
2022-03-27
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-2008~ge2ae8f4eb
Affected Versions:

Description

I get periodic disconnects from TVHeadend on all clients at different times. This suggests is it not a universal TVH issue but I am struggling to identify the problem. I monitor the network connectivity across all devices and there are no known network issues internally on my LAN. I do know that some of the IP Streams have issues and buffer from time to time but unsure whether this is causing the disconnects. To mitigate any internet connection issues or stream stability from the sources I use, I have also implemented https://tvheadend.org/boards/4/topics/29249?page=3 (using perl to manipulate the stream list so that it uses FFMPEG). This has helped the KODI devices from crashing, but the disconnects still happen and the streams stall. After a disconnect, the KODI PVR client starts a reconnect and downloads all channels and EPG again which is an issue. This takes about 2 minutes and the stream has to be manually stopped and restarted on the KODI client
On TVH, I have 3 DVB-T adaptors in one network and just over 8,000 available IPTV streams in my automatic IPTV network.
The issue I see if that KODI (either on CoreElec, Windows, Mac and Android) will always disconnect. I may take 5 mins or several hours, but each day I get a lot of disconnects. From the logs I cannot see why.
TVH (4.3-2008~ge2ae8f4eb) runs on a PI4 within docker (I have also tried outside of docker), all connected on the same 1GB LAN. Clients are also hardwired and not using WIFI. Kodi is running 19.04.

Please note the KODI log is 1hr out due to UK DST (the clocks are broadly in sync other than that). Full logs are attached, but key extracts are shown below (from a full debug and trace on both KODI and TVH). As you can see it doesn't show too much
TVH Log
2022-03-27 12:00:58.138 [ TRACE]:subscription: 0327: "scan" unsubscribing
2022-03-27 12:00:58.138 [ TRACE]:idnode: unlink node 80c16c7fe98550ff5236ab4f0b7e6c8c
2022-03-27 12:00:58.187 [ INFO]:htsp: 192.168.5.226 [ pvr | Kodi Media Center ]: Disconnected
2022-03-27 12:00:58.187 [ INFO]:subscription: 0324: "192.168.5.226 [ pvr | Kodi Media Center ]" unsubscribing from "UK FHD : Sky Sports Cricket", hostname="192.168.5.226", username="pvr", client="Kodi Media Center"
2022-03-27 12:00:58.188 [ TRACE]:timeshift: ts 298 read exit request

KODI Log (CoreElec 19.04)
2022-03-27 11:00:58.148 T:3647 DEBUG <general>: PrepareNextRender: frameOnScreen: 249.447 renderPts: 249.527 nextFramePts: 249.580 -> diff: -0.053 render: 0 forceNext: 0
2022-03-27 11:00:58.164 T:3647 DEBUG <general>: CAMLCodec::PollFrame elapsed:11.488ms
2022-03-27 11:00:58.168 T:3647 DEBUG <general>: PrepareNextRender: frameOnScreen: 249.447 renderPts: 249.527 nextFramePts: 249.580 -> diff: -0.053 render: 0 forceNext: 0
2022-03-27 11:00:58.184 T:3647 DEBUG <general>: CAMLCodec::PollFrame elapsed:15.408ms
2022-03-27 11:00:58.184 T:29024 DEBUG <general>: AddOnLog: pvr.hts: demux read nothing
2022-03-27 11:00:58.184 T:29024 WARNING <general>: AddOnLog: pvr.hts: demux read no data for at least 10 secs; restarting connection
2022-03-27 11:00:58.185 T:14629 DEBUG <general>: AddOnLog: pvr.hts: new connection requested
2022-03-27 11:00:58.185 T:14629 DEBUG <general>: AddOnLog: pvr.hts: connecting to pvr.lan:9982
2022-03-27 11:00:58.185 T:14629 DEBUG <general>: AddOnLog: pvr.hts: waiting for connection...
2022-03-27 11:00:58.187 T:3647 DEBUG <general>: PrepareNextRender: frameOnScreen: 249.447 renderPts: 249.527 nextFramePts: 249.580 -> diff: -0.053 render: 0 forceNext: 0
2022-03-27 11:00:58.194 T:14629 DEBUG <general>: AddOnLog: pvr.hts: connected
2022-03-27 11:00:58.195 T:30925 DEBUG <general>: AddOnLog: pvr.hts: Thread 3522892416 start, auto delete: false
2022-03-27 11:00:58.195 T:30925 DEBUG <general>: AddOnLog: pvr.hts: sending hello
2022-03-27 11:00:58.195 T:30925 DEBUG <general>: AddOnLog: pvr.hts: sending message [hello : 1]
2022-03-27 11:00:58.196 T:14629 DEBUG <general>: AddOnLog: pvr.hts: received response [1]
2022-03-27 11:00:58.197 T:30925 DEBUG <general>: AddOnLog: pvr.hts: connected to Tvheadend / 4.3-2008~ge2ae8f4eb (HTSPv36)
2022-03-27 11:00:58.197 T:30925 DEBUG <general>: AddOnLog: pvr.hts: sending auth
2022-03-27 11:00:58.197 T:30925 DEBUG <general>: AddOnLog: pvr.hts: sending message [authenticate : 2]
2022-03-27 11:00:58.198 T:14629 DEBUG <general>: AddOnLog: pvr.hts: received response [2]
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: Received permissions:
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: administrator : 0
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: HTSP streaming : 1
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: HTSP DVR : 1
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: Failed/aborted DVR : 0
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: anonymous HTSP only : 0
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: global connection limit : 0
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: DVR connection limit : 0
2022-03-27 11:00:58.198 T:30925 INFO <general>: AddOnLog: pvr.hts: streaming connection limit : 0
2022-03-27 11:00:58.198 T:30925 DEBUG <general>: AddOnLog: pvr.hts: rebuilding state


Files

TVH.txt (1.02 KB) TVH.txt Ian Jones, 2022-03-27 15:05
kodi.log (19.2 KB) kodi.log Ian Jones, 2022-03-27 15:05

History

#1

Updated by Flole Systems over 2 years ago

  • Status changed from New to Invalid

This is the bug tracker for Tvheadend issues. If you have an issue with a Kodi plugin you should contact the developers of that plugin.

Also available in: Atom PDF