Cannot connect to Tvheadend using Kodi client after upgrading

  • Hi,
    I have just upgraded to LibreELEC v8.0.0.
    The upgrade was not so easy because I got stuck on the add-on migration page. See Kodi 17 stuck during add-on migration - Tvheadend add-on.
    Now everything workd fine, excepted the Tvheadend client.
    I have got the server running Ok, with all its channels, and can connect it through the web interface to see the recording, etc.
    But Kodi cannot. The UI is stuck on the Starting PVR clients 0% message

    Code
    LibreELEC:~/.kodi/temp # tail -f kodi.log
    07:29:01.456 T:139889010759424   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - Command authenticate failed: Access denied

    I suspect the login/password may have been lost during the upgrade.
    I have checked the password file:

    Code
    LibreELEC:~/.kodi/temp # more ~/.kodi/userdata/addon_data/service.tvheadend42/passwd/cd77192eb94fa699d26c7371cc9d8e2f
    {
            "enabled": true,
            "username": "tvheadend",
            "password2": "VFZIZWFkZW5kLUhpZGUtdHZoZWFkZW5k",
            "comment": "default",
            "wizard": false
    }

    I can connect using the web interface "Login" button with the username/password: tvheadend/tvheadend
    I have put them inside the Kodi Tvheadend client plugin (where there was nothing) but it still does not work.
    Do you have any idea?
    Thanks

  • Me too, only that thheadend crashes in Kodi. I didn't have time to check anything, only that the migration got stuck at the same point and that rebooting seemed to solve it.

  • Rebooting did not solve it for me.
    Inside the Tvheadend webUI I see the following lines which keep repeating:

    Code
    2017-02-23 22:37:24.038 htsp: Got connection from 127.0.0.12017-02-23 22:37:24.038 htsp: 127.0.0.1: Welcomed client software: Kodi Media Center (HTSPv25)2017-02-23 22:37:24.038 htsp: 127.0.0.1 [ Kodi Media Center ]: Identified as user 'tvheadend'2017-02-23 22:37:29.039 htsp: 127.0.0.1 [ tvheadend | Kodi Media Center ]: Disconnected2017-02-23 22:37:29.039 htsp: Got connection from 127.0.0.12017-02-23 22:37:29.039 htsp: 127.0.0.1: Welcomed client software: Kodi Media Center (HTSPv25)


    Any idea?
    Thanks
    [hr]
    Hi,
    I managed to fix it by creating a new user / password in the web interface. I do not know why I did not manage to use the "tvheadend" user, even when resetting its password.

    Edited once, last by spontex (February 23, 2017 at 10:14 PM).

  • I was basically in the same situation, but I found a solution.

    Uninstall both the PVR client (this may not be necessary) and the TVheadend service. Login to your device and delete /storage/.kodi/userdata/addon_data/service.tvheadend42

    Reinstall TVheadend service. After opening the web interface, you'll get a wizard to help with configuration. The trick is to define the allowed networks right (I used "192.168.0.0/24,127.0.0.1" without the double quotes) and the admin user and plain user (only managed to get it working if I put '*' without quotes in both usernames and passwords). This is insecure, but unless you open TVheadend to the internet, you are good to go.

    After that, reinstall the PVR client. Should be working again. Verified.

    And this makes me suspect that there is something wrong in the migration or in the user access scheme.