Project

General

Profile

:9981 browser interface

Added by Peter Ormrod over 10 years ago

Just started working with TVHeadend - where have the configuration options of extjs.html page gone?

I did see them but not now - all I have is the EPG and About top menus.... It looks like I have lost my admin rights, not familiar with navigating the page. Is there a login somewhere?


Replies (9)

RE: :9981 browser interface - Added by Prof Yaffle over 10 years ago

You don't say what platform you're on - if it's Debian-based, dpkg-reconfigure tvheadend will allow you to set up a new admin user. If it's not, or if that doesn't work, look at your hts home directory and you'll find access control rules and a file that contains your superuser details. All are editable text files.

You may want to clear your browser's cache as well so it forces a login if one is appropriate. I don't know how much floundering you've done, but you may have added a universal access rule without admin rights, though, so you'll probably need to delete or disable that before an admin login will work.

RE: :9981 browser interface - Added by Peter Ormrod over 10 years ago

Thanks for the reply. Running Ubuntu. OK, Ill enter my superuser details. The 0.0.0.0/0 has me confused - is that universal IP access?

Also having setup VLC with HTSP, will that listen to broadcasts and streams from TVHeadend On port 9981?

Finally, having no joy with my XBMC add-on. not connecting.

Peter

San Sebastian

RE: :9981 browser interface - Added by Prof Yaffle over 10 years ago

Yes, 0.0.0.0/0 means "all IP addresses, all subnets". So if you have an access control rule defined for that, and that rule doesn't have admin privileges, then that's likely to be your problem.

If you like, post the contents of /home/hts/.hts/tvheadend/superuser and also all files in /home/hts/.hts/tvheadend/accesscontrol. Your XBMC problem will almost certainly be related.

VLC/HTSP... no idea, I'm afraid, not something I've ever used. I suspect it simply relays whatever it's tuned to, so VLC will lock onto :9981/streams/channel/xyz and that's what it'll then broadcast.

RE: :9981 browser interface - Added by Peter Ormrod over 10 years ago

Thank you again:

Here is my superuser file: {
"enabled": 1,
"username": "petero",
"password": "es******",
"comment": "New entry",
"prefix": "0.0.0.0/0,::/0",
"streaming": 1,
"dvr": 0,
"dvrallcfg": 0,
"webui": 1,
"admin": 1,
"id": "1"
}
================0
and my access control file

{
"enabled": 1,
"username": "*",
"password": "*",
"comment": "New entry",
"prefix": "0.0.0.0/0,::/0",
"streaming": 1,
"dvr": 0,
"dvrallcfg": 0,
"webui": 1,
"admin": 0,
"id": "1"
}

=======0

Peter

RE: :9981 browser interface - Added by Prof Yaffle over 10 years ago

Look at the second file - it's matching all logins ("*/*") from anywhere ("0.0.0.0/0") and not granting admin ("admin: 0").

Change it to "admin": 1, and every user from everywhere now has admin rights. That'll get you going again.

TBH, your access rules aren't pretty since they're both universal IP access and you've disabled DVR and DVRConfig in both. But you can fix that if you can get access again!

RE: :9981 browser interface - Added by Peter Ormrod over 10 years ago

Struggling here - I have read a start service option -acl launches tvheadend as a first run without any access limitations. Have not been able to do this via command line. Also a -C to do the same Ditto no joy.

What is the CLI command to run this service without access control?

(With my mythubuntu install account I cannot delete the files in the accesscontrol dir to remove some duff characters which keep appearing when using Xfce Terminal.)

RE: :9981 browser interface - Added by Prof Yaffle over 10 years ago

Put the -C into TVH_ARGS in the config file /etc/default/tvheadend, i.e.

# TVH_ARGS
#   add any other arguments
TVH_ARGS="-C" 

This is brutal, though, as it switches off access control but doesn't fix the problem. If you need to edit the config files, do it as hts (I'm assuming here that all is installed as a normal 'buntu package):

sudo su hts
<your password>

I'm just wondering what would happen if you:

1. Shut down tvheadend:

sudo service tvheadend stop
<your password if prompted>

2. Remove the access control files:

sudo su hts
<your password if prompted>
cd ~/.hts/tvheadend/accesscontrol
mkdir /tmp/tvheadendbackup
mv * /tmp/tvheadendbackup
exit

(if something goes wrong, you can restore the access control rules since you have a backup)

3. Reconfigure the package to reset your superuser credentials:

sudo dpkg-reconfigure tvheadend
<provide new credentials>

4. Restart

sudo tvheadend start

5. Clear your browser cache and cookies related to tvheadend

6. Navigate to the web page and log in with the details from (3)

RE: :9981 browser interface - Added by Peter Ormrod over 10 years ago

I appreciate your help. I was going to say all well having done the above - however on restart the page now asking for login and using my mythbbuntu credentials and the hts with a password that I changed in Terminal (I did not find the default password) I cannot now open the page. Up to restart all was well.
BTW I downloaded a test .mkv file and created a video directory but before restart could not see it in list of recordings.

Thought for on above is that it is looking for a access file which is no longer there (moved as per your instruction). However -C flag has been added.

============
Solved

Added access file

RE: :9981 browser interface - Added by Prof Yaffle over 10 years ago

Thanks for the update - glad you got it working.

I'm surprised that the absence of an accesscontrol file breaks it... I'd have expected dpkg-reconfigure to reset that if it was needed, otherwise the username/password you provided in the reconfigure should let you in (this isn't your Mythbuntu login or the hts user, by the way - it's an independent name/password pair that then stored in the superuser file).

It was probably MythTV fighting back :)

    (1-9/9)