Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology
Added by Mirko Soukup about 7 years ago
Hello,
I installed tvheadend-testing on my synology. It works really great but if I restart tvheadend or my synology I have to configurate tvheadend again. I don't have any idea why tvheadend does not keep the configuration.
I run tvheadend on DSM 6.1.3
Please help me.
Kind regards
Mirko
Replies (7)
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Stewart Finlay about 7 years ago
Hello I'm having similar problems.. Just re-edited this post since at first i thought it was restart to the TVH process, but in fact it is happening after restart to the server (as you had mentioned).
It happens after every restart of the Synology server.
I lose almost 80% of my channels and configurations, and in fact it just happened again after me spending 1 week configuring all my channels and epg and icons etc :-(
Also worth mentioning that the 20% of channels and configuration that remains is always the exact same each time i restart the Synology server.
It seems it's grabbing some previously stored configuration and not the currently updated configuration.
Any help on this issue would be great.
TVH version 4.3.28042017 running on Synology DS2415+ DSM version 6.1.3 (latest)
In the meantime while we await a solution, it's interesting to note that I saved the TVH working configuration directory away (in my case /volume2/@appstore/tvheadend-testing/var, but normally it is on volume1 by default) and restored that after the restart, restarted the process and my configuration changes remained intact.
So something is causing the configuration data to be removed following a restart to the NAS.
To help you out of your immediate issue, you can backup your TVH config directory via tar command and then restore it after the restart to the NAS.
example:
before restarting the NAS:
login to your synology as root user via SSH.
cd /volume1/@ppstore/tvheadend-testing
tar cvf config_backup.tar var
restore after restarting the NAS:
login to your synology as root user via SSH.
cd /volume1/@ppstore/tvheadend-testing
tar xvf config_backup.tar
you can then use the GUI to stop/start the process again.
Your config changes should now be back again.
Note: make sure to restart your tv clients too at this stage, so that they get the updated info.
BR
Stewart
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Mirko Soukup about 7 years ago
Hello Stuart,
I solved the problem for me. I changed the access privileges to 777 for "/volume1/@ppstore/tvheadend-testing". Tvheadend didn't save any configuration to its folder. With the privileges of 777 I solved my problem...
PS: I know that my solution is sounds probably more like a workaround.... But it works!
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Brandon Shermer about 7 years ago
I have the same problem and chmod 777 didn't fix it. Every time I configure and stop the service, I go back to the wizard and square 1. Any help would be awesome! Same version as the original post.
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Brandon Shermer about 7 years ago
Mirko Soukup wrote:
Hello,
I installed tvheadend-testing on my synology. It works really great but if I restart tvheadend or my synology I have to configurate tvheadend again. I don't have any idea why tvheadend does not keep the configuration.
I run tvheadend on DSM 6.1.3
Please help me.
Kind regards
Mirko
I actually just got it to save for the first time on the latest version!
Download the braswell Version 4.1.2437-1, and manually install.
The since I had the repo added on the synology it wanted to update (which I didn't right away).
I launched it and configured some settings as a test. Rebooted, everything was still there.
Then updated through the Synology to the 4.4 version. And made a few more changes. Rebooted,
and BOOM BABY. It saved. I am adding some channels and will run it through its paces (several reboots) and report back.
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Ludi K. about 7 years ago
I think it is a problem of the syno package not setting up correct privileges on the installed files. By running the chown command on the tvheadend folder in the @appstore folder, the problem should get solved. On my Synology, tvheadend runs under the user sc-tvheadend.
You might have a look at #5482 .
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Ludi K. about 7 years ago
It might be related to the following issue of the framework to cross compile packages for the Synology:
https://github.com/SynoCommunity/spksrc/issues/2216
RE: Tvheadend 4.4.20170707 doesn't load configuration after restart of Synology - Added by Stewart Finlay about 7 years ago
Brandon Shermer wrote:
Mirko Soukup wrote:
Hello,
I installed tvheadend-testing on my synology. It works really great but if I restart tvheadend or my synology I have to configurate tvheadend again. I don't have any idea why tvheadend does not keep the configuration.
I run tvheadend on DSM 6.1.3
Please help me.
Kind regards
MirkoI actually just got it to save for the first time on the latest version!
Download the braswell Version 4.1.2437-1, and manually install.
The since I had the repo added on the synology it wanted to update (which I didn't right away).
I launched it and configured some settings as a test. Rebooted, everything was still there.
Then updated through the Synology to the 4.4 version. And made a few more changes. Rebooted,
and BOOM BABY. It saved. I am adding some channels and will run it through its paces (several reboots) and report back.
Sorry for the late response, been rather busy lately :)
I don't doubt that version 4.1 is working and stable as I had previous version 4.0 and that was stable. It's more the ability to have a later version with all the advancements that is stable on Synology. In fact anything pre 4.2 is obsolete already. the advancements (both fixes and improvements) in the versions you can see here: https://tvheadend.org/projects/tvheadend/roadmap
I have in the meantime changed my directory permissions to 777 as Mirko had written, I have not actually checked to see if that works or not because after finding the problem iI got to work on some automated scripts for both backup and restoration of the system, together with a bunch of other automated tasks that I wanted to add in, so the problem currently doesn't exist for me.
I did read some literature related to the testing releases (like the one in question here) and they do state that they are unstable and to use at your own risk. They also mention to make sure you have a backup That said it would be handy to have a 4.4 non testing release i.e. one that is stable & that would work for our Synology servers.