thanks
Sab randomly changing local listening port!
Forum rules
Help us help you:
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.
Sab randomly changing local listening port!
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
thanks
Re: Sab randomly changing local listening port!
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?
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
Re: Sab randomly changing local listening port!
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...
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...
Re: Sab randomly changing local listening port!
And what does "ps ax" show? Or better: "ps ax | grep -i sabnzbd"?
Are you on Mac or Linux (or ...)?
Are you on Mac or Linux (or ...)?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Sab randomly changing local listening port!
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
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
Re: Sab randomly changing local listening port!
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
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.
Re: Sab randomly changing local listening port!
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.
Look inside and see if you can find where it starts SABnzbd.py
and add the server parameter.
Re: Sab randomly changing local listening port!
I'm not really familiar with python scripts, what do I add, and where do I add it?
Re: Sab randomly changing local listening port!
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.
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.
Re: Sab randomly changing local listening port!
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.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
Last edited by jcfp on March 10th, 2011, 2:27 am, edited 1 time in total.
Re: Sab randomly changing local listening port!
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.
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.


