Project

General

Profile

Bug #5675

Tvheadend Command hello failed: No response received - needs a re-install on every boot

Added by Chris Wesley about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Category:
PVR / DVR
Target version:
-
Start date:
2019-07-04
Due date:
% Done:

0%

Estimated time:
Found in version:
4.2.7~LibreELEC Tvh-addon v9.0.118
Affected Versions:

Description

Environment:

Raspberry Pi 3b running LibreElec 9.0.2 & Kodi 18.2.

Addons: HTS Tvheadend Server 4.2.7~LibreELEC Tvh-addon v9.0.118,
TVheadend Client 4.4.18.1.

No login credenitals are defined for TVheadend to connect to the server. It uses the default.

Symptoms:

1. System works fine for a week or so; I shut the system down each night via the system TV menu.
Then one day the TV viewer & PVR fail to connect with PVR - showing 0% progress.
This can be fixed by re-installing TV headend Server, but next reboot it will be broken again.
Once this starts it has to be done every boot.

2. Usually selecting a TV recording to play for the first time after a boot, causes a long delay & the "waiting" animation on screen.
Sometimes it will eventually play. Other times I can press BACK then try again and it will play.
Yet other times it will never recover and although it responds to some actions with a system "I head you" noise, and volume can be changed, for example, a reboot will be needed to regain enough control to use the system.
A few of these forced reboots will render the system unbootable and a re-install will be needed.

Diagnostics:

Sorry I do not know how to transfer entire logs to a place from where I can upload them.
I'm happy to do that if you can give me a steer on how.
Otherwise, looking at the Kodi logs always shows five sets of this pair of messages, which look highly relevant to the first problem:

ERROR: AddOnLog: Tvheadend HTSP Client:: pvr.hts - Command hello failed: No response received
ERROR: AddOnLog: Tvheadend HTSP Client:: pvr.hts - failed to send hello

I think that's all I can tell you for now, but I'd appreciate any help you can give.

Thanks
Chris

History

#1

Updated by Chris Wesley about 1 year ago

I found the log uploader add-on and used it to upload my log: https://paste.kodi.tv/afipipitif

#2

Updated by saen acro about 1 year ago

Is server installed and started?

Is

http://your.box.name.or.ip:9981
opening?

#3

Updated by Chris Wesley about 1 year ago

Hi Saen & thanks. Yes, the whole TV Head End interface is fine. It seems to be the connection between the server and the client which fails, and that seems to be supported by the log messages.

#4

Updated by saen acro about 1 year ago

Go to Tvheadend HTSP Client settings and set

127.0.0.1
as ip
user and password also

#5

Updated by Chris Wesley about 1 year ago

Thanks again.

In the client on the TV, the IP is already assigned I set a UID & password.
In the server on my PC's web interface I've enabled Access Entry, set a user anme, left web IF and admin unticked, set Streaming & video recorder to HTSP, allowed network to 127.0.0.1/32 & set the password.
Rebooted.
No change in symptoms. Kodi fails in the same way and with the same fix. New log file: https://paste.kodi.tv/wovomamadi

Any other thoughts?

#6

Updated by g siviero about 1 year ago

I would also check dmesg and syslog for other errors (microSD failing and set to read only?).

#7

Updated by saen acro about 1 year ago

This log is useless, enable debug logging in Tvheadend HTSP Client.

#8

Updated by Chris Wesley about 1 year ago

I enabled debugging as instructed. The log is here: https://paste.kodi.tv/osododubex

#9

Updated by Chris Wesley about 1 year ago

g siviero - thanks. DMESG shows 7 "urandom warnings missed due to rate limiting" warning.

I turned on some more debugging options & took another log: https://paste.kodi.tv/wuhenibize
That shows a few new items but I do not know what they mean. I hope you can help.

Thanks.

#10

Updated by saen acro about 1 year ago

Read log of Tvheadend HTSP Client.

#11

Updated by Chris Wesley about 1 year ago

OK I thought it might be helpful to implement the fix (re-installed Tvheadend Server) and then upload the log, and so that's here https://paste.kodi.tv/nimifupero.

It's the previous log with a bit tacked on the end. I can see the installation. Oddly, I can also see another instance of the HELLO COMMAND FAILED immediately after install, and then after that this:

ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://USER:[email protected]:9981/imagecache/114

- but the system, appears to work normally.

Anyone?

#12

Updated by saen acro about 1 year ago

It's not problem of server it's problem of client
last error is because not used digest authentication

#13

Updated by Chris Wesley about 1 year ago

saen - where is that log of Tvheadend HTSP Client?
I do not see it in /storage/.kodi/temp with the other logs
and the TV UI event log shows simply "sever does not respond properly"
and there are no logs I can see from the addon TV UI.

#14

Updated by Chris Wesley about 1 year ago

saen, thanks but how do I fix that "digest authentication" thing?
I do not see options in any of the places I can think to look.

#15

Updated by Chris Wesley about 1 year ago

OK I found and un-ticked Use HTTP digest authentication: in Tvheadend server's general settings - it didn't fix the problem - log file: https://paste.kodi.tv/suxaqunahu.

#16

Updated by Chris Wesley about 1 year ago

Since it works immediately after a re-install of Tvheaned sever,
and doesn't work after a reboot, presumably,
something is updating some aspect of the client/server communication in a way which breaks it.
I am guessing that saying "hello" is the very start of communicaton between the two, so it's fundamental.
Maybe it's the exchange of login data - hence your comment about authentication, but turning off digest auth didn't fix it, and why would system defaults just not work in this way, presumablkt for many users, and still be in place.

I just don't have the background in this stuff to conjecture usefully.

#17

Updated by saen acro about 1 year ago

Super easy to test is to install Kodi on external device,
set IP and credential to TVH server and test.

#18

Updated by saen acro about 1 year ago

#19

Updated by Chris Wesley about 1 year ago

Saen, for me installing Kodi on an external device is very far from super easy, but thanks for the steer on the official forum, and for your oother efforts in trying to help me with this. I appreciate it.

#20

Updated by saen acro about 1 year ago

You can install it on phone/tablet/PC

#21

Updated by Chris Wesley about 1 year ago

Ah, I didn't know that - thanks again. I installed it on my phone and saw the exact same problem. After a reboot of thre RPi I must re-install Tvheanend to prevent the failure of the client to speak to the server.

I also posted this original query to the official forum you suggested on Friday (https://forum.kodi.tv/showthread.php?tid=345172).
No responses so far.

#23

Updated by Chris Wesley about 1 year ago

Just that? "Change image"? And to one from 2017, from an unknown source and for an un-specified reason?

#24

Updated by saen acro about 1 year ago

Source is good, brand also.
It's just for test.
all extras inside are lot more then you can imagine.

Also available in: Atom PDF