8.95.003 fresh install with TVH

  • I've done this before without issues, but today with the latest I'm having access problems between the HTSP client and the TVH PVR.

    The TVHeadend server install went perfectly. I used the wizard and it found my HDHR and populated all my muxs, services and EPG Schedule Guide.

    However when I went back Kodi to setup the client, I could not get it to connect to the server. I keep getting access denied. I used the same login and password as I used when configuring the web admin login for the web access to setup TVH. I've never had this issue before. I went back and set all the allowed permissions. No help.

    I even created a new user and that didn't work either.

    I'm at a loss.

  • another piece of data. I went to my Macbook using Kodi 17.6 and the TVHeadend client and was able to play recordings I had setup on the TVH server on Libreelec 8.95.003. It's the TVH client on libreelec itself that's the problem. I used the same login info that I use on the web admin login.

  • Where did you install TVH server and client from?

    Have you tried deleting the userdata for pvr?

    Can you show a debug log of Tvh server when you try to connect using hstp tvh on libre.

  • Where did you install TVH server and client from?

    Have you tried deleting the userdata for pvr?

    Can you show a debug log of Tvh server when you try to connect using hstp tvh on libre.

    I created a USB key with the image on the download link on libreelec.tv website. The one where they announced the new beta. for 8.95.003. I plugged the USB into my RP3B+ and booted it in a normal install. Then I installed TVH server from Libreelec repository, same with Client, but after the server was configured. I configured TVH server from my Macbook using the <IP>:9981 site.

    I will test by deleting the userdata for PVR.

    I did notice that they Recording configure had a directory in the config for /storage/recordings, but that directory didn't exist so that caused failures when I tried to select a program to record from the website control panel. I ssh'ed in and fixed that so I could record. Could be a permission issue.

    When I powered up the system this morning I noticed that the TVH server was not running right. I could not connect via ip:9981. So I turned on debugging and I'll look at all that before replying with logging info.

  • I got the TVH server working by turning on it's debugging feature, which apparently reset and restarted the server. Then I could connect with it via the website config again. Then the client connected finally.

    I turned off the debugging and it's still working. Next I completely rebooted the RP3 from ssh console.

    Still working. Not what's the issue. Kind of like starting an old carburetor car. Got to hold your foot just right. :)

  • As I view and delete recordings I see this type of error on the TVH server log on it's log at the bottom of the web admin page. same message but with a different imagecache/?? number.

    Code
    2019-01-22 08:42:09.398 http: 192.168.0.30: HTTP/1.1 HEAD /imagecache/23 -- 404
  • That error you've shown is just a generic error that happens with most installations when trying to retrieve images, it doesn't show anything about your htsp client trying to connect your tvh server.

    Please turn on debug logging on tvh server and restart your pi and post the full debug log.

  • there is for system log perhaps not for debug log of tvh. Unless you debug to syslog, but that is very messy i wouldn't recommend that, makes it difficult for anyone to read what is going on.

  • I started over to reproduce the error and I did. On the server side things are working, but I can't connect via kodi TVH client.

    Kodi log with debug turned on. This is just around the login issues.

    18:03:27.478 T:1723794288 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - new connection requested

    18:03:27.478 T:1723794288 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - connecting to 127.0.0.1:9982

    18:03:27.482 T:1723794288 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - connected

    18:03:27.483 T:1546994544 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - sending hello

    18:03:27.486 T:1546994544 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - connected to Tvheadend / 4.2.7-44 ~ LibreELEC Tvh-addon v9.0.118 (HTSPv27)

    18:03:27.486 T:1546994544 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - sending auth

    18:03:27.489 T:1546994544 ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - Command authenticate failed: Access denied

    I had logging on the THV server at the same time:

    2019-01-22 18:16:13.296 [ INFO]:htsp: Got connection from 127.0.0.1

    2019-01-22 18:16:13.296 [ TRACE]:htsp: 127.0.0.1 - method hello

    2019-01-22 18:16:13.296 [ TRACE]:htsp-req: 127.0.0.1 - request '{"clientname":"Kodi Media Center","htspversion":34,"seq":1,"method":"hello"}'

    2019-01-22 18:16:13.296 [ INFO]:htsp: 127.0.0.1: Welcomed client software: Kodi Media Center (HTSPv34)

    2019-01-22 18:16:13.296 [ TRACE]:htsp-ans: 127.0.0.1 [ Kodi Media Center ] - answer '{"htspversion":27,"servername":"Tvheadend","serverversion":"4.2.7-44 ~ LibreELEC Tvh-addon v9.0.118","challenge":"binary","language":"eng","servercapability":["caclient","tvadapters","satip_client","satip_server","timeshift","trace","libav","caclient_advanced"],"api_version":19,"seq":1}'

    2019-01-22 18:16:13.296 [ TRACE]:thread: created thread 1882063024 [tvh:htsp-write / 0x5c408c(0x700de860)]

    2019-01-22 18:16:13.297 [ TRACE]:access: jim:<no-user> [ ], conn=0:s0:r0:l2, profile=ANY, dvr=ANY, tag=ANY

    2019-01-22 18:16:13.297 [ INFO]:htsp: 127.0.0.1 [ Kodi Media Center ]: Unauthorized access

    2019-01-22 18:16:13.297 [ TRACE]:htsp: 127.0.0.1 [ Kodi Media Center ] - method authenticate

    2019-01-22 18:16:13.297 [ TRACE]:htsp-req: 127.0.0.1 [ Kodi Media Center ] - request '{"username":"jim","digest":"binary","seq":2,"method":"authenticate"}'

    2019-01-22 18:16:13.297 [ TRACE]:htsp-ans: 127.0.0.1 [ Kodi Media Center ] - answer '{"noaccess":1,"seq":2}'

    2019-01-22 18:16:14.735 [ TRACE]:http: HTTP/1.1 POST /comet/poll?boxid=d86468b71bd056a2489be13fa42455b64baef008&immediate=0{{Host=192.168.0.30:9981,Connection=keep-alive,Content-Length=58,Authorization=Digest,Origin=http://192.168.0.30:9981,X-Requested-With=XMLHttpRequest,User-Agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36,DNT=1,Content-Type=application/x-www-form-urlencoded,Accept=*/*,Referer=http://192.168.0.30:9981/extjs.html,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.9,Cookie=ys-api/mpegts/service=o%3Acolumns%3Da%253Ao%25253Aid%25253Dn%2525253A0%25255Ewidth%25253Dn%2525253A25%255Eo%25253Aid%25253Dn%2525253A1%25255Ewidth%25253Dn%2525253A25%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A25%255Eo%25253Aid%25253Dn%2525253A3%25255Ewidth%25253Dn%2525253A94%255Eo%25253Aid%25253Dn%2525253A4%25255Ewidth%25253Dn%2525253A94%255Eo%25253Aid%25253Dn%2525253A5%25255Ewidth%25253Dn%2525253A94%255Eo%25253Aid%25253Dn%2525253A6%25255Ewidth%25253Dn%

  • The fact you can connect using your Mac and not here, tells me that your username in client side on your librelec device is incorrect.

    Settings>add-ons>my add-ons> PVR clients>tvh htsp>configure > defaults

    If it still doesn't work, take a screenshot of users page on server and then another screenshot on "configure" from htsp add-on on kodi

  • When I choose Defaults, it blanks out the login and password. Don't I have to match the user and password to the TVH server?

    I've setup TVH many times by itself. I use Kodi clients with the TVH client addon and just put in the username and password I used when I setup the TVH server. It sure is different on LibreELEC version of TVH server and client.

  • This is strange. After setting it to default, I then reentered the same login and password and now it connected. But this time, I changed the IP address from 127.0.0.1 to 192.168.0.30 which is it's real address for the RP3.

    I have no idea why that worked.