Sab randomly changing local listening port!

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
CoNFuS3D
Newbie
Newbie
Posts: 4
Joined: March 9th, 2011, 7:49 am

Sab randomly changing local listening port!

Post by CoNFuS3D »

Hi, sab seems to change it's listening port every few days, sometimes every day, any idea how to stop this from happening, as it is really annoying?

thanks :)
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Sab randomly changing local listening port!

Post by sander »

My first guess is that you start up SABnzbd several times: as the second SAB instance find the normal port in use (by ... the first instance of SAB), it hunts another port. And so on.

So: if you turn off your computer, start it again, and then start SABnzbd, on which port is it?

Later on, how do you access SABnzbd? Do you click on a program/button, or do you access it via a browser bookmark?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
CoNFuS3D
Newbie
Newbie
Posts: 4
Joined: March 9th, 2011, 7:49 am

Re: Sab randomly changing local listening port!

Post by CoNFuS3D »

hi,

thanks for the reply!

I have a bookmark for accessing sab, but with it changing ports all the time, it hardly ever works. it usually goes between: 8080, 8085, 8090 but it has been others in the past. I did a ps x, and there is only one instance of sab running at the moment...
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Sab randomly changing local listening port!

Post by sander »

And what does "ps ax" show? Or better: "ps ax | grep -i sabnzbd"?

Are you on Mac or Linux (or ...)?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab randomly changing local listening port!

Post by shypike »

How do you start SABnzbd?
It supports a command line parameter which allow forcing the address.
At least as long as the port isn't actually occupied; because if so, it will start searching again.
It will at least force a fixed starting point.

--server host:port
CoNFuS3D
Newbie
Newbie
Posts: 4
Joined: March 9th, 2011, 7:49 am

Re: Sab randomly changing local listening port!

Post by CoNFuS3D »

4515 ?        Sl    16:56 /usr/bin/python -OO /usr/bin/sabnzbdplus /tmp/Tron Linux.nzb
13278 pts/1    S+     0:00 grep --color=auto -i sabnzbd


I am on linux, when I start it, I don't normally start it, only when I download a NZB, and it starts automatically
Last edited by jcfp on March 10th, 2011, 2:27 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sab randomly changing local listening port!

Post by shypike »

It looks like /usr/bin/sabnzbdplus is a script.
Look inside and see if you can find where it starts SABnzbd.py
and add the server parameter.
CoNFuS3D
Newbie
Newbie
Posts: 4
Joined: March 9th, 2011, 7:49 am

Re: Sab randomly changing local listening port!

Post by CoNFuS3D »

I'm not really familiar with python scripts, what do I add, and where do I add it?
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Sab randomly changing local listening port!

Post by rascalli »

Best is to have it running as Deamon & auto on boot.
You can us the etc/init.d/sabnzbdplus script for this

If you download an .nzb , all you do is add it with the webinterface to sabnzbd+
Or download it to a watch folder & it will start.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Sab randomly changing local listening port!

Post by jcfp »

CoNFuS3D wrote: 4515 ?        Sl    16:56 /usr/bin/python -OO /usr/bin/sabnzbdplus /tmp/Tron Linux.nzb

[...]

I don't normally start it, only when I download a NZB, and it starts automatically
Is that why there's an nzb file in that command line? Did you configure your system to start a new instance of sab for every nzb, by making it some kind of default application for nzb files? If so, drop that, and set things up as rascalli suggested.
Last edited by jcfp on March 10th, 2011, 2:27 am, edited 1 time in total.
rollhax
Newbie
Newbie
Posts: 1
Joined: July 19th, 2011, 10:07 am

Re: Sab randomly changing local listening port!

Post by rollhax »

This response is a little late, but I figure it may help somebody else searching for it (I just found it myself).

This had been happening to me over and over again everytime I would restart the sabnzbdplus daemon or reboot the PC. I had set a custom port in the sabnzbd web config, but it was still defaulting to 8080 often enough to be annoying (especially when not on my LAN). I was digging around in the init script and noticed the SETTINGS=/etc/default/sabnzbdplus line. Go to that directory to edit that file and change the default port, it will then by default start with the port you have defined.
Post Reply