Project

General

Profile

TV Headend on Synology DS1511+ with DSM 5

Added by Reiner Wolf over 8 years ago

Hi,

I´ve used TVHeadend on my Synology DS1511+ NAS with a DVB-C Stick from Sundtek without any problems since months. I´ve bought a second stick from Sundtek in order to record more than one TV channel simultaneously. The second stick has been recognized inside the DSM OS (mediaclient -e, /dev/dvb), but does not show up in the TVHeadend GUI.

I´ve installed the brandnew Synology DSM Version 5.0 yesterday including TVHeadend plugin and since then, I´m not able to start TVHeadend anymore inside the DSM GUI.

I´ve tried it manually using the "start_stop_status" Script under /var/packages/tvheadend/scripts

NetDisk> ./start-stop-status start
Starting Tvheadend ...
./start-stop-status: line 86: /usr/local/tvheadend/bin/tvheadend: not found

Seems, that the installation path has changed.....so I edited the Script and changed it.

When starting it afterwards, another error message was popping up:

NetDisk> ./start-stop-status start
Starting Tvheadend ...
ERROR: ld.so: object '/opt/lib/libmediaclient.so' from LD_PRELOAD cannot be preloaded: ignored.
/usr/local/tvheadend/tvheadend/bin/tvheadend: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Any idea how to get rid of this problem ?

Thanks in advance

reinwolf


Replies (12)

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Prof Yaffle over 8 years ago

Not sure if this is relevant - see post 321:

http://forum.xbmc.org/showthread.php?tid=141981&page=22

Looks like there are some toolchain issue that prevent building for DSM5, so I wonder if that also prevents the old version from running?

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

O.K.... I´ll have a look to this post.

Thanks a lot

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

Hi,

After applying the correct libraries via symbolic links and changing the TVHeadend startscript, I was able to start it via DSM GUI and manually.

But the GUI asked for a password and did not accept the default admin / admin. I restarted TVHeadend with the "-C" option in order to get direct access to the GUI without being prompted for a password and the connection has been established, but it´s showing only a blank screen. I´ve tried it on several systems with different browsers...no way.

Ever heard about this ?

I think, it´s running correctly, but what´s the problem with the blank screen when entering http://<tvheadendserver>:9981 or http://<tvheadendserver>:9981/extjs.html

Any idea ?

Thanks

reinwolf

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Prof Yaffle over 8 years ago

Permissions, I'd guess. Check that the user that tvheadend is running under can access the .js and .html files that make up the interface.

Also, there's an accesscontrol directory with rules and associated superuser file in the tvh configuration that define all the access. Check these are readable to the tvheadend process, and see what's in them as they'll tell you what username/password combination you can use (or you can change the details by editing them).

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

Hi,

This is the start section of my start script:

****************************************
#!/bin/sh

  1. Package
    PACKAGE="tvheadend"
    DNAME="Tvheadend"
  1. Others
    INSTALL_DIR="/usr/local/${PACKAGE}"
    PATH="${INSTALL_DIR}/bin:/usr/local/bin:/bin:/usr/bin:/usr/syno/bin"
    export LD_LIBRARY_PATH=/volume1/@appstore/tvheadend/lib/ ==> added to get the right library
    USER="tvheadend"
  2. USER="admin"
    TVHEADEND="${INSTALL_DIR}/bin/tvheadend" ==> I placed my tvheadend binary manually in this directory
    PID_FILE="${INSTALL_DIR}/var/tvheadend.pid"
start_daemon () {
${TVHEADEND} -f -u ${USER} -c ${INSTALL_DIR}/var -p ${PID_FILE}
  1. ${TVHEADEND} -f -C --noacl -c ${INSTALL_DIR}/var -p ${PID_FILE}

TVHeadend is normally started with a tvheadend user, which I did not find on my system. I started it also with the commented line using th --noacl option, to get direct access.
I´ve seen the "1" file under the access control directory "/volume1/@appstore/tvheadend/var/accesscontrol"

NetDisk> more 1 {
"enabled": 1,
"username": "username",
"password": "password",
"comment": "Administrator",
"prefix": "0.0.0.0/0",
"streaming": 1,
"dvr": 1,
"dvrallcfg": 1,
"webui": 1,
"admin": 1,
"id": "1"
}


I moved this file to a different location and restarted TVHeadend. I was then prompted for User: xbmc and I entered the password xbmc, without success.

Can you tell me, where to find the .js and .html files in order to set the correct permissions ? I was not able to find them right now. And what about the "tvheadend" user, which is used per default in the original start script ? Is it missing and should I create this account ?

Thanks in advance for your help

Regards

reinwolf

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

add to my last post:

The files are located under

/volume1/@appstore/tvheadend/share/

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Prof Yaffle over 8 years ago

I don't have a tvheadend Synology installation any more, I'm afraid, so I can only suggest rather than really look.

I'd search for extjs.html to find the interface files. But it may be that your installation is damaged and you need the new spksrc package when it appears.

The accesscontrol file determines who can use the web interface. Try defining something like the following in accesscontrol:

$ more 1
{
    "enabled": 1,
    "username": "*",
    "password": "*",
    "comment": "Universal access",
    "prefix": "0.0.0.0/0",
    "streaming": 1,
    "dvr": 1,
    "dvrallcfg": 1,
    "webui": 1,
    "admin": 1,
    "id": "1" 
}

This gives all access to everything in the web interface from any IP address with no login - a bit extreme, but...

And then put this in the file superuser, since that's the main administrator:

$ more superuser
{
"username": "xbmc",
"password": "xbmc" 
}

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

Can you tell me, where to place the "superuser" file on a Synology NAS ?
Under "accesscontrol" ?

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Prof Yaffle over 8 years ago

It should be in the tvheadend config directory. You'll have directories called accesscontrol, autorec, channel, channeltags and others; and you'll have files called config, epg.v2, and the object of our quest - superuser.

[email protected]:/home/hts/.hts/tvheadend$ ll superuser
-rw------- 1 hts hts 43 Mar 14 13:41 superuser

Again, the precise Synology path will be different, but the structure should be the same.

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

Hi,

Thanks for your reply...

It seems to be a little bit different on a Synology NAS compared to other distributions. There is no superuser file after the initial Installation of tvheadend.

I´ve created it maually and placed the file in various locations....no success. I guess, that the files autorec, channel, channeltags etc. are only available when the initial settings are done in the WEB GUI.

I´ve put it into the accesscontrol directoty, and a lot of other directories. It prompts me for user xbmc, but does not accept the password xbmc.

The start script uses a "tvheadend" user per default, but this user was not automatically created on my system. I created it manually.

Maybe I have to wait for the next TVHeadend update for DSM 5 or start the Installation from scratch.

What do you think ?

I hope, we´ll find a solution....TVHeadend is really great !!

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Prof Yaffle over 8 years ago

I can't really help further, I'm afraid, as I don't have a suitable Synology box onto which to install tvheadend. I suspect you'll need the DSM 5.0-compatible package.

Not giving up just yet, though...

Googling around suggests that it might have to be in /mnt/cache/data/tvheadend/.htsconfig/superuser - does that make sense?

Also, check permissions - if your config is root/root and you're running as, say, tvheadend/users then you may not even have permission to read the files. It's the sort of thing that will change on a major OS upgrade (which DSM 5 is).

I believe you can run tvheadend under Debian chroot if you're really feeling up to a challenge... if that works, you're not dependent on the Synology packages for anything any more, and can use .deb packages instead...

RE: TV Headend on Synology DS1511+ with DSM 5 - Added by Reiner Wolf over 8 years ago

O.K.
I´ll keep on testing it and maybe I´ll install TVHeadend under a Debian VM or my Raspberry...
I´ll keep you informed !

Thanks a lot for your help !

Regards Reiner

    (1-12/12)