PVR client not able to connect to tvheadend
#1
Hi,

so I had quite a bit of struggle lately with tvheadend and kodi.
After my hard drive broke I had to reinstall the hole system and since then i had a lot of trouble.
I'm currently running xubuntu 15.10.

At first tvheadend has not started correctly and when manually started I could not log into the WebUI.
I managed to get ride of that Problem by doing:

sudo systemctl enable tvheadend.service

as suggested in http://forum.kodi.tv/showthread.php?tid=...+tvheadend.

However, I'm not able to connect the kodi-pvr-tvheadend-hts from kodi. Web-UI works fine and TV Adapter seems to work properly.

Does anyone have any ideas, what to look for?
Perhaps something to do with the initial start up problem?

Thanks.
Reply
#2
Unlikely - what do you mean by "unable to connect"? What does it say/do? What versions are you running (Kodi, addon and back end)?

A debug log (wiki) from Kodi and/or something from tvheadend would be useful...
Reply
#3
Some information:

Kodi Version 15.2
Tvheadend 4.0.7

The complete kodi log file, can be found here: http://xbmclogs.com/pehjqimso#line-28.

I think the interesting part might be this snippet.... it occures several times in the log, I guess everytime the pvr tries to connect again

20:54:54 T:140006672824064 DEBUG: PVR - Create - creating PVR add-on instance 'Tvheadend HTSP Client'
20:54:54 T:140006672824064 DEBUG: ADDON: Dll Initializing - Tvheadend HTSP Client
20:54:54 T:140006672824064 DEBUG: SECTION:LoadDLL(/usr/lib/kodi/addons/pvr.hts/pvr.hts.so)
20:54:54 T:140006672824064 DEBUG: Loading: /usr/lib/kodi/addons/pvr.hts/pvr.hts.so
20:54:54 T:140006672824064 INFO: AddOnLog: Tvheadend HTSP Client: pvr.hts - starting PVR client
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'host'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'user'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'pass'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'htsp_port'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'http_port'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'connect_timeout'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'response_timeout'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'epg_async'
20:54:54 T:140006672824064 DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'Tvheadend HTSP Client' requests setting 'trace_debug'
20:54:54 T:140006672824064 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - waiting for registration...
20:54:54 T:140006645540608 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - new connection requested
20:54:54 T:140006645540608 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - connecting to fe80::be5f:f4ff:feea:5d95:9982
20:54:54 T:140006645540608 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - waiting for connection...
20:54:54 T:140006645540608 ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - unable to connect to fe80::be5f:f4ff:feea:5d95:9982


At the same time I get this:
ps -ef | grep tvheadend

hts 1521 1 0 20:51 ? 00:00:01 /usr/bin/tvheadend -f -u hts -g video
stefan 1859 1568 0 21:00 pts/6 00:00:00 grep --color=auto tvheadend



Additionally the startup problem has returned, but I could start tvheadend manually with

sudo service tvheadend start

...

Thanks for the help
Reply
#4
I think I see the connection problem. Are you using the same computer for your TVHeadend server and Kodi?

The IP address of the TVHeadend Server is wrong in the HTS client.

Hence the line:

20:54:54 T:140006645540608 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - connecting to fe80::be5f:f4ff:feea:5d95:9982

I am assuming you have the default Confluence skin for Kodi

When in Kodi, go into the Settings section and bring up the Add Ons menu.

Then go to My Add Ons and look up PVR Add Ons

Select the HTS Tvheadend addon and get into the configuration menu for the add on.

When the configuration options come up change the IP address to the IP address of the TVHeadend Server.

If the TVHeadend Server is on the same computer as where you are running Kodi, delete the IP address that is there
and type the following IP address:

127.0.0.1

If the TVHeadend server is on a different computer on your network, type the IP address of that computer
in the IP Address box.

As a side note: If you are using a TVHeadend server on a different computer, make sure your TVHeadend server
has been set up with a Static IP address and not one assigned by DCHP+ARP (Dynamic IP addressing).

Also it is a good time to check that the Username and Password of your TVHeadend server is entered correctly in these
settings.

Save your configuration changes and restart your Kodi box and see if TVheadend works.
Reply
#5
You were absolutely right, that was the problem.
Thanks a lot!

So far everything runs fine!
Reply
#6
(2015-11-29, 11:01)klingel_one Wrote: You were absolutely right, that was the problem.
Thanks a lot!

So far everything runs fine!

You're welcome. Glad to help out.
Reply

Logout Mark Read Team Forum Stats Members Help
PVR client not able to connect to tvheadend0