upgrade to Build: 4.2.1-51~g04b6e3c service will not start

Added by dave albright 4 months ago

after upgrade cannot start tvheadend service.
Ubuntu 16.04
sudo service tvheadend start fails and service does not start after config fatal error.
was able to start by sudo tvheadend f -u hts -g video --nobackup
----------

May 15 13:57:39 flanders systemd1: Starting tvheadend.service...
May 15 13:57:39 flanders tvheadend877: * Starting Tvheadend tvheadend
May 15 13:57:49 flanders tvheadend1237: main: Log started
May 15 13:57:49 flanders systemd1: Started tvheadend.service.
May 15 13:57:49 flanders tvheadend877: ...done.
May 15 13:57:49 flanders tvheadend1237: http: Starting HTTP server 0.0.0.0:9981
May 15 13:57:49 flanders tvheadend1237: htsp: Starting HTSP server 0.0.0.0:9982
May 15 13:57:52 flanders tvheadend1237: config: backup: migrating config from 4.2.1-29~g21c97e1 (running 4.2.1-51~g04b6e3c)
May 15 13:57:52 flanders tvheadend1237: config: backup: running, output file /home/hts/.hts/tvheadend/backup/4.2.1-29~g21c97e1.tar.bz2
May 15 13:57:52 flanders tvheadend1237: spawn: Executing "/bin/tar"
May 15 13:57:53 flanders tvheadend1237: spawn: /bin/tar: ./input/dvb/networks/c5ade558437dac80cba4d79b6b7f6b8e/muxes/kmsb/config: Cannot open: Permission denied
May 15 13:57:53 flanders tvheadend1237: spawn: /bin/tar: ./input/dvb/networks/c5ade558437dac80cba4d79b6b7f6b8e/muxes/kmsb/services/4403576ecdc0d935a30d7a3ca665df28: Cannot open: Permission denied
May 15 13:57:53 flanders tvheadend1237: spawn: /bin/tar: ./input/dvb/networks/c5ade558437dac80cba4d79b6b7f6b8e/muxes/kmsb/services/3d7f901ba550307d6f52754c2a5ed23b: Cannot open: Permission denied
May 15 13:57:53 flanders tvheadend1237: spawn: /bin/tar: ./input/dvb/networks/c5ade558437dac80cba4d79b6b7f6b8e/muxes/kmsb/services/34554366edd3c7d5f46a205f14d6aae9: Cannot open: Permission denied
May 15 13:57:55 flanders tvheadend1237: spawn: /bin/tar: Exiting with failure status due to previous errors
May 15 13:57:55 flanders tvheadend1237: config: backup: completed
May 15 13:57:55 flanders tvheadend1237: config: command '/bin/tar cjf /home/hts/.hts/tvheadend/backup/4.2.1-29~g21c97e1.tar.bz2 --exclude backup --exclude epggrab/*.sock --exclude timeshift/buffer .' returned error code 2
May 15 13:57:55 flanders tvheadend1237: config: executed in directory '/home/hts/.hts/tvheadend'
May 15 13:57:55 flanders tvheadend1237: config: please, do not report this as an error, you may use --nobackup option
May 15 13:57:55 flanders tvheadend1237: config: ... or run the above command in the printed directory
May 15 13:57:55 flanders tvheadend1237: config: ... using the same user/group as for the tvheadend executable
May 15 13:57:55 flanders tvheadend1237: config: ... to check the reason for the unfinished backup
May 15 13:57:55 flanders tvheadend1237: config: backup: fatal error


Replies (5)

RE: upgrade to Build: 4.2.1-51~g04b6e3c service will not start - Added by Mark Clarkstone 4 months ago

Fix the permission issues on the reported files using chown.

They should be owned by the same user running TVH, which is usually hts.

RE: upgrade to Build: 4.2.1-51~g04b6e3c service will not start - Added by dave albright 4 months ago

looks like owner is hts, group is video everywhere.
Where can I find the default permissions for tvheadend & subdirs?
thanx, dave

RE: upgrade to Build: 4.2.1-51~g04b6e3c service will not start - Added by Mark Clarkstone 4 months ago

try

sudo chown hts:hts /home/hts/.hts/ -R

RE: upgrade to Build: 4.2.1-51~g04b6e3c service will not start - Added by dave albright 4 months ago

doesn't that just change the owner and group to "hts"?
as opposed to hts and video?
i think it may be the permissions set on the directories and files but I do not know what the defaults are.
(i.e. 755 or 700)

RE: upgrade to Build: 4.2.1-51~g04b6e3c service will not start - Added by dave albright 4 months ago

scratch the last reply.
There was an errant directory under muxes owned by root.
thanx for the help

(1-5/5)