Tvheadend nightly builds for LE

  • Currently I have added/changed the following in my tvheadend42.start:

    Code
    TVH_ARGS_EXTRA="--satip_xml http://192.168.178.254:49000/satipdesc.xml"
    
    
    # debug commandline
    if [ "$DEBUG_LOG" = "true" ]; then
      TVHEADEND_ARG="-B -C -u root -g video -c $ADDON_HOME -l ${DEBUG_LOG_PATH} --trace $DEBUG_LOG_ARG $TVH_ARGS_EXTRA"
    else
      TVHEADEND_ARG="-B -C -u root -g video -c $ADDON_HOME $TVH_ARGS_EXTRA"
    fi
  • you have to change your user

    Quote


    [ INFO] htsp: Got connection from 127.0.0.1
    [ INFO] htsp: 127.0.0.1: Welcomed client software: Kodi Media Center (HTSPv25)
    [ INFO] htsp: 127.0.0.1 [ Kodi Media Center ]: Identified as user ''
    [ INFO] htsp: 127.0.0.1 [ | Kodi Media Center ]: Disconnected

    idk if you have default user or something ?! but whatever you have set up in pvr.hts won't work anymore with the current config
    you have to change the user in pvr.hts :)

  • CvH : I've posed a question on another board thread-5519-post-36819.html#pid36819 that has broken the TVHeadend42 server under LE8. I was directed here (to you) via the #hts irc.

    I have installed LE8 and TVHE42 on a RPi 2 microsd (8GB). It is working excellently - but I wanted to move the storage to a 32 GB Sandisk USB flash drive attached to the same device. This disk has the label TV-201702. So I did the following:

    Code
    # systemctl stop kodi
    # rsync -rtv /storage/ /var/media/TV-201702/
    # mount -o remount,rw /flash
    # nano /flash/cmdline.txt

    boot=/dev/mmcblk0p1 disk=LABEL=TV-201702 quiet

    Saved the file (ctrl-x y enter).

    Code
    # mount -o remount,ro /flash
    # reboot

    LE8 started as normal, Kodi started as normal, checking df shows that the storage was moved to /dev/sda1. But the TVHE42 server did not start.

    I've spent some time trying to resolve this. I tried to set up the system via cmdline.txt to point to /dev/sda1 (instead of LABEL=TV-201702). I checked the PATH and HOME environment - they are OK. I've gone through /etc/profile and /etc/profile.d/ to see if there is any issue there. I've also gone through the script /storage/.kodi/addons/service.tvheadend42/bin/tvheadend42.start to see if I could find anything. I tried to manually start tvheadend but no success. Oddly there is not much if anything reported in the logs, from what I can see. However when starting from command line I get the following:

    2017-02-27 17:03:34.256 [ INFO] htsp: Got connection from 192.168.1.3
    2017-02-27 17:03:34.258 [ INFO] htsp: 192.168.1.3: Welcomed client software: Kodi Media Center (HTSPv25)
    2017-02-27 17:03:34.259 [ INFO] htsp: 192.168.1.3 [ Kodi Media Center ]: Unauthorized access
    2017-02-27 17:03:39.260 [ INFO] htsp: 192.168.1.3 [ Kodi Media Center ]: Disconnected
    2017-02-27 17:03:39.262 [ INFO] htsp: Got connection from 192.168.1.3
    2017-02-27 17:03:39.262 [ INFO] htsp: 192.168.1.3: Welcomed client software: Kodi Media Center (HTSPv25)
    2017-02-27 17:03:39.264 [ INFO] htsp: 192.168.1.3 [ Kodi Media Center ]: Unauthorized access

    and so on ...

    I have been working with Linux systems for some years but the LibreElec (presumed derivative of OpenElec/BusyBox) architecture is new to me - I don't understand the init system - perhaps this is where the problem lay, I don't know.

    In any case I redirected cmdline.txt back to the microsd and the system is working as before. Any ideas as to why moving storage would break the TVHE42 server?

    Edited once, last by csimai (February 27, 2017 at 10:32 PM).