MISC-1: RaspBMC keeps trying to run TVHeadend after it's been disabled



Issue Information

Issue Type: Bug
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: Miscellaneous (MISC)
Resolution: Fixed (2015-02-06 09:28:45)
Labels: Pi, RaspBMC, TVHeadend, XBMC,

Created: 2015-02-06 08:48:52
Time Spent Working


Description
Using RaspBMC (running XBMC Frodo) it seems to be impossible to disable the TVHeadend functionality once it's been switched on.

The built in TVHeadend client was enabled and configured a little while back as part of project PIDVR, but the back-end is no longer on the network. The plugin was disabled in XBMC's settings, but kept trying to connect.

Could see regular DNS requests as a result of the Pi trying to get an address for the backend.

- Marked the TVHeadend add-on as disabled in XBMC (no effect)
- Used the add-ons GUI to uninstall the TVHeadend add-on (no effect, add-on still present)
- rm'd the TVHeadend XML settings file

The latter stopped the DNS requests, but it looks like it's still trying to run

xbmc.log

08:20:41 T:2945827904  NOTICE: Thread CAddonStatusHandler:pvr.hts start, auto delete: true
08:20:51 T:2629256256   ERROR: AddOnLog: Tvheadend HTSP Client: OpenSocket - failed to connect to the backend (Connection refused)
08:20:51 T:2629256256   ERROR: ADDON: Dll Tvheadend HTSP Client - Client returned bad status (1) from Create and is not usable
08:20:51 T:2629256256 WARNING: UpdateAndInitialiseClients - failed to create add-on Tvheadend HTSP Client, status = 1


Despite not being in use, the Pi is showing a load average of 3.19, so it looks like the attempts to run TVHeadend are using a lot of precious resources.

Need to find a way to fully disable the plugin, short of a full re-install of RaspBMC.


Toggle State Changes

Activity


btasker added 'Pi RaspBMC TVHeadend XBMC' to labels
btasker added 'RaspBMC - Disabling TVHeadend add-on' to Version
btasker added 'RaspBMC - Disabling TVHeadend add-on' to Fix Version
Info

When I originally looked into it, I removed the hostname from the xml settings file ( userdata/addon_data/pvr.hts/settings.xml ) and the result was that the Pi started trying to get an A record for ' '....

That file was later removed which did at least stop the queries.
After some prodding, found what I needed to do. I'd previously disabled Live TV, but much like the Headend plugin, it kept re-enabling itself.

Changing the addon ID in the Addon's database and then disabling Live TV did the trick

pi@raspbmc:~$ sqlite3 .xbmc/userdataDatabase/Addons15.db
sqlite> update addon set addonID='btest' where addonID='pvr.hts';
sqlite>.exit
pi@raspbmc:~$ reboot


When the system comes back up, it gives a warning about Live TV being enabled but with no PVR add-ons enabled.

Hit OK on the notification, and then back out of the dialog it gives you. Followed by
Settings -> XBMC -> Live TV -> Set Enabled to No

Reboot for good measure and the addon is no longer filling the logs with crud. Load average when not in use is back down to 0.4
btasker changed status from 'Open' to 'Resolved'
btasker added 'Fixed' to resolution
btasker changed status from 'Resolved' to 'Closed'