installation problem tvheadend on DSM 6.2
Added by Viper 9000 almost 6 years ago
Hello,
I recently updated to DSM 6.2 and cannot use tvheadend anymore.
Background:
- updated my NAS from DSM 5.2 to 6.1.7 to 6.2
- previous I run several years the tvheadend-testing
After the update tvheadend did not start anymore
- I uninstalled tvheadend due to an update was not possible
- I tried tvheadend testing 4.4 and tvheadend 4.08.
- I had every time the same problem I could not logon to the webui
- I deleted tvheadend-testing user. The user was not recreated by Setup.
- I tried several chown and chmod commands on the the tvheadend folders.
I hope somebody of you can give me an advice which procedure I have to follow to get tvheadend running again.
Thank you in Advance
Viper
Replies (9)
RE: installation problem tvheadend on DSM 6.2 - Added by Martin Walter almost 6 years ago
Very likely your permissions are screwed up. There is a whole thread on this here:
https://tvheadend.org/boards/5/topics/27780
Read it, especially earlier thread entries speak a lot about these problems.
Overall, I'd recommend deinstalling all kind of tvheadend versions you've had completely, rebooting your NAS and starting from scratch, using the latest 4.2.7 version from Synocommunity. You need a clean starting point. If that does not work, come back reporting what exactly went wrong when.
Update: Use the latest 4.2.7 version, initial post wrong
RE: installation problem tvheadend on DSM 6.2 - Added by Viper 9000 almost 6 years ago
Hello Martin,
thank you very much for the link. Last night and this moring I found other links and I tried several things like this (my statements are valid for both versions
tvheadend 4.0.8
tvheadend-testing 4.4.20180726-1
I uninstalled tvheadend - rebooted
I checked the folder under /var/packages/tv-headend-testing, volume1/@appstore are gone.
I deleted the tvheadend-testing user in Syno
I installed tvheadend again.
No user where created. I created the user manually.
I run the chown and chmod command for tvheadend-testing and checked the ownership and rights on those folders.
I added the -C command parameter in the start-stop-status.
At the end I am able to put in username/password but afterwards I got a blank page.
What I found out this morning was that maybe this has something to do with the webui folder and some old folders/configs.
So can you tell me where I have to check on Syno for the WebUI folder and where I have to check additional that all old settings are gone. I read something like .hts/tvheadend but I don't know where I will found this folder.
Nevertheless thank you very much for your response I will test with the install package in your mentioned thread and will come back with a feedback.
Do you know where I can found any log. My apologies I do not have huge linux knowledge.
Thank you in advance
Viper
RE: installation problem tvheadend on DSM 6.2 - Added by Martin Walter almost 6 years ago
Hi Viper,
Seems we are in different time zones, which slows down communication. I believe I can help you, but in that case I need you to follow my recommendations and not to mix in (outdated) stuff that you find elsewhere. I'm pretty sure your premissions are messed up already. No use it making it worse.
So, I'd try this:
(1) Again, please uninstall whatever tvheadend version you have installed in the meantime. If you still have some kind of tvheadend-related users on your system, which you can see, please remove them as well. Then reboot your NAS.
(2) Download the TVHeadend 4.2.7-14 package matching your NAS platform from the link here:
https://synocommunity.com/package/tvheadend
Do not install anything from another source, please. If you are not sure which architecture / package matches your NAS, you can look the architecture up here:
https://github.com/SynoCommunity/spksrc/wiki/Architecture-per-Synology-model
(3) The package should install. When it asks you for user name and password, just keep the default values (admin, admin) for now.
(4) If the package installs, run it and try to log in with admin / admin. If it does work, be happy, continue with the standard configuration and don't forget to change your password later on.
(5) If it does not work, report what the error is here.
(6) Then we need diagnostics. For that:
(a) Stop the TVH package from running in the DSM package manager.
(b) Log into your NAS via ssh as admin (using your root password)
(c) Gain root priviledges via sudo su - (using the same root password again)
(d) Execute cd /usr/local/tvheadend/var via your ssh terminal. Then...
(e) Execute ls -la /var/packages/tvheadend/target and report the output here.
(f) Execute synoacltool -get "/var/packages/tvheadend/target" and report the output here.
(g) Execute cat tvheadend_install.log and report the output here (use pastebin or something, if the file is longer than a couple of lines).
(h) Execute cat tvheadend.log and report the output here (or via pastebin).
(i) Some of the files might not be found / not exist. No problem, just let me know.
That should give me a pretty good idea what's wrong. Don't do anything else, please. Just report and leave tvheadend alone for the time being...
RE: installation problem tvheadend on DSM 6.2 - Added by Viper 9000 almost 6 years ago
Hello Martin,
thank you for your response. I followed your instructions.
1) deleted and uninstalled previous versions
2,3,4 done
5) open the url servername:9981. I was asked for username/Password. It was accepted and I got a blank page again. URL servername:9981/extjs.html. No menu or something else was shown.
ash-4.3# cd /usr/local/tvheadend/var
ash-4.3# ls -la /var/packages/tvheadend/target
lrwxrwxrwx 1 root root 28 Dec 6 23:22 /var/packages/tvheadend/target -> /volume1/@appstore/tvheadend
ash-4.3# synoacltool -get "/var/packages/tvheadend/target"
(synoacltool.c, 359)It's Linux mode
ash-4.3# cat tvheadend_install.log
Thu Dec 6 23:22:18 CET 2018
===> Step preinst. USER=tvheadend GROUP=sc-media SHARE_PATH=
Thu Dec 6 23:22:19 CET 2018
===> Step postinst. USER=tvheadend GROUP=sc-media SHARE_PATH=
Installing service configuration /var/packages/tvheadend/conf/tvheadend.sc
Adding 'sc-tvheadend' to 'sc-media'
Group Name: [sc-media]
Group Type: [AUTH_LOCAL]
Group ID: [65540]
Group Members:
0:[sc-tvheadend]
Invoke service_postinst
Fixing fontconfig links
ash-4.3# cat tvheadend.log
Thu Dec 6 23:22:20 CET 2018
Starting tvheadend command /volume1/@appstore/tvheadend/bin/tvheadend -f -u sc-tvheadend -g tvheadend --http_port 9981 --htsp_port 9982 -c /volume1/@appstore/tvheadend/var -p /volume1/@appstore/tvheadend/var/tvheadend.pid
Thanks Viper
RE: installation problem tvheadend on DSM 6.2 - Added by Martin Walter almost 6 years ago
Well, it seems to be running. Do you use Noscript or something similar that is blocking access the TVH webinterface on your server in your browser? What happens if you copy the same address into a different browser? Does it work then?
RE: installation problem tvheadend on DSM 6.2 - Added by Martin Walter almost 6 years ago
Or do you block http access to your NAS, just allowing https?
RE: installation problem tvheadend on DSM 6.2 - Added by Viper 9000 almost 6 years ago
Hello Martin,
I tested the logon from two different clients, from mobile and with different browsers. It didn't work. Due to I got the username/password dialog http is not blocked. I did not change anything on the client side since the update. Before everything worked fine for more than two years.
Maybe I have a problem like this:
https://tvheadend.org/boards/5/topics/19522
https://docs.tvheadend.org/Appendices/faqs/
https://discourse.osmc.tv/t/tvheadend-web-ui-not-opening/74012/5
https://discourse.osmc.tv/t/tvheadend-client-not-connecting/72436/8
I will check this evening whether this path exists:
/usr/share/tvheadend/src/webui/static/ -> is it valid for Syno as well?
Additional whats about this one, I know it is not syno based but the /.hts is valid for Syno as well?
sudo systemctl stop tvheadend
sudo rm -R /home/osmc/.hts
sudo systemctl start tvheadend
Thanks in advance
Viper
RE: installation problem tvheadend on DSM 6.2 - Added by Viper 9000 almost 6 years ago
Hello,
I checked my NAS.
I found the webui source files under:
/volume1/@appstore/tvheadend/share/tvheadend/src/webui
I could not found the files under the mentioned path of the tvheadend docs. (second link)
This usually happens when Tvheadend is installed incorrectly. As a start, make sure that the web interface path /usr/share/tvheadend/src/webui/static/ exists and isn’t empty.
Can somebody check whether you found the files under /usr or not.
Thank you
Viper
RE: installation problem tvheadend on DSM 6.2 - Added by Martin Walter almost 6 years ago
I don't think that the package is installed incorrectly. Let's dig further.
Please use ssh to log into your NAS again and obtain root priviledges (as before). Then
1) Execute cd /usr/local/tvheadend/var/accesscontrol
2) Execute ls -la and report the result here
3) Execute cd ../passwd
4) Execute ls -la and report the result here
5) Log into your NAS using the web-interface, enter into the package manager and stop the TVHeadend package from running. Don't deinstall, just stop it.
6) Go back into the ssh session you used before and start tvheadend manually, by executing the following command (copy and paste, this needs to go into one line):
/volume1/@appstore/tvheadend/bin/tvheadend -u sc-tvheadend -g tvheadend --http_port 9981 --htsp_port 9982 -c /volume1/@appstore/tvheadend/var -p /volume1/@appstore/tvheadend/var/tvheadend.pid
7) You should see some output. Scroll up and down and see whether you can spot any indicators for errors or anything that goes wrong. Report this here. If you cannot spot anything, continue...
8) Open your browser and enter try to log into the TVHeadend web-interface by entering the following URL:
http://[your server IP address]:9981/extjs.html
9) Log in via admin / admin
10) I assume you still see the blank page
11) Go back into your ssh window and examine the additional output that TVheadend has generated in the meantime. Copy & paste it via pastebin (or a similar site) and report the link here, so that I can look at it.