Server Localhost => askes me to change every startup!

Get help with all aspects of SABnzbd
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
djasper
Newbie
Newbie
Posts: 1
Joined: March 12th, 2009, 5:23 am

Server Localhost => askes me to change every startup!

Post by djasper »

Hey,

I've got a problem with the server localhost. Everytime I startup SABnzbd+ I get:

""Welcome to SABnzbd.exe 0.4.7



    SABnzbd needs a free tcp/ip port for its internal web server.
    Port 8085 on localhost was tried , but it is not available.
    Some other software uses the port or SABnzbd is already running.

    Please restart SABnzbd with a different port number.

    Press Startkey+R and type the line (example):
        "C:\Program Files\SABnzbd\SABnzbd.exe" --server localhost:8086

    If you get this error message again, please try a different number.


Program did not start!""

When I change it, it will work. BUT, everytime I close the program and I start-up again, it says dat the old host doesn't work and again I need to go one number up. (Here 8087)
All the old localhost don't work anymore...
Any HELP????
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Server Localhost => askes me to change every startup!

Post by switch »

How are you closing the program? Just the browser tab or actually hitting the shutdown button on sabnzbd?

SABnzbd runs in the background at all times, so closing your browser won't close sabnzbd, you should bookmark the page and use your bookmark to access sabnzbd.

Version 0.5 will make this clearer, by detecting if an instance of sabnzbd is already running on that port and if so launch the web browser for that instance and quit.
MrBackup
Newbie
Newbie
Posts: 1
Joined: March 12th, 2009, 6:09 am

Re: Server Localhost => askes me to change every startup!

Post by MrBackup »

I have got the same problem with the sabnzbd:

Code: Select all

     SABnzbd needs a free tcp/ip port for its internal web server.
    Port 65000 on localhost was tried , but it is not available.
    Some other software uses the port or SABnzbd is already running.

    Please restart SABnzbd with a different port number.

    Press Startkey+R and type the line (example):
        "C:\Archivos de programa\SABnzbd-0.4.7\SABnzbd.exe" --server localhost:65001

    If you get this error message again, please try a different number.


Program did not start!
I've tried different ports and all warned me of the same problem. I use a router but I have ports described fully open.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Server Localhost => askes me to change every startup!

Post by switch »

You have a different problem, it's just they result in the same error message.

Nothing needs to be configured in your router for the web interface to listen on your pc. If you use a firewall or certain anti-virus' they may need to be configured correctly.

First I would try with a port lower than 49151, then I would try listening on your local ip address by removing "localhost" and submiting a blank host, like so:

Code: Select all

"C:\Archivos de programa\SABnzbd-0.4.7\SABnzbd.exe" --server :8080
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Server Localhost => askes me to change every startup!

Post by sander »

switch wrote: Version 0.5 will make this clearer, by detecting if an instance of sabnzbd is already running on that port and if so launch the web browser for that instance and quit.
Cool! How is it done? By scanning the process table ('ps -ef'), or by writing a PID, or by scanning ports?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Server Localhost => askes me to change every startup!

Post by switch »

We use cherrypy's check_port function which connects to the host:port to see if it is free. If it isn't free we do an api requestfor the version to that host:port. If the response matches the current version then we launch the user's browser. If it times out, or doesn't match the response  then we try other ports.

I did consider using the PID, however this solution is much easier to do multi-platform.

Btw, sign yourself up to be a release tester now ;)
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Server Localhost => askes me to change every startup!

Post by sander »

switch wrote: Btw, sign yourself up to be a release tester now ;)
How / where can I do that?

And: is it more than just using 0.5.0? Because I already do that...
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: Server Localhost => askes me to change every startup!

Post by shypike »

Release testers have early access to the official release packages
in order to check if we didn't make a blunder.
This is primarily focused on the binary packages.
Currently the test group is looking at 0.5.0Alpha1.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Server Localhost => askes me to change every startup!

Post by sander »

shypike wrote: Release testers have early access to the official release packages
in order to check if we didn't make a blunder.
This is primarily focused on the binary packages.
Currently the test group is looking at 0.5.0Alpha1.
Is alpha1 available somewhere, or is it just the CVS-image?

And where should I report back on bugs? In the Beta Releases forum?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Server Localhost => askes me to change every startup!

Post by switch »

Alpha1 is the SVN from a few days ago. We prefer people sign up as release testers so we can keep bug reports and feedback in one singular place.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Server Localhost => askes me to change every startup!

Post by sander »

switch wrote: Alpha1 is the SVN from a few days ago. We prefer people sign up as release testers so we can keep bug reports and feedback in one singular place.
How do I sign up as release tester?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Server Localhost => askes me to change every startup!

Post by switch »

Was just about to make you one, looks like someone beat me to it. You should now see the Release Testers subforum.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Server Localhost => askes me to change every startup!

Post by shypike »

;D
Post Reply