Project

General

Profile

Cannot access remotely

Added by Mike Fellows over 11 years ago

Just done a clean install of ubuntu 13.04 x64 and Tvheadend.

I initially started with the stable release and installed, everything worked fine except I couldn't access the admin pages remotely, I checked the access control and that was allowing all pages (I also made sure to enable it). still nothing.

I purged the install and changed the repo to unstable and reinstalled - this time I am not given the option of changing the login settings but all works correctly locally, again I am unable to access the admin pages remotely

remotely I am given connection reset error

Im guessing the settings that should have been purged from the initial install are somehow corrupt, where are these settings to I can remove them for a complete clean install?

does anyone have any other suggestions?

Thanks

Eta: IP Tables are all on allow and netstat confirms that tvheadend is running on 3391 3392


Replies (7)

RE: Cannot access remotely - Added by Prof Yaffle over 11 years ago

Have a look in /home/hts/.hts/tvheadend/accesscontrol. You'll find a file there, one per corresponding entry in the Configuration -> Access Control tab of the web interface (you know, the one that you can't access...).

Here's a sample of one of my rules:

hts@Server:~/.hts/tvheadend/accesscontrol$ ls -la
total 16
drwx------  2 hts video 4096 Mar 28 18:33 .
drwxr-xr-x 14 hts hts   4096 May  5 10:13 ..
-rwx------  1 hts video  195 Mar 28 18:33 1
-rwx------  1 hts video  192 Mar 28 18:33 2
hts@Server:~/.hts/tvheadend/accesscontrol$ more 2
{
        "enabled": 1,
        "username": "blob",
        "password": "blob",
        "comment": "Example entry",
        "prefix": "0.0.0.0/0",
        "streaming": 1,
        "dvr": 1,
        "dvrallcfg": 1,
        "webui": 1,
        "admin": 1,
        "id": "2" 
}

This allows blob ("username": "blob", "password": "blob"), to log in ("webui": 1) from anywhere (0.0.0.0/0 - safe on my LAN because it's isolated from the real world). It also grants the same user streaming, dvr and other access while you're there.

I'm not 100% clear on the relationship, but there's also the superuser file which contains the details of the user you create during the dpkg configure. On my system, it matches, i.e.

hts@Server:~/.hts/tvheadend$ ls -la super*
-rw------- 1 hts hts 43 Apr 19 19:12 superuser
hts@Server:~/.hts/tvheadend$ more superuser
{
"username": "blob",
"password": "blob" 
}

You can force the creation of the latter with a dpkg --configure, I think.

PS Have you tried accessing the file from the local system, rather than remotely? It would nail the problem down to network accessibility versus access control.

RE: Cannot access remotely - Added by Mike Fellows over 11 years ago

Hi,

Apologies didnt make it clear, I have full access locally so is purely a remote issue, with identical settings to yours.

machine also has sab, transmission, sickbeard and couchpotato running with no issues

Thanks

RE: Cannot access remotely - Added by Andy Furniss over 11 years ago

Mike Fellows wrote:

Eta: IP Tables are all on allow and netstat confirms that tvheadend is running on 3391 3392

You don't give network setup so guessing, did you also setup port forwarding / dnat on any router?

I assume you set it up to run on 3391 3391 defaults for me are 9981 9982.

If the above doesn't help maybe try starting with --noacl.

RE: Cannot access remotely - Added by Mike Fellows over 11 years ago

apologies I didnt change the ports, I meant 9981 and 9982 (not sure where I got 3391 from)

when I say remotely its local network only, no access from internet (so no router mods required)

I have tried to fire tvheadend up with the --noacl flag makes no difference.

RE: Cannot access remotely - Added by Prof Yaffle over 11 years ago

Only thoughts to me, then:

1. The network/mask in your access control file is wrong, or you're coming in from a different subnet in some way that's being refused (are you on the same subnet, can you force the access control rule to be specific to that IP address or range?)

2. Something is blocking http traffic, or that specific port, as it arrives at the server (can you access any other web pages or ports, if you have any? Can you ssh to the server?)

Okay, a couple of other random thoughts!

What are you getting when it doesn't work? 404, or something else?

Is the error coming from the server, or generated by the client?

Does tvh write anything to the system log that suggests it's seen and rejected the request?

Can you stream from tvh to, say, VLC on a remote machine, to check to see if any traffic is getting through?

RE: Cannot access remotely - Added by Mike Fellows over 11 years ago

Access Control File:

mike@Server:~/.hts/tvheadend/accesscontrol$ more 1 {
"enabled": 1,
"username": "*",
"password": "*",
"comment": "Default access entry",
"prefix": "0.0.0.0/0,::/0",
"streaming": 1,
"dvr": 1,
"dvrallcfg": 1,
"webui": 1,
"admin": 1,
"id": "1"
}

server is running on 192.168.0.250/255.255.255.0
local PC is running on 192.168.0.100/255.255.255.0

Sabnzbd, CouchPotato, Sickbeard, Webmin, Transmission and headphones all running web services on the machine with no issues. SSH works fine also

I have not yet attempted to stream from XBMC as I havent bothered to setup tvheadend properly yet as I cant access it remotely and I dont really wish to climb into the loft/attic space to work locally.

I get the following firefox error: The connection was reset - The connection to the server was reset while the page was loading (if I stop tvheadend, I get connection timed out).

RE: Cannot access remotely - Added by Mike Fellows over 11 years ago

Hold your horses.....

after posting the firefox error, I thought I would try a different browser...

of all things Internet Explorer works with no problems at all!!!

I have no idea why firefox would do that (I am running Version 21 of firefox incase anyone wondered)

anyway thanks guys, your help has been much appreciated, though it looks like im going to go insane using IE10!

Thanks again

    (1-7/7)