Page 1 of 1
Unable to use ports above 9999
Posted: February 8th, 2015, 7:50 am
by grepusername
Hello,
I am trying to figure out how to configure a port above 9999. I subscribe to a VPN server, and have been assigned a 5 digit port number that I can use to forward. The idea is that I can access SAB while not on my home network. Whenever I change the port number to anything above 9999 I get the following error:
SSL received a record that exceeded the maximum permissible length.
Is there any way around this?
I can get this working with any port 9999 below (so long as the port is not in use). I have tried 5+ ports above the 9999 mark and none seem to work.
Any help would be appreciated.
Re: Unable to use ports above 9999
Posted: February 8th, 2015, 8:22 am
by shypike
Which operating system are you using?
Re: Unable to use ports above 9999
Posted: February 8th, 2015, 8:55 am
by grepusername
FreeBSD 9.2 - I have SAB running on NAS4Free.
And for clarification purposes... I get the error in Firefox.
Re: Unable to use ports above 9999
Posted: February 8th, 2015, 9:47 am
by shypike
The determining factor is the NAS.
Check whether port ranges are off limits.
Any port below 1024 can only be used by apps running under root.
Other than that, clean your Firefox cache.
Firefox can have trouble switching between http and https on the same port,
if used in succession.
Re: Unable to use ports above 9999
Posted: February 8th, 2015, 12:33 pm
by grepusername
I thought I would try what you said, so below are the results of my tests:
I have 4 other ports that I can forward with my VPN service. All of these ports are above 9999. I have other services running on NAS4Free including Sickbeard, Maraschino, CouchPotato, Minecraft Server, and Headphones.
I configured all 4 remaining ports on different services (specifically Sickbeard, Maraschino, CouchPotato, and my Minecraft server). All four of these services are now running with a port greater than 9999. Seeing as all of these services are running on the NAS, I am not sure if the NAS is limiting these port ranges.
I next cleared the cache in both of my Firefox and Chrome installations. I still receive the same "exceeeded maximum permissible length" on firefox. In Chrome I receive a different...included below:
"Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have."
I can run SAB over https -- right now its configured to run over https on port 9999. So I know the certificate is working, just don't know why it doesn't work above port 9999.
I am going to try and generate my own certificate and use it instead of the default certificate. I'll post back later on what I find...probably tomorrow. But.......
Any other suggestions would be very appreciated. Thanks!
Re: Unable to use ports above 9999
Posted: February 8th, 2015, 2:24 pm
by shypike
Did you install the CherryPy module that comes with SABnzbd?
You cannot use a standard version of CherryPy.
Re: Unable to use ports above 9999
Posted: February 9th, 2015, 4:23 am
by grepusername
I checked my NAS and I do have a standard CherryPy module installed (py27-cherrypy). If I remember correctly, I used an easy_install, so it is almost certain that I am not using the module that was included with SABnzbd.
Would I need to remove the currently installed CherryPy module from my system and then use the module included with SAB, or is there a way to direct SAB to use the included CherryPy module?
Re: Unable to use ports above 9999
Posted: February 9th, 2015, 10:23 am
by shypike
You must use our CP version, because the standard one contains
a serious bug in https handling.
Put our CP somewhere and modify the PYTHON_PATH environment variable so that
the CP location is seen first.
Re: Unable to use ports above 9999
Posted: February 9th, 2015, 12:30 pm
by sander
shypike wrote:You must use our CP version
Can't SABnzbd only import the included CherryPy? I believe in python you can set an path-to-follow with import / imp.
Re: Unable to use ports above 9999
Posted: February 9th, 2015, 3:58 pm
by shypike
No, CherryPy must be in the folder where SABnzbd.py is.
Otherwise the internal imports of CherryPy will fail.
An unfortunate side-effect is that a missing CherryPy module there,
will automatically make Python import the "standard" CherryPy.
Hopefully more recent versions of CP will just work,
something that I will tackle for 0.8.0