Project

General

Profile

Webinterface not available after update to 4.0.9-4

Added by Chris K over 8 years ago

Hello,

I've been running tvheadend without any problem for several months.
Yesterday I've done an upgrade from 4.0.9-1~g7f3fb87~trusty to 4.0.9-4~gac9e47d~trusty and after that I'm having problems to get it running correctly again.

After I've rebooted the machine the service couldn't get started. I've enabled debugging and in the syslog I could see that permissions were missing:

Apr  2 09:33:58 htpc tvheadend[13419]: config: backup: migrating config from 4.0.9-1~g7f3fb87~trusty (running 4.0.9-4~gac9e47d~trusty)
Apr  2 09:33:58 htpc tvheadend[13419]: config: backup: running, output file /home/hts/.hts/tvheadend/backup/4.0.9-1~g7f3fb87~trusty.tar.bz2
Apr  2 09:33:58 htpc tvheadend[13419]: spawn: Executing "/bin/tar" 
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/config: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/6e423c85bd4cb46dffa44c2e93fed384: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/814055a8393f89fb176a6ee6bf9e8187: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/850ca50150d6137de976634cdeb3945c: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/de07aba72c03bb9c430bae6120d21ed7: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/ab5f8b59779c8ce4c37f4c39c7c0d761: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/569614f20264ecc646a24e2014c377cb: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/66f4bbf994d3a8dbfc5a7655397809f7: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/9c619b9c21eff787efe71163151ac0a2: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/8c08b30d9f896912e163aec162ec0b2a: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/0fa7837a8af5bc51e6f99610da32eec3: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/78e4b17d73a3579b53e150cf15acc74f: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/a1b235e315f49719f9ff11dc3c7107fc: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/720186777ee3db3d640916d64939afce: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/6e0cecfe3dc79fc2d9ae0e9aab416d87: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/32a4ee4bbe6477a943a23a126a0d4a03: Cannot open: Permission denied
Apr  2 09:34:11 htpc tvheadend[13419]: spawn: /bin/tar: ./input/dvb/networks/6e7b25b08e6d280284f40692a473e001/muxes/ada225e2b1b4545d97104fa3432e50e6/services/02bfe779afb02350c692b307dc14ca1d: Cannot open: Permission denied
...
Apr  2 09:34:12 htpc tvheadend[13419]: spawn: /bin/tar: Exiting with failure status due to previous errors
Apr  2 09:34:12 htpc tvheadend[13419]: config: backup: completed
Apr  2 09:34:12 htpc tvheadend[13419]: config: command '/bin/tar cjf /home/hts/.hts/tvheadend/backup/4.0.9-1~g7f3fb87~trusty.tar.bz2 --exclude backup --exclude epggrab/*.sock --exclude timeshift/buffer .' returned error code 2
Apr  2 09:34:12 htpc kernel: [  783.991375] init: tvheadend main process (13419) terminated with status 1
Apr  2 09:34:12 htpc kernel: [  783.991400] init: tvheadend main process ended, respawning

After I've given the permissions the service is starting but the Webinterface is not available.
This is the result when I try to start tvheadend with the user hts:

root@htpc:/var/log# sudo -i -u hts
hts@htpc:~$ tvheadend
2016-04-02 11:27:03.940 [   INFO] main: Log started
2016-04-02 11:27:03.941 [  ERROR] tcp: bind: *:9981: Address already in use
2016-04-02 11:27:03.941 [  ERROR] tcp: bind: *:9982: Address already in use
2016-04-02 11:27:03.948 [   INFO] config: loaded
2016-04-02 11:27:03.948 [  ERROR] profile: wrong class profile-transcode!
2016-04-02 11:27:03.948 [  ERROR] profile: wrong class profile-transcode!
2016-04-02 11:27:03.948 [  ERROR] profile: wrong class profile-transcode!
2016-04-02 11:27:04.059 [   INFO] scanfile: DVB-T - loaded 44 regions with 1106 networks
2016-04-02 11:27:04.059 [   INFO] scanfile: DVB-S - loaded 1 regions with 113 networks
2016-04-02 11:27:04.059 [   INFO] scanfile: DVB-C - loaded 17 regions with 53 networks
2016-04-02 11:27:04.059 [   INFO] scanfile: ATSC - loaded 2 regions with 14 networks
2016-04-02 11:27:10.210 [   INFO] dvr: Creating new configuration ''
2016-04-02 11:27:10.211 [   INFO] CSA: Using SSE2 128bit parallel descrambling
2016-04-02 11:27:10.211 [   INFO] epggrab: module eit created
2016-04-02 11:27:10.211 [   INFO] epggrab: module uk_freesat created
2016-04-02 11:27:10.211 [   INFO] epggrab: module uk_freeview created
2016-04-02 11:27:10.211 [   INFO] epggrab: module viasat_baltic created
2016-04-02 11:27:10.215 [   INFO] epggrab: module opentv-ausat created
2016-04-02 11:27:10.215 [   INFO] epggrab: module opentv-skyuk created
2016-04-02 11:27:10.215 [   INFO] epggrab: module opentv-skyit created
2016-04-02 11:27:10.216 [   INFO] epggrab: module opentv-skynz created
2016-04-02 11:27:10.217 [   INFO] epggrab: module pyepg created
2016-04-02 11:27:10.217 [   INFO] epggrab: module xmltv created
2016-04-02 11:27:10.220 [   INFO] spawn: Executing "/usr/bin/tv_find_grabbers" 
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_fr created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_is created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_hr created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_pt_meo created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_il created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_za created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_eu_egon created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_fi created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_fr_kazer created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_na_dd created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_uk_bleb created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_huro created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_it created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_uk_rt created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_se_tvzon created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_in created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_dk_dr created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_ch_search created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_na_dtv created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_combiner created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_es_laguiatv created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_se_swedb created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_ar created
2016-04-02 11:27:11.024 [   INFO] epggrab: module /usr/bin/tv_grab_no_gfeed created
2016-04-02 11:27:11.025 [   INFO] pyepg: external socket enabled
2016-04-02 11:27:11.025 [   INFO] /usr/bin/tv_grab_eu_epgdata: grab /usr/bin/tv_grab_eu_epgdata
2016-04-02 11:27:11.026 [   INFO] xmltv: external socket enabled
2016-04-02 11:27:11.036 [   INFO] spawn: Executing "/usr/bin/tv_grab_eu_epgdata" 
2016-04-02 11:27:11.437 [  ERROR] /usr/bin/tv_grab_eu_epgdata: no output detected
2016-04-02 11:27:11.437 [WARNING] /usr/bin/tv_grab_eu_epgdata: grab returned no data
2016-04-02 11:27:12.602 [   INFO] epgdb: loaded v2
2016-04-02 11:27:12.602 [   INFO] epgdb:   config     1
2016-04-02 11:27:12.602 [   INFO] epgdb:   channels   0
2016-04-02 11:27:12.602 [   INFO] epgdb:   brands     0
2016-04-02 11:27:12.602 [   INFO] epgdb:   seasons    122
2016-04-02 11:27:12.602 [   INFO] epgdb:   episodes   148559
2016-04-02 11:27:12.602 [   INFO] epgdb:   broadcasts 147795

The Webinterface is just loading and doesn't show any result (it was loading now for 30 minutes and in the past it was shown after a second).
I've tried to open the Webinterface directly on the server in Chrome, on my laptop in Chrome and IE and also on my mobile in the browser. Just to avoid a client-problem.

In kodi I also don't get a connection to tvheadend:

11:29:34 T:140625101551360   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - Command hello failed: No response received
11:29:34 T:140625101551360   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - failed to send hello
11:29:38 T:140625101551360   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - Command hello failed: No response received
11:29:38 T:140625101551360   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - failed to send hello
11:29:42 T:140625101551360   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - Command hello failed: No response received
11:29:42 T:140625101551360   ERROR: AddOnLog: Tvheadend HTSP Client: pvr.hts - failed to send hello
11:29:42 T:140625441695488   ERROR: ADDON: Dll Tvheadend HTSP Client - Client returned bad status (1) from Create and is not usable
11:29:42 T:140625441695488 WARNING: UpdateAndInitialiseClients - failed to create add-on Tvheadend HTSP Client, status = 1

The webserver shouldn't be the problem because other websites are shown on the server correctly (there is also fhem running on the same server without any problem).

Any idea is welcome!
Thanks in advance!


Replies (1)

RE: Webinterface not available after update to 4.0.9-4 - Added by Chris K over 8 years ago

Ok, looks like the problem was the NAS which wasn't accessible. After restarting it, the webinterface of tvheadend was working again.
I have no idea if that's normal, but now it is working again fine.

    (1-1/1)