Kodi Community Forum
TVHeadend not letting me in - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168)
+---- Thread: TVHeadend not letting me in (/showthread.php?tid=125011)



TVHeadend not letting me in - gsi095 - 2012-03-08

hi,

I install XBMCbuntu, updated to the PVR build from packages.pulse-eight.net and went to configure TVHeadend and I get a log in screen.

I have tried xbmc/xbmc, the user login details, but keep getting "The server localhost:9981 requires a username & password. The server says: TVHeadend"

I did the reconfigure utility via terminal and changed the user and password but keep getting this same reply.

Am I doing something wrong??

Dave


- LastCoder - 2012-03-08

Sorry, have no idea .. try to ask in the tvheadend forum (https://www.lonelycoder.com/redmine/projects/tvheadend/boards)

Greetz

LastCoder


- j1nx - 2012-03-08

1st figure out under which user the tvheadend is running;
Quote:#ps ax | grep tvheadend
You will get out such as;
Quote:2140 ? Ssl 3:55 /usr/bin/tvheadend -f -u hts -g video
32238 pts/1 R+ 0:00 grep --color=auto tvheadend
There you will see, it runs as user "hts" (-u hts)

Go into the hts config folder for that user;
Quote:cd /home/hts/.hts/tvheadend/
Here are all setting stored. But also the config of the super user. You need to be root, so under ubuntu for instance;
Quote:sudo cat superuser
You will get an output like;
Quote:{
"username": "gsi095",
"password": "forgotthedamnthing"
}

Use those to get into the webadmin and do your things.


RE: TVHeadend not letting me in - opdenkamp - 2012-03-17

or just run:
sudo dpkg-reconfigure tvheadend

you'll be asked to enter a new password.


RE: TVHeadend not letting me in - babca - 2012-05-07

I had a similar issue, and found this:
Quote:create a file calles "1" with following content in the ~/.hts/tvheadend/accesscontrol/ directory
Code:
{
        "enabled": 1,
        "username": "*",
        "password": "*",
        "comment": "Default access entry",
        "prefix": "0.0.0.0/0",
        "streaming": 1,
        "dvr": 1,
        "webui": 1,
        "admin": 1,
        "id": "1"
}

source:
http://openelec.tv/forum/36-solved-bug-reports/3119-solved-bricked-tvheadend-manual-editing-users
http://www.lonelycoder.com/redmine/issues/166

For some reason the ~/.hts/tvheadend/accesscontrol/ directory had gone, so I had to create it again incl. the '1' file and it's OK now.


RE: TVHeadend not letting me in - nobleach - 2012-09-14

(2012-03-17, 12:59)dushmaniac Wrote: or just run:
sudo dpkg-reconfigure tvheadend

you'll be asked to enter a new password.

It doesn't matter how many times I try this, it doesn't let me in. I can see the username and password in the file, so I know I'm typing it correctly.

Does it not allow my to connect from a remote host? I can't connect from localhost, it doesn't have a web browser.


RE: TVHeadend not letting me in - Prof Yaffle - 2012-09-15

Have you played with the IP address config at all? Could it be that you're connecting from a PC that doesn't have admin rights because of its IP address?

I can't remember off the top of my head, but I wonder if tvheadend defaults to localhost unless you change it... so are you connecting from the machine hosting tvheadend, or a different one?

Have a look at ~/.hts/tvheadend/accesscontrol and see what's in there...


RE: TVHeadend not letting me in - nobleach - 2012-09-15

Yep, originally had it set to 0.0.0.0/0. I changed it to 192.168.1.0/24 just to see if it would change the outcome. I also SSHed in and used lynx to localhost:9981. It fails just the same.

Unless there's somewhere else to change it.


RE: TVHeadend not letting me in - thatsenough - 2012-09-16

Try start tvheadend with -C. This will create a user account with no username/password if no user exists already. Then you can get access and create a new user.

That did it for me.



RE: TVHeadend not letting me in - lachs - 2013-01-07

(2012-09-15, 00:20)nobleach Wrote: Yep, originally had it set to 0.0.0.0/0. I changed it to 192.168.1.0/24 just to see if it would change the outcome. I also SSHed in and used lynx to localhost:9981. It fails just the same.

Unless there's somewhere else to change it.

I had the same problem but when i ran:

cat /home/username/.hts/tvheadend/accesscontrol/1

it displayed:

root@LachsMC:/home/lachs/.hts/tvheadend/accesscontrol# cat 1
{
"enabled": 1,
"username": "xbmc",
"password": "xbmc",
"comment": "Default access entry",
"streaming": 1,
"dvr": 1,
"dvrallcfg": 1,
"webui": 1,
"admin": 1,
"id": "1"
}

showing me that despite setting up my own password with the initial tvheadend config it is using xbmc/xbmc as the user/pass still...
Hope this helps...


RE: TVHeadend not letting me in - shess757 - 2013-09-17

(2013-01-07, 02:52)lachs Wrote:
(2012-09-15, 00:20)nobleach Wrote: Yep, originally had it set to 0.0.0.0/0. I changed it to 192.168.1.0/24 just to see if it would change the outcome. I also SSHed in and used lynx to localhost:9981. It fails just the same.

Unless there's somewhere else to change it.

I had the same problem but when i ran:

cat /home/username/.hts/tvheadend/accesscontrol/1

it displayed:

root@LachsMC:/home/lachs/.hts/tvheadend/accesscontrol# cat 1
{
"enabled": 1,
"username": "xbmc",
"password": "xbmc",
"comment": "Default access entry",
"streaming": 1,
"dvr": 1,
"dvrallcfg": 1,
"webui": 1,
"admin": 1,
"id": "1"
}

showing me that despite setting up my own password with the initial tvheadend config it is using xbmc/xbmc as the user/pass still...
Hope this helps...

Had same problem tried xbmc/xbmc and it worked, just wanted to update this post.


RE: TVHeadend not letting me in - martyn379 - 2015-01-11

Dear all,

I am a new user to Kodi but played around with XBMC for a while - never really getting it to work properly for me.

In addition to the issues above - I followed the instructions to find that the hts user wasn't in fact running tvheadend on my system. I don't know if this is a quirk of the Ubuntu setup I am using but it was using the user name set up during *buntu installation.

By using
Code:
ps ax | grep tvheadend


as suggested I accidently discovered that.

When looking through that users home directory there was the 'hts hidden file with all the settings in the subdirectories as already described. If you find your setups are not behaving it might be worthwhile checking your own home folder if you have one.

Best wishes

Martyn.


RE: TVHeadend not letting me in - negge - 2015-01-14

@martyn379 uninstall tvheadend completely and install it from the apt repository. I recommend using the "unstable" version, it's not really unstable but packs a ton of new features and fixes.


RE: TVHeadend not letting me in - martyn379 - 2015-01-14

negge - thanks I shall try that...