Project

General

Profile

no EPG after building package

Added by Ralf Brinkmann almost 10 years ago

I have testet the tvheadend version 3.9.2316 as recommended in the wiki •Building Tvheadend.

It worked fine for me, so I did the next step and build a package with
$ ./Autobuild.sh t precise-i386
I got the following output:
-rw-r--r-
1 ralf ralf 1227 Jan 5 16:43 tvheadend_3.9.2316~gc051d0b~precise_i386.changes
rw-r--r- 1 ralf ralf 3968092 Jan 5 16:43 tvheadend_3.9.2316~gc051d0b~precise_i386.deb
rw-r--r- 1 ralf ralf 2010800 Jan 5 16:43 tvheadend-dbg_3.9.2316~gc051d0b~precise_i386.deb

Then i did:
sudo dpkg -i /tvheadend_3.9.2316~gc051d0b~precise_i386.deb

with sudo service tvheadend start it is running.
Live TV is working, and in the channel list I can see the currently running program.
even more I can get the program information (program description).

But the main EPG (main menu TV - EPG) is empty. Even on the Webfrontend the EPG is empty.

If I stop the service, and run ./build.linux/tvheadend, the EPG data is filled immediately.
What am I doing wrong?

after packing ist shows 3.9.2316~gc051d0b


Replies (6)

RE: now EPG after building package - Added by Prof Yaffle almost 10 years ago

When you run from build.linux, what user are you running as? That's almost certainly the problem - when running as a service, you'll be using hts:video. Also, what EPG grabber are you using? If it's OTA, so long as you have access to the tuners then you should get the data (... eventually); if it's XMLTV, it needs to be configured as the UID as which you're running the program.

RE: now EPG after building package - Added by Ralf Brinkmann almost 10 years ago

It is the user ralf.
The grabber ist OTA.
I have had a standard tvheaden install before, there the EPG was no problem.

when I run
sudo ./build.linux/tvheadend
I have the same reult, no EPG. But what have I done wrong with building the package?

RE: now EPG after building package - Added by Prof Yaffle almost 10 years ago

Mmm, but I'd still look into permissions as the problem.

Running from build.linux, you're presumably launching tvheadend as ralf:ralf unless you're specifying -u and -g (ps -eaf | grep tvh will tell you). Running as a service, you'll get -f -u hts -g video.

What I can't immediately explain is why you can access the tuners to watch TV, unless ralf is a member of the video group.

However, running as a different user will also pick up an entirely different configuration - if you're running as ralf normally, then /home/ralf/.hts/tvheadend will contain the config files, versus /home/hts/.hts/tvheadend when running as a service. That means a different superuser (sudo dpkg-reconfigure tvheadend to change), different accesscontrol entries, different everything (inc. mux/service/channel definitions and what EPG grabber to use).

You can also look at /var/log/syslog and see what tvheadend is saying as it starts up and/or starts scanning - that will give you some clues. Also^2, you can switch on debugging in the web interface (double-arrow in the bottom right, then the little gear/cog that appears as it rolls up) to get more information.

RE: no EPG after building package - Added by Ralf Brinkmann almost 10 years ago

This is the log for starting as root:

ralf@SATdebianServer:~/tvheadend$ sudo ./build.linux/tvheadend
[sudo] password for ralf:
2015-01-05 19:24:03.529 [ INFO] main: Log started
2015-01-05 19:24:06.033 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
2015-01-05 19:24:06.048 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
2015-01-05 19:24:06.085 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
2015-01-05 19:24:06.087 [ INFO] dvr: Creating new configuration 'default'
2015-01-05 19:24:06.087 [ INFO] dvr: Creating new configuration ''
2015-01-05 19:24:06.088 [ INFO] CSA: Using SSE2 128bit parallel descrambling
2015-01-05 19:24:06.088 [ INFO] epggrab: module eit created
2015-01-05 19:24:06.088 [ INFO] epggrab: module uk_freesat created
2015-01-05 19:24:06.088 [ INFO] epggrab: module uk_freeview created
2015-01-05 19:24:06.088 [ INFO] epggrab: module viasat_baltic created
2015-01-05 19:24:06.094 [ INFO] epggrab: module opentv-skyuk created
2015-01-05 19:24:06.094 [ INFO] epggrab: module opentv-skyit created
2015-01-05 19:24:06.096 [ INFO] epggrab: module opentv-ausat created
2015-01-05 19:24:06.100 [ INFO] epggrab: module pyepg created
2015-01-05 19:24:06.100 [ INFO] epggrab: module xmltv created
2015-01-05 19:24:06.103 [ INFO] spawn: Executing "/usr/bin/tv_find_grabbers"
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_pt_meo created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_dk_dr created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_in created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_se_tvzon created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_na_dtv created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_no_gfeed created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_se_swedb created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_is created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_ch_search created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_hr created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_it created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_uk_rt created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_huro created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_fr created
2015-01-05 19:24:07.448 [ INFO] epggrab: module /usr/bin/tv_grab_combiner created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_es_laguiatv created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_uk_bleb created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_ar created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_fr_kazer created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_il created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_fi created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_eu_egon created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_na_dd created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created
2015-01-05 19:24:07.449 [ INFO] epggrab: module /usr/bin/tv_grab_za created
2015-01-05 19:24:07.449 [ INFO] epgdb: loaded v2
2015-01-05 19:24:07.449 [ INFO] epgdb: config 1
2015-01-05 19:24:07.449 [ INFO] epgdb: channels 0
2015-01-05 19:24:07.449 [ INFO] epgdb: brands 0
2015-01-05 19:24:07.449 [ INFO] epgdb: seasons 0
2015-01-05 19:24:07.449 [ INFO] epgdb: episodes 0
2015-01-05 19:24:07.449 [ INFO] epgdb: broadcasts 0
2015-01-05 19:24:07.449 [ NOTICE] START: HTS Tvheadend version 3.9.2316~gc051d0b started, running as PID:14712 UID:0 GID:0, CWD:/home/ralf/tvheadend CNF:/root/.hts/tvheadend
2015-01-05 19:24:07.449 [ INFO] htsp: Got connection from 192.168.0.143
2015-01-05 19:24:07.449 [ INFO] htsp: 192.168.0.143: Welcomed client software: XBMC Media Center (HTSPv8)
2015-01-05 19:24:07.451 [ INFO] htsp: 192.168.0.143 [ XBMC Media Center ]: Identified as user tvHO
2015-01-05 19:24:08.411 [ INFO] AVAHI: Service 'Tvheadend' successfully established.
2015-01-05 19:24:12.453 [ INFO] htsp: 192.168.0.143 [ tvHO | XBMC Media Center ]: Disconnected

WITH NO EPG

This is the other one:
ralf@SATdebianServer:~/tvheadend$ ./build.linux/tvheadend
2015-01-05 19:27:09.110 [ INFO] main: Log started
2015-01-05 19:27:11.817 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
2015-01-05 19:27:11.856 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
2015-01-05 19:27:11.884 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
2015-01-05 19:27:11.899 [ INFO] dvr: Creating new configuration ''
2015-01-05 19:27:11.900 [ INFO] CSA: Using SSE2 128bit parallel descrambling
2015-01-05 19:27:11.900 [ INFO] epggrab: module eit created
2015-01-05 19:27:11.900 [ INFO] epggrab: module uk_freesat created
2015-01-05 19:27:11.900 [ INFO] epggrab: module uk_freeview created
2015-01-05 19:27:11.900 [ INFO] epggrab: module viasat_baltic created
2015-01-05 19:27:11.903 [ INFO] epggrab: module opentv-skyuk created
2015-01-05 19:27:11.903 [ INFO] epggrab: module opentv-skyit created
2015-01-05 19:27:11.904 [ INFO] epggrab: module opentv-ausat created
2015-01-05 19:27:11.905 [ INFO] epggrab: module pyepg created
2015-01-05 19:27:11.905 [ INFO] epggrab: module xmltv created
2015-01-05 19:27:11.907 [ INFO] spawn: Executing "/usr/bin/tv_find_grabbers"
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_pt_meo created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_dk_dr created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_in created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_se_tvzon created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_na_dtv created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_no_gfeed created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_se_swedb created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_is created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_ch_search created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_hr created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_it created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_uk_rt created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_huro created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_fr created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_combiner created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_es_laguiatv created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_uk_bleb created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_ar created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_fr_kazer created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_il created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_fi created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_eu_egon created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_na_dd created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created
2015-01-05 19:27:13.247 [ INFO] epggrab: module /usr/bin/tv_grab_za created
2015-01-05 19:27:13.868 [ INFO] epgdb: loaded v2
2015-01-05 19:27:13.868 [ INFO] epgdb: config 1
2015-01-05 19:27:13.868 [ INFO] epgdb: channels 0
2015-01-05 19:27:13.868 [ INFO] epgdb: brands 0
2015-01-05 19:27:13.868 [ INFO] epgdb: seasons 0
2015-01-05 19:27:13.868 [ INFO] epgdb: episodes 36220
2015-01-05 19:27:13.868 [ INFO] epgdb: broadcasts 36215
2015-01-05 19:27:14.204 [ NOTICE] START: HTS Tvheadend version 3.9.2316~gc051d0b started, running as PID:14818 UID:1000 GID:1000, CWD:/home/ralf/tvheadend CNF:/home/ralf/.hts/tvheadend
2015-01-05 19:27:14.927 [ INFO] AVAHI: Service 'Tvheadend' successfully established.
2015-01-05 19:27:19.000 [ INFO] mpegts: 10773.25H in SAT Astra - tuning on Montage Technology DS3000/TS2020 : DVB-S #0
2015-01-05 19:27:19.104 [ INFO] subscription: 0001: "scan" subscribing to mux, weight: 4, adapter: "Montage Technology DS3000/TS2020 : DVB-S #0", network: "SAT Astra", mux: "10773.25H", hostname: "<N/A>", username: "<N/A>", client: "<N/A>"2015-01-05 19:27:19.104 [ INFO] mpegts: 11934V in SAT Astra - tuning on Montage Technology DS3000/TS2020 : DVB-S #0
2015-01-05 19:27:19.208 [ INFO] subscription: 0002: "scan" subscribing to mux, weight: 4, adapter: "Montage Technology DS3000/TS2020 : DVB-S #0", network: "SAT Astra", mux: "11934V", hostname: "<N/A>", username: "<N/A>", client: "<N/A>"
2015-01-05 19:27:22.937 [ INFO] mpegts: 10773.25H in SAT Astra scan complete
2015-01-05 19:27:22.937 [ INFO] subscription: 0001: "scan" unsubscribing
2015-01-05 19:27:22.939 [ INFO] mpegts: 12421.5H in SAT Astra - tuning on Montage Technology DS3000/TS2020 : DVB-S #0
2015-01-05 19:27:22.961 [ INFO] subscription: 0003: "scan" subscribing to mux, weight: 4, adapter: "Montage Technology DS3000/TS2020 : DVB-S #0", network: "SAT Astra", mux: "12421.5H", hostname: "<N/A>", username: "<N/A>", client: "<N/A>"
2015-01-05 19:27:23.000 [ INFO] mpegts: 10773.25H in SAT Astra - tuning on Sundtek DVB-S/S2 (IV) : DVB-S #0
2015-01-05 19:27:23.661 [ INFO] subscription: 0004: "epggrab" subscribing to mux, weight: 3, adapter: "Sundtek DVB-S/S2 (IV) : DVB-S #0", network: "SAT Astra", mux: "10773.25H", hostname: "<N/A>", username: "<N/A>", client: "<N/A>"
2015-01-05 19:27:23.955 [ INFO] HTTP: 192.168.0.143: /1_0_19_2B7A_3F3_1_C00000_0_0_0.png -- 1
2015-01-05 19:27:23.959 [ INFO] HTTP: 192.168.0.143: /1_0_19_2B7A_3F3_1_C00000_0_0_0.png -- 1
2015-01-05 19:27:23.959 [ INFO] HTTP: 192.168.0.143: /1_0_19_2BA2_3F2_1_C00000_0_0_0.png -- 1
2015-01-05 19:27:23.963 [ INFO] HTTP: 192.168.0.143: /1_0_19_2BA2_3F2_1_C00000_0_0_0.png -- 1

For me the start looks the same until the line " HTS Tvheadend version ... runnig".
The one with working EPG
goes on with:
2015-01-05 19:42:35.753 [ INFO] mpegts: 11934V in SAT Astra scan complete
2015-01-05 19:42:35.753 [ INFO] subscription: 0002: "scan" unsubscribing
2015-01-05 19:42:35.755 [ INFO] mpegts: 11523.25H in SAT Astra - tuning on Montage Technology DS3000/TS2020 : DVB-S #0
2015-01-05 19:42:35.837 [ INFO] subscription: 0005: "scan" subscribing to mux, weight: 4, adapter: "Montage Technology DS3000/TS2020 : DVB-S #0", network: "SAT Astra", mux: "11523.25H", hostname: "<N/A>", username: "<N/A>", client: "<N/A>"
2015-01-05 19:42:41.407 [ INFO] mpegts: 12421.5H in SAT Astra scan complete
2015-01-05 19:42:41.407 [ INFO] subscription: 0003: "scan" unsubscribing
2015-01-05 19:42:41.410 [ INFO] mpegts: 11685.5V in SAT Astra - tuning on Montage Technology DS3000/TS2020 : DVB-S #0
2015-01-05 19:42:41.491 [ INFO] subscription: 0006: "scan" subscribing to mux, weight: 4, adapter: "Montage Technology DS3000/TS2020 : DVB-S #0", network: "SAT Astra", mux: "11685.5V", hostname: "<N/A>", username: "<N/A>", client: "<N/A>"

I think the root version does not start scanning

RE: no EPG after building package - Added by Prof Yaffle almost 10 years ago

When you start it as ralf:

HTS Tvheadend version 3.9.2316~gc051d0b started, running as PID:14818 UID:1000 GID:1000, CWD:/home/ralf/tvheadend CNF:/home/ralf/.hts/tvheadend

When you start it as root:

HTS Tvheadend version 3.9.2316~gc051d0b started, running as PID:14712 UID:0 GID:0, CWD:/home/ralf/tvheadend CNF:/root/.hts/tvheadend

And when you start it as an installed service, you'll get something else - probably CNF:/home/hts/.hts/tvheadend. Here's my log entry from a restart:

HTS Tvheadend version 3.9.2333~g1027f29 started, running as PID:7031 UID:120 GID:44, CWD:/ CNF:/home/hts/.hts/tvheadend

Each config is separate. Each needs to be set up independently (network, muxes, services, etc.).

Then, to scan, the UID or GID needs access to your tuners, e.g.

ll /dev/dvb/adapter0
total 0
drwxr-xr-x  2 root root     120 Dec 19 19:21 ./
drwxr-xr-x  7 root root     140 Dec 19 19:21 ../
crw-rw----+ 1 root video 212, 0 Dec 19 19:21 demux0
crw-rw----+ 1 root video 212, 1 Dec 19 19:21 dvr0
crw-rw----+ 1 root video 212, 3 Dec 19 19:21 frontend0
crw-rw----+ 1 root video 212, 2 Dec 19 19:21 net0

Somewhere in all that is your problem; when you start as ralf, you can access the tuners and can scan. When you're starting as root (generally a bad idea), you can't. From what you said originally, starting as a service (which should be user=hts, group=video) also doesn't work, which it should - as you can see from mine, group=video should give the tvheadend process access to the tuners. Check the permissions on /dev/dvb and below.

Also remember what I said above about separate configs, depending on who's starting the process. If you want to test this, take a copy of your config (do it as root and use -a to keep the permissions and ownerships), and then start tvh with -c <path-to-existing-config-directory>. The -c parameter allows you to specify the config rather than using the default of $HOME/.hts/tvheadend.

RE: no EPG after building package - Added by Ralf Brinkmann almost 10 years ago

I have uninstalled everything, and installed the from scratch.
Now it is working, tvheadend is running with the user HTS.
The EPG is now correct.

As you mentioned, I have had to setup all mixes, EPG channels, Tuner, and user.
The worst is to disable all the not used services...

All is fine now, thank you for your support!

    (1-6/6)