Project

General

Profile

Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0

Added by Rene Arts over 6 years ago

Current version DSM 6.0-7321 Update 3

Since I installed the update to TVHeadend-testing 4.1.1923-2 (syno.dierkse.nl) on my Synology NAS I am not able to login on TVHeadend. At the end of the install procedure a wizard ask for a admin account name and password (default admin;admin) but I cannot login using these credentials. I tried reinstalling TVHeadend, changing the credentials but it did not solve the problem.
I also altered the start-stop-status script to start with -C, which works one time. I get the TVHeadend setup wizard, walked through it and I also assigned a user account name and password (tried altering and not altering the admin account as well). After I logout or restart TVHeadend I still cannot login. Starting with --noacl also did not really solve anything (could login once, after removing and configuring admin and user accounts not anymore).

Is this a TVHeadend problem or is it related to the Synology package, and most important, how to solve this?


Replies (28)

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Mark Clarkstone over 6 years ago

Do you have a superuser file in your config directory?

if not, create one..

{
"username": "USERNAME",
"password": "PASSWORD",
}

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Rene Arts over 6 years ago

Yes I tried that. After searching a bit more it seemed to me like a rights issue (all files were root:root, which they shouldn't be as TVHeadend in that case cannot access them to appy changes...). After correcting the right with the lines from the installer script everything seems to work again :)

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

I have the same problem just after update to 4.1.2436-1, can you explain for dummies what did you do to solve it?
Well not exactly the same problem, I only update the package in package center, and after that can not login with admin password and can not also with user password.
My current version is DSM 6.1-15047 Update 2

thanks

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Rene Arts over 5 years ago

I have been having these issues after updates as well. Just make sure to set the right file permissions by logging in via ssh.
Currently not at home, the next time I have to do this I will provide a short howto.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

ok thanks, it is a waste of time having to install everything from the beginning, I´ll wait for somebody to tell me which are the files and the permissions I must change via SSH.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Rene Arts over 5 years ago

This might be your lucky day... I just got an update as well, so here we go :)

ssh into your Synology NAS, then navigate to /usr/local/tvheadend-testing
check the file permissions and ownership, in my case the files now were owned by sc-tvheadend-testing

then change the file ownership to the desired user:

sudo chown -R tvheadend-testing:users .
and set permissions (this one might be a bit dangerous, though tvheadend does work...)
sudo chmod -R 777 .

This works for me, I cannot guarantee anything and it's your own risk ;-)

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

Thank you very much, for some reason I am not root and I can not see usr directory even login as administrator. Second problem is I don't understand who must be the correct user, you say in your case the files were owned by sc-tvheadend-testing, and I'm wondering if that is not the user who should be?,
Finally how I set permissions, yes I am newbie with linux. :)

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Steve Black over 5 years ago

This procedure worked for me, though I had to restart TVH before it did. I was trying to do it in phases with less fiddling with permissions, but without success until I went the full 777 monte and then restarted. If someone finds a lower permission level works (744, 755) they should post that info here. Of course, I'm still holding my breath for a production release someday which will mean starting over anyway.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

ok thank you, I think I understand the process now, will try when arrive home. Many thanks again.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Rene Arts over 5 years ago

Same here, had to fiddle around quite a bit with permissions and ownership. I previously already reinstalled a few times hoping it would upgrade without problems, but no dice.
@Victor, you might want to make sure you know what you are doing in SSH, as admin you should be able to navigate all folders afaik. CHanging OWNership is done with chown, CHanging MODe (permissions) is done with chmod. Navigating files and folders I leave as an exercise, I recommend you to follow a short command line tutorial if you really do not know what you are doing :)

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

I already ssh as admin and find /usr/local/tvheadend-testing, check the file permissions and ownership, is owned by sc-tvheadend-testing

Open a terminal and write:
sudo chown -R tvheadend-testing:users
I receive the following error:

/usr/local/tvheadend-testing$ sudo chown -R tvheadend-testing:users

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

sudo: no tty present and no askpass program specified

Any ideas???

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

I decide to uninstall tvheadend and start from de beginning, and the surprise is that after a fresh install I have the same problem, I can not login with admin and password that I fill on the installation.
This is not good, what can I do now???

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Koen De Buck over 5 years ago

Could this be the solution?

https://tvheadend.org/boards/5/topics/10013?r=16211#message-16211

look for the answer from Andrew Johnson, and change osmc for your user.

For me this was the solution, now I'm looking to give permission to record on USB.
regards, Koen.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Giuseppe Sicilia over 5 years ago

tvh v4.1.2409 was my first install. Installing first time tvh, its created automatic user tvheadend and tvheadend-testing. Now with v4.1.2436, tvh want to use sc-tvheadend or something else.

With hint from rene arts i checked chown of files. I previously backuped tvh v4.1.2409 and i could see, previous file-owner was tvheadend:users, now with update it was sc-tvheadend:root.
I changed with -R to tvheadend:users, thanks to Rene. All files in /volume1/@appstore/tvheadend-testing.
Login already did not worked... so i checked the file /var/packages/tvheadend-testing/scripts/start-stop-status. The function start_deamon starts tvheadend with SC_USER = sc-tvheadend. I changed SC_USER and LEGACY_USER (on top) to ="tvheadend". This way, tvh starts every time with user "tvheadend" AND can use the files without chmod -R 777!

Short way:
chown -cR tvheadend:users /volume1/@appstore/tvheadend-testing
vi /var/packages/tvheadend-testing/scripts/start-stop-status

change SC_USER to SC_USER="tvheadend", do the same with LEGACY_USER="tvheadend".

It works for me. My first install was 4.1.2409. If you are comming from older version it could be, that you have to do other/additional steps. Check if you have the user tvheadend and tvheadend-testing in DSM. If so, we have the same base.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

Giuseppe Sicilia wrote:

tvh v4.1.2409 was my first install. Installing first time tvh, its created automatic user tvheadend and tvheadend-testing. Now with v4.1.2436, tvh want to use sc-tvheadend or something else.

With hint from rene arts i checked chown of files. I previously backuped tvh v4.1.2409 and i could see, previous file-owner was tvheadend:users, now with update it was sc-tvheadend:root.
I changed with -R to tvheadend:users, thanks to Rene. All files in /volume1/@appstore/tvheadend-testing.
Login already did not worked... so i checked the file /var/packages/tvheadend-testing/scripts/start-stop-status. The function start_deamon starts tvheadend with SC_USER = sc-tvheadend. I changed SC_USER and LEGACY_USER (on top) to ="tvheadend". This way, tvh starts every time with user "tvheadend" AND can use the files without chmod -R 777!

Short way:
chown -cR tvheadend:users /volume1/@appstore/tvheadend-testing
vi /var/packages/tvheadend-testing/scripts/start-stop-status

change SC_USER to SC_USER="tvheadend", do the same with LEGACY_USER="tvheadend".

It works for me. My first install was 4.1.2409. If you are comming from older version it could be, that you have to do other/additional steps. Check if you have the user tvheadend and tvheadend-testing in DSM. If so, we have the same base.

Sorry but I don't understand long explanation and neither short way. This is driving me crazy, Please may you explain de short way but step by step. I was able to reinstall again and configure everything but when I stop service and restart it again same problem with login.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Giuseppe Sicilia over 5 years ago

After reinstall, which user is created automatically? tvheadend? sc-tvheadend?
Maybe there is more than one reason for your issue. I had the login fault every time, after reboot and reinstall.
Do you have checked chown of files?

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

Giuseppe Sicilia wrote:

After reinstall, which user is created automatically? tvheadend? sc-tvheadend?
Maybe there is more than one reason for your issue. I had the login fault every time, after reboot and reinstall.
Do you have checked chown of files?

after reinstall user is tvheadend-testing, if I look into users in synology control panel, but entering by ssh the file's owner is sc-tvheadend-testing.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Giuseppe Sicilia over 5 years ago

Ok, now you have to Login via ssh and enter the following command:
chown -cR tvheadend:users /volume1/@appstore/tvheadend-testing

Follow the other step regarding start-stop-status script

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Steve Black over 5 years ago

Just got the 4.1.2437-1 update. Perhaps this issue is being worked. Can't exactly tell since I've already fiddled with it.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Michael Bihler over 5 years ago

The version 4.1.2437-1 fixes this issue!

Problem was an error in the install script of the package: The configured user for startup of tvheadend was wrong and had no access to the configuration directories.

One thing I had to do on my box to access the recordings again:

I added the new user sc-tvheadend-testing to group "users".
Actually there was only the "wrong user" "tvheadend-testing" in this group,…

I did this by directly editing the /etc/group file because there is no usermod command on my synology box (DSM 6.1).

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by VenimK Mac over 5 years ago

Michael Bihler wrote:

The version 4.1.2437-1 fixes this issue!

Problem was an error in the install script of the package: The configured user for startup of tvheadend was wrong and had no access to the configuration directories.

One thing I had to do on my box to access the recordings again:

I added the new user sc-tvheadend-testing to group "users".
Actually there was only the "wrong user" "tvheadend-testing" in this group,…

I did this by directly editing the /etc/group file because there is no usermod command on my synology box (DSM 6.1).

Ah great
Now it works again as it should

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

Luc de cock wrote:

Michael Bihler wrote:

The version 4.1.2437-1 fixes this issue!

Problem was an error in the install script of the package: The configured user for startup of tvheadend was wrong and had no access to the configuration directories.

One thing I had to do on my box to access the recordings again:

I added the new user sc-tvheadend-testing to group "users".
Actually there was only the "wrong user" "tvheadend-testing" in this group,…

I did this by directly editing the /etc/group file because there is no usermod command on my synology box (DSM 6.1).

Ah great
Now it works again as it should

I have update to new tvheadend version and still can not login, may you explain me what exactly have to do to add a new user sc-tvheadend-testing to group users?

Many thanks

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

Every time that I start from the beginning, unistall tvheadend, restart synology, install tvheadend again, config everything, admin with password, etc, it is ok and working until I stop service and re-start it again, then again can not login with admin password. This is so annoying!!!!

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Victor Gallego over 5 years ago

ok thanks to everybody, I got working now, finally re-install from the begginnig using new password and users.

RE: Cannot login on TVHeadend-testing 4.1.1923-2 on Synology with DSM6.0 - Added by Martin Walter over 5 years ago

If you want to give it a try, here are Synology test packages for Tvheadend 4.2.1 release which fixed the user permission issue for me:

https://www.dropbox.com/

But - as always - backup first...

Edit: Dropbox link removed, as these test packages are available on the SynoCommunity repo as beta now (or very soon). Please just download from there instead.

(1-25/28)