Project

General

Profile

Problem and more Problems. THV dont run

Added by Ralf Buck about 11 years ago

hello

i installed today TVH
https://github.com/tvheadend/tvheadend/archive/3.2patch2.tar.gz

wget https://github.com/tvheadend/tvheadend/archive/3.2patch2.tar.gz
tar -xzf 3.2patch2.tar.gz
cd tvheadend3.2patch2
sudo apt-get install build-essential git pkg-config libssl-dev bzip2 libavahi-client-dev zlib1g-dev debhelper
./Autobuild.sh -t debian
cd ..
sudo dpkg -i tvheadend_3.2
*******.deb*

that runs

but i ve two problems

1) tvheadend dont start automatic after installation or after system start. i must start TVH with "tvheadend" in the SSH connection
start/restart with service of TVH not possible
root@openmediavault:~# sudo /etc/init.d/tvheadend restart
sudo: /etc/init.d/tvheadend: command not found

root@openmediavault:~# sudo service tvheadend start
exec: 129: start: not found

2) the password and user that i add after installation dont work. -> no permission ;(

my sysmtem: HP Microserver N40L with OpenMediaVault


Replies (10)

RE: Problem and more Problems. THV dont run - Added by Prof Yaffle about 11 years ago

Is there any reason you went for 3.2 (not 3.4), and didn't install from the Debian repository? It sounds like something's gone wrong in the installation of your DIY build at a guess - unless dpkg-reconfigure can fix it, or unless there's a specific reason not to use the release binary, I'd uninstall and use the pre-built code.

https://tvheadend.org/projects/tvheadend/wiki/AptRepository

or

https://github.com/tvheadend/tvheadend/archive/3.4patch1.tar.gz for the 3.4 source if you have to compile yourself (e.g. because of your system's architecture).

RE: Problem and more Problems. THV dont run - Added by Ralf Buck about 11 years ago

3.4 dont work. i dont know why

*root@openmediavault:~/tvheadend-3.4patch1# ./Autobuild.sh -t debian
dpkg-buildpackage: exportieren von CFLAGS aus dpkg-buildflags (Quelle: vendor):
-g -O2
dpkg-buildpackage: exportieren von CPPFLAGS aus dpkg-buildflags (Quelle: vendor)
:
dpkg-buildpackage: exportieren von CXXFLAGS aus dpkg-buildflags (Quelle: vendor)
: -g -O2
dpkg-buildpackage: exportieren von FFLAGS aus dpkg-buildflags (Quelle: vendor):
-g -O2
dpkg-buildpackage: exportieren von LDFLAGS aus dpkg-buildflags (Quelle: vendor):

parsechangelog/debian: Warnung: debian/changelog(l1): ungültig formatierte K
opfzeile
LINE: tvheadend () unstable; urgency=low
parsechangelog/debian: Warnung: debian/changelog(l2): Leerzeile statt des er
warteten first heading gefunden
parsechangelog/debian: Warnung: debian/changelog(l3): Änderungsdaten statt d
es erwarteten first heading gefunden
LINE: * The full changelog can be found at
parsechangelog/debian: Fehler: Can't call method "as_string" on an undefined val
ue at /usr/share/perl5/Dpkg/Changelog.pm line 250, <STDIN> line 6.

dpkg-buildpackage: Fehler: Fehler-Exitstatus von Changelog-Parser /usr/lib/dpkg/
parsechangelog/debian war 255
root@openmediavault:~/tvheadend-3.4patch1#*

RE: Problem and more Problems. THV dont run - Added by Prof Yaffle about 11 years ago

Can you not install from the repository - you're on OMV, but that's Debian, and the N40L is (AMD) x86-based, so I don't know why you're compiling it yourself.

That doesn't solve your issue with the changelog parsing, however, and I'm not the man to diagnose that, I'm afraid!

Well... one thought... are you meant to specify -t debian directly? Looking at the build scripts, you're not specifying an architecture, since the debian.sh script is incorporated into the Ubuntu scripts. What happens if you try building for either precise-amd64 or precise-i386 (depending on which you need)? The .deb should still install fine.

Just a thought.

RE: Problem and more Problems. THV dont run - Added by Ralf Buck about 11 years ago

i dont know why this dont work

here my sources.list

@

deb cdrom:[Debian GNU/Linux 6.0.0 Squeeze - Official Snapshot amd64 LIVE/IN$

deb cdrom:[Debian GNU/Linux 6.0.0 Squeeze - Official Snapshot amd64 LIVE/INS$

eb http://ftp.de.debian.org/debian/ squeeze main
eb-src http://ftp.de.debian.org/debian/ squeeze main

eb http://security.debian.org/ squeeze/updates main non-free
eb-src http://security.debian.org/ squeeze/updates main non-free

squeeze-updates, previously known as 'volatile'
eb http://ftp.de.debian.org/debian/ squeeze-updates main non-free
eb-src http://ftp.de.debian.org/debian/ squeeze-updates main non-free

eb http://apt.tvheadend.org/stable wheezy main
@

answer:

@
root@openmediavault:~# sudo apt-get install tvheadend
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
tvheadend : Hängt ab von: libssl1.0.0 (>= 1.0.0) ist aber nicht installierbar
E: Beschädigte Pakete
@

RE: Problem and more Problems. THV dont run - Added by Prof Yaffle about 11 years ago

Have you tried:

1. Compiling with the -t precise-amd64 flag instead of -t debian, and seeing if you can install the resultant .deb

or

2. (Re-)installing the libssl library, which is where the tvheadend installation seems to be failing?

or

3. Renaming the tvheadend entry in sources.list to http://apt.tvheadend.org/stable squeeze main (so it matches your release) instead of http://apt.tvheadend.org/stable wheezy main (you may mean to re-import the signing key)?

RE: Problem and more Problems. THV dont run - Added by Ralf Buck about 11 years ago

#1 not possible
---------------

@
root@openmediavault:~# cd tvheadend-3.4patch1/
root@openmediavault:~/tvheadend-3.4patch1# ./Autobuild.sh -t precise-amd64
dpkg-buildpackage: exportieren von CFLAGS aus dpkg-buildflags (Quelle: vendor):
-g -O2
dpkg-buildpackage: exportieren von CPPFLAGS aus dpkg-buildflags (Quelle: vendor)
:
dpkg-buildpackage: exportieren von CXXFLAGS aus dpkg-buildflags (Quelle: vendor)
: -g -O2
dpkg-buildpackage: exportieren von FFLAGS aus dpkg-buildflags (Quelle: vendor):
-g -O2
dpkg-buildpackage: exportieren von LDFLAGS aus dpkg-buildflags (Quelle: vendor):

dpkg-buildpackage: Quellpaket tvheadend
dpkg-buildpackage: Quellversion ~precise
dpkg-buildpackage: Quellen geändert durch Andreas Öman <>
dpkg-buildpackage: Host-Architektur amd64
dpkg-source --before-build tvheadend-3.4patch1
dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: libcurl4-gnutls-dev
dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch
dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)
@

#3
---------------
@
root@openmediavault:~/tvheadend-3.4patch1# apt-get update
Ign file: Release.gpg
Ign file:/var/cache/openmediavault/archives/ Translation-de
Ign file:/var/cache/openmediavault/archives/ Translation-en
Ign file: Release
Ign file: Packages
OK http://packages.openmediavault.org fedaykin Release.gpg
Ign http://packages.openmediavault.org/public/ fedaykin/main Translation-de
Ign http://packages.openmediavault.org/public/ fedaykin/main Translation-en
Ign http://apt.tvheadend.org squeeze Release.gpg
Ign http://apt.tvheadend.org/stable/ squeeze/main Translation-de
Ign http://apt.tvheadend.org/stable/ squeeze/main Translation-en
OK http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/main Translation-de
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/non-free Translation-de
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en
OK http://ftp.de.debian.org squeeze Release.gpg
OK http://ftp.de.debian.org/debian/ squeeze/main Translation-de
Ign http://ftp.de.debian.org/debian/ squeeze/main Translation-en
Hole:1 http://ftp.de.debian.org squeeze-updates Release.gpg [1.571 B]
Ign http://ftp.de.debian.org/debian/ squeeze-updates/main Translation-de
Ign http://ftp.de.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze-updates/non-free Translation-de
Ign http://ftp.de.debian.org/debian/ squeeze-updates/non-free Translation-en
OK http://packages.openmediavault.org fedaykin Release
Ign http://apt.tvheadend.org squeeze Release
OK http://security.debian.org squeeze/updates Release
OK http://ftp.de.debian.org squeeze Release
Ign http://apt.tvheadend.org squeeze/main amd64 Packages
Ign http://packages.openmediavault.org fedaykin/main amd64 Packages
Hole:2 http://ftp.de.debian.org squeeze-updates Release [113 kB]
OK http://security.debian.org squeeze/updates/main Sources
Fehl http://apt.tvheadend.org squeeze/main amd64 Packages
404 Not Found
OK http://packages.openmediavault.org fedaykin/main amd64 Packages
OK http://security.debian.org squeeze/updates/non-free Sources
OK http://security.debian.org squeeze/updates/main amd64 Packages
OK http://security.debian.org squeeze/updates/non-free amd64 Packages
OK http://ftp.de.debian.org squeeze/main Sources
OK http://ftp.de.debian.org squeeze/main amd64 Packages
OK http://ftp.de.debian.org squeeze-updates/main Sources/DiffIndex
Hole:3 http://ftp.de.debian.org squeeze-updates/non-free Sources [14 B]
OK http://ftp.de.debian.org squeeze-updates/main amd64 Packages/DiffIndex
Hole:4 http://ftp.de.debian.org squeeze-updates/non-free amd64 Packages [14 B]
Hole:5 http://ftp.de.debian.org squeeze-updates/main amd64 Packages [4.663 B]
Es wurden 120 kB in 0 s geholt (287 kB/s)
W: Fehlschlag beim Holen von http://apt.tvheadend.org/stable/dists/squeeze/main/
binary-amd64/Packages.gz 404 Not Found

E: Einige Indexdateien konnten nicht heruntergeladen werden, sie wurden ignorier
t oder alte an ihrer Stelle benutzt.
@

#3 with wheezy in sources.list
-------------------------------

: GPG-Fehler: http://apt.tvheadend.org wheezy Release: Die folgenden Signaturen
konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar
ist: NO_PUBKEY B42317285E12C7CF

RE: Problem and more Problems. THV dont run - Added by Ralf Buck about 11 years ago

./Autobuild.sh -t precise-amd64
now it runs,

so, now i have few files in my folder:
http://www.bilder-upload.eu/show.php?file=ac8d58-1376171867.png

i want install with
sudo dpkg -i tvheadend_3.1.694~precise_amd64.deb

and get

root@openmediavault:~# sudo dpkg -i tvheadend_3.1.694~precise_amd64.deb
Vormals abgewähltes Paket tvheadend wird gewählt.
(Lese Datenbank ... 27233 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von tvheadend (aus tvheadend_3.1.694~precise_amd64.deb) ...
tvheadend (3.1.694~precise) wird eingerichtet ...
Trigger für man-db werden verarbeitet ...

if i want start tvheadend with
sudo service tvheadend start

i get

root@openmediavault:~# sudo service tvheadend start
exec: 129: start: not found

sudo dpkg-reconfigure tvheadend
works
i can add a username (ralf) and a password (12345)

if i open the webinterface: login not possible
the gui dont accept username/password

edit:
-------
after a restart of the system, TVHEADEND dont run, no Autostart :(
i start must start TVH with "tvheadend" in the console

login is now with my name and password possible

but why dont run TVH after a system restart???


Last login: Sat Aug 10 23:52:12 2013 from ralf-buero.fritz.box
root@openmediavault:~# tvheadend
Aug 11 00:17:08 [INFO]:charset: 59 entries loaded
Aug 11 00:17:08 [INFO]:epggrab: module eit created
Aug 11 00:17:08 [INFO]:epggrab: module uk_freesat created
Aug 11 00:17:08 [INFO]:epggrab: module uk_freeview created
Aug 11 00:17:08 [INFO]:epggrab: module opentv-skyuk created
Aug 11 00:17:08 [INFO]:epggrab: module opentv-ausat created
Aug 11 00:17:08 [INFO]:epggrab: module opentv-skyit created
Aug 11 00:17:08 [INFO]:epggrab: module pyepg created
Aug 11 00:17:08 [INFO]:epggrab: module xmltv created
Aug 11 00:17:08 [INFO]:epgdb: loaded v2
Aug 11 00:17:08 [INFO]:epgdb: channels 0
Aug 11 00:17:08 [INFO]:epgdb: brands 0
Aug 11 00:17:08 [INFO]:epgdb: seasons 0
Aug 11 00:17:08 [INFO]:epgdb: episodes 0
Aug 11 00:17:08 [INFO]:epgdb: broadcasts 0
Aug 11 00:17:08 [INFO]:dvr: Creating new configuration ''
Aug 11 00:17:08 [WARNING]:dvr: Output directory for video recording is not yet c
onfigured for DVR configuration "". Defaulting to to "/root". This can be change
d from the web user interface.
Aug 11 00:17:08 [INFO]:CSA: Using SSE2 128bit parallel descrambling
Aug 11 00:17:08 [NOTICE]:START: HTS Tvheadend version 3.1.694 started, running a
s PID:2288 UID:0 GID:0, settings located in '/root/.hts/tvheadend'
Aug 11 00:17:09 [INFO]:AVAHI: Service 'Tvheadend' successfully established.
Aug 11 00:17:16 [ERROR]:HTTP: 192.168.1.8: / -- 401

RE: Problem and more Problems. THV dont run - Added by Prof Yaffle about 11 years ago

I need to surrender at this point, I'm afraid - I don't know "real" Debian well enough to solve your problem.

On 'buntu, you'd have a tvheadend upstart script in /etc/init.d - see what the equivalent is on Debian, see that it's executable, see that it references the right executable(s), etc. It may be that the init.d script is there, but it's referencing an upstart job or something else that doesn't exist on Debian. You may also be able to call that script directly instead of using sudo service... to help diagnose where it's going wrong; also, look in your syslog file after boot, see if there are any useful error messages there.

I'd also check your permissions, as you're manually starting the process as root, which isn't necessary: a default installation will run as hts/video, so that might be the issue.

Bit of a brain dump of where I'd go next.

RE: Problem and more Problems. THV dont run - Added by Ralf Buck about 11 years ago

i ve a entry in init.d (a link)

see
http://www.bilder-upload.eu/show.php?file=704823-1376218551.png


Last login: Sun Aug 11 12:19:01 2013 from ralf-buero.fritz.box
root@openmediavault:~# cd /etc/init.d
root@openmediavault:/etc/init.d# ls -la tvheadend
lrwxrwxrwx 1 root root 21 11. Aug 00:00 tvheadend -> /lib/init/upstart-job
root@openmediavault:/etc/init.d#

http://www.bilder-upload.eu/show.php?file=7eaad2-1376218728.png

hope this help.

RE: Problem and more Problems. THV dont run - Added by Prof Yaffle about 11 years ago

I think that's your problem - I don't believe that upstart is installed by default on Debian, so that link points to a non-existent script. You should have a matching syslog error that confirms this.

It's probably a packaging issue - maybe because we've tried to install the 'buntu .deb, or simply differences between the two distros.

I think you have two main choices:

1. Add something to rc.local to start tvheadend, or

2. Replace the symlink here with a startup script

A quick Google throws this up, so have a look here:

https://tvheadend.org/boards/5/topics/7768

    (1-10/10)