Closed alickwilson closed 2 years ago
Could you check if the folder "/volume1/@appdata/tvheadend/backup" exists and if so has "sc-tvheadend" write access there? Could you also check the permissions setting for "/bin/tar" that should be 755.
Actually, I think the issue comes from the #recycle
file/directory.
This is done automagically by DSM to keep track of deleted files.
I'm presuming that this is owned by root and not accessible by sc-tvheadend
user.
@alickwilson I suggest you manually remove that directory the do a stop/start of the package and see if this fixes things.
A #recycle folder is created by DSM on a share when you activate the recycle bin functionality for that share.
There should not be a recycle folder on the root of the filesystem So why would a tar command use the ./#recycle folder?
Problem solved by removing directory #recycle.
Thanks for your help, @th0ma7 and @BenjV. I could not have solved this without your help.
FWIW, steps below.
Could you check if the folder "/volume1/@appdata/tvheadend/backup" exists and if so has "sc-tvheadend" write access there?
[root@DS118:~# ls -l /volume1/@appdata/tvheadend/backup total 5292 -rw-rw-rw- 1 sc-tvheadend tvheadend 535827 Feb 1 2020 4.2.8.tar.bz2 -rw-rw-rw- 1 sc-tvheadend tvheadend 1028036 Aug 11 2020 4.3~221c29b.tar.bz2 -rw-rw-rw- 1 sc-tvheadend tvheadend 770421 Jul 6 10:54 4.3~9ed76c0.tar.bz2 -rw-rw-rw- 1 sc-tvheadend tvheadend 1263824 Dec 22 16:02 4.3~c6bb43d.tar.bz2 -rw-rw-rw- 1 sc-tvheadend tvheadend 1095695 Dec 5 2020 4.3~ce09077.tar.bz2 -rw-rw-rw- 1 sc-tvheadend tvheadend 713609 Nov 3 15:16 4.3~eb59284.tar.bz2
Could you also check the permissions setting for "/bin/tar" that should be 755.
[root@DS118:~# ls -l /bin/tar -rwxr-xr-x 1 root root 416624 Aug 13 2020 /bin/tar
I suggest you manually remove that directory the do a stop/start of the package and see if this fixes things.
root@DS118:/var/packages/tvheadend/var# rm -r '#recycle'
Restart Tvheadend, runs OK.
Setup
Package Name: Tvheadend Package Version: 4.3.20211121-31
NAS Model: Synology DS118 NAS Architecture: RTD1296 DSM version: 7.0.1-42218
Expected behavior
After update from earlier version Tvheadend should run and connect to port 9981.
Actual behavior
Tvheadend runs and then stops
Steps to reproduce
1. 2. 3.
Package log
Setup
Package Name: Package Version:
NAS Model: NAS Architecture: DSM version:
Expected behavior
Tell us what should happen
Actual behavior
Tell us what happens instead
Steps to reproduce
Uninstall Tvheadend (keep data), Python 3.1 (delete data) and ffmpeg (delete data). Reinstall all. Run Tvheadend
Package log
_Installer log: find logfile
/var/log/packages/{package}.log
, for DSM<6:/var/packages/{package}/target/var/{package}_installer.log
and protocol in Package Center. You find service log and other log files in/var/packages/{package}/target/var
. _Other logs
E.g.
/var/log/messages
or/var/log/synopkg.log