No port available on Linux !

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
Draky
Newbie
Newbie
Posts: 19
Joined: April 20th, 2010, 3:10 pm
Location: France

No port available on Linux !

Post by Draky »

Hello

Ubuntu maverick.

I try to launch sabnzbdplus but it asks me to change the listeining port to x+1 but it never works !
Seems all ports are busy :(

Here is my term output :

Code: Select all

gilles@gilles-desktop:~$ sabnzbdplus 
2011-02-13 16:59:49,344::INFO::[sabnzbdplus:961] --------------------------------
2011-02-13 16:59:49,345::INFO::[sabnzbdplus:962] sabnzbdplus-0.5.6 (rev=2503)
2011-02-13 16:59:49,345::INFO::[sabnzbdplus:972] Platform = posix
2011-02-13 16:59:49,346::INFO::[sabnzbdplus:973] Python-version = 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
[GCC 4.4.5]
2011-02-13 16:59:49,408::INFO::[__init__:702] /home/gilles/.sabnzbd/cache/bookmarks.sab removed
2011-02-13 16:59:49,410::INFO::[postproc:139] Loading postproc queue
2011-02-13 16:59:49,410::INFO::[__init__:702] /home/gilles/.sabnzbd/cache/postproc1.sab removed
2011-02-13 16:59:49,412::INFO::[downloader:334] Resuming
2011-02-13 16:59:49,423::INFO::[__init__:251] All processes started
2011-02-13 16:59:49,424::INFO::[sabnzbdplus:270] Web dir is /usr/share/sabnzbdplus/interfaces/Plush
2011-02-13 16:59:49,441::INFO::[sabnzbdplus:1026] Starting sabnzbdplus-0.5.6
2011-02-13 16:59:49,443::INFO::[dirscanner:375] Dirscanner starting up
2011-02-13 16:59:49,444::INFO::[urlgrabber:103] URLGrabber starting up
2011-02-13 16:59:49,444::INFO::[sabnzbdplus:378] _yenc module... found!
2011-02-13 16:59:49,445::INFO::[sabnzbdplus:386] par2 binary... found (/usr/bin/par2)
2011-02-13 16:59:49,445::INFO::[sabnzbdplus:394] unrar binary... found (/usr/bin/unrar)
2011-02-13 16:59:49,446::INFO::[sabnzbdplus:399] unzip binary... found (/usr/bin/unzip)
2011-02-13 16:59:49,446::INFO::[sabnzbdplus:405] nice binary... found (/usr/bin/nice)
2011-02-13 16:59:49,446::INFO::[sabnzbdplus:409] ionice binary... found (/usr/bin/ionice)
2011-02-13 16:59:49,446::INFO::[sabnzbdplus:414] pyOpenSSL... found (True)
2011-02-13 16:59:49,448::INFO::[sabnzbdplus:1124] Starting web-interface on 192.168.0.1:86
2011-02-13 16:59:50,450::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus STARTING
2011-02-13 16:59:50,454::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Started monitor thread '_TimeoutMonitor'.
2011-02-13 16:59:50,557::ERROR::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1629, in start
    raise socket.error, msg
error: [Errno 99] Cannot assign requested address

2011-02-13 16:59:50,557::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus STOPPING
2011-02-13 16:59:50,558::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.1', 86)) already shut down
2011-02-13 16:59:50,567::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Stopped thread '_TimeoutMonitor'.
2011-02-13 16:59:50,567::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus STOPPED
2011-02-13 16:59:50,568::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus EXITING
2011-02-13 16:59:50,568::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus EXITED
Exception in thread HTTPServer Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1629, in start
    raise socket.error, msg
error: [Errno 99] Cannot assign requested address

2011-02-13 16:59:50,656::ERROR::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x13b4050>>
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: [Errno 99] Cannot assign requested address

2011-02-13 16:59:50,657::ERROR::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: [Errno 99] Cannot assign requested address

2011-02-13 16:59:50,657::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus STOPPING
2011-02-13 16:59:50,657::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.1', 86)) already shut down
2011-02-13 16:59:50,658::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE No thread running for _TimeoutMonitor.
2011-02-13 16:59:50,658::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus STOPPED
2011-02-13 16:59:50,658::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus EXITING
2011-02-13 16:59:50,659::INFO::[_cplogging:55] [13/Feb/2011:16:59:50] ENGINE Bus EXITED
2011-02-13 16:59:50,659::ERROR::[sabnzbdplus:243] Echec du lancement de l'interface web
2011-02-13 16:59:50,660::INFO::[misc:584] Lauching browser with /tmp/tmpxzUGwq.html
2011-02-13 16:59:50,667::INFO::[__init__:287] SABnzbd shutting down...
2011-02-13 16:59:50,668::INFO::[urlgrabber:98] URLGrabber shutting down
2011-02-13 16:59:50,675::INFO::[dirscanner:289] Dirscanner shutting down
2011-02-13 16:59:51,446::INFO::[downloader:490] Shutting down
2011-02-13 16:59:51,447::INFO::[assembler:102] Shutting down
2011-02-13 16:59:51,447::INFO::[postproc:134] Saving postproc queue
2011-02-13 16:59:51,448::INFO::[nzbqueue:92] Saving queue
2011-02-13 16:59:51,450::INFO::[postproc:134] Saving postproc queue
2011-02-13 16:59:51,450::INFO::[__init__:322] All processes stopped
gilles@gilles-desktop:~$ 
Any idea ?
If I try a different port : same problem.

And have it installed on Win7 without problem, on same PC.

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

Re: No port available on Linux !

Post by sander »

Probably an incorrect IP address filled out at "host". So, what's the output of:

Code: Select all

grep host ~/.sabnzbd/sabnzbd.ini
And, does a brute force startup work:

Code: Select all

sabnzbdplus --server 127.0.0.1:8085
Post back the results



EDIT: the root cause is already in your logging:
Starting web-interface on 192.168.0.1:86
As a normal user, you can't use port 86. Apart from that, it's quite strange to use that port. Use the second command I gave you, and it will work.
Last edited by sander on February 13th, 2011, 12:12 pm, edited 1 time in total.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Draky
Newbie
Newbie
Posts: 19
Joined: April 20th, 2010, 3:10 pm
Location: France

Re: No port available on Linux !

Post by Draky »

Thanks, working :)

In fact, "192.168.0.1" gives me an error ! but "127.0.0.1" is ok.
And yes port 85 is NOT ok, port 8085 is ok.

Strange because in Win7_x64, 192.168.0.1:85 is ok (have not tested 127.0.0.1 and 8085).
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: No port available on Linux !

Post by sander »

IMHO filling out an IP address is asking for trouble and there are only two good options:


127.0.0.0.1 if you want to access SABnzbd only on your PC
0.0.0.0 (or :: ) if you want to access SABnzbd remotely (resp via IPv6)
Last edited by sander on February 13th, 2011, 2:49 pm, edited 1 time in total.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: No port available on Linux !

Post by shypike »

Ports below 1024 of off-limits when you run SABnzbd under a normal user account.
Linux doesn't allow it.
Post Reply