Forums » Tutorial and setups »
/etc/init.d/tvheadend startup problems on Ubuntu 11.10?
Added by o doll almost 13 years ago
Hi folks,
most likely I'm to n00b about u*x, however I have a strange problem to get Tvheadend to start properly during boot.
I'm messing around with an XBMCbuntu v27 (http://www.xbmcfreak.nl/en/xbmcbuntu-preview-version-git20120111-edition/) on my ASROCK ION330HT w TeVii S660 USB-DVB-S2. As far as I understand that pre Beta2 XBMC Eden release is based on Ubuntu 11.10.
Most things worked out of the box, but I ran into issues after installing Tvheadend. I set the usr/pwd during install (apt-get install ...), Tvheadens run and I can connect to :9981, but I can't log-in (due to wrong usr/pwd).
When looking into it in more detail I found it created a user “hts” and the initial file at /home/hts/.hts/tvheadend/superuser (which the right usr/pwd giving during the install - if I use dpkg-reconfigure it also stores the new usr/pwd there).
Not sure if is important, but I also noticed the TVHE installation script does not create a default pwd for user “hts”? Nor does it add “hts” to the group “video” by default?
To get a bit more output I added a debug flag to “DAEMON_ARGS=”-d -f -u hts -g video”" in the start-stop-script /etc/init.d/tvheadend.
When I boot the system tvheadend starts and run as user “daemon”, but I can’t connect as Tvheadend can’t find its config!?:
xbox@XIon:~$ cat /var/log/syslog | grep tvheadend
Jan 16 20:43:31 XIon tvheadend1056: START: No configuration path set, settings and configuration will not be saved
Jan 16 20:43:31 XIon tvheadend1056: dvb: Found adapter /dev/dvb/adapter0 (Montage Technology DS3000/TS2020) via USB (480 Mbit/s)
Jan 16 20:43:31 XIon tvheadend1056: dvr: Creating new configuration ”
Jan 16 20:43:31 XIon tvheadend1056: dvr: Output directory for video recording is not yet configured for DVR configuration “”. Defaulting to to “(null)”. This can be changed from the web user interface.
Jan 16 20:43:31 XIon tvheadend1056: CSA: Using SSE2 128bit parallel descrambling
Jan 16 20:43:31 XIon tvheadend1056: START: HTS Tvheadend version 2.12 started, running as PID:1056 UID:1 GID:44, settings located in ‘No settings dir’
Jan 16 20:43:32 XIon tvheadend1056: AVAHI: Service ‘Tvheadend’ successfully established.
I also copied the Tvheadend configs from an old installation into the “xbmc” user path and if I restart TVHE, it works, however it reads its config file from /home/xbox rather than /home/hts, now?!?
xbox@XIon:~$ sudo /etc/init.d/tvheadend restart[sudo] password for xbox:
- Restarting HTS Tvheadend tvheadend [ OK ]
xbox@XIon:~$ tail /var/log/syslog | grep tvheadend
Jan 16 20:46:08 XIon tvheadend1056: STOP: Exiting HTS Tvheadend
Jan 16 20:46:09 XIon tvheadend1662: dvb: Found adapter /dev/dvb/adapter0 (Montage Technology DS3000/TS2020) via USB (480 Mbit/s)
Jan 16 20:46:09 XIon tvheadend1662: dvr: Creating new configuration ”
Jan 16 20:46:09 XIon tvheadend1662: CSA: Using SSE2 128bit parallel descrambling
Jan 16 20:46:09 XIon tvheadend1662: START: HTS Tvheadend version 2.12 started, running as PID:1662 UID:1 GID:44, settings located in ‘/home/xbox/.hts/tvheadend’
Jan 16 20:46:10 XIon tvheadend1662: AVAHI: Service ‘Tvheadend’ successfully established.
Would be happy to get some ideas what might go wrong. Thx in advance.