Bug #5675
Tvheadend Command hello failed: No response received - needs a re-install on every boot
0%
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
Updated by Chris Wesley over 5 years ago
I found the log uploader add-on and used it to upload my log: https://paste.kodi.tv/afipipitif
Updated by saen acro over 5 years ago
Is server installed and started?
Is
http://your.box.name.or.ip:9981opening?
Updated by Chris Wesley over 5 years 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.
Updated by saen acro over 5 years ago
Go to Tvheadend HTSP Client settings and set
127.0.0.1as ip
user and password also
Updated by Chris Wesley over 5 years 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?
Updated by g siviero over 5 years ago
I would also check dmesg and syslog for other errors (microSD failing and set to read only?).
Updated by saen acro over 5 years ago
This log is useless, enable debug logging in Tvheadend HTSP Client.
Updated by Chris Wesley over 5 years ago
I enabled debugging as instructed. The log is here: https://paste.kodi.tv/osododubex
Updated by Chris Wesley over 5 years 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.
Updated by Chris Wesley over 5 years 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?
Updated by saen acro over 5 years ago
It's not problem of server it's problem of client
last error is because not used digest authentication
Updated by Chris Wesley over 5 years 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.
Updated by Chris Wesley over 5 years 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.
Updated by Chris Wesley over 5 years 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.
Updated by Chris Wesley over 5 years 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.
Updated by saen acro over 5 years ago
Super easy to test is to install Kodi on external device,
set IP and credential to TVH server and test.
Updated by saen acro over 5 years ago
Official support of PVR client
https://forum.kodi.tv/forumdisplay.php?fid=168
Updated by Chris Wesley over 5 years 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.
Updated by Chris Wesley over 5 years 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.
Updated by Chris Wesley over 5 years ago
Just that? "Change image"? And to one from 2017, from an unknown source and for an un-specified reason?
Updated by saen acro over 5 years ago
Source is good, brand also.
It's just for test.
all extras inside are lot more then you can imagine.