Page 1 of 2

OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 1:30 pm
by g1zm0
Hey Guys,

Just upgraded, SAB fails to start when given 0.0.0.0 as a host. When i change it to localhost in the dir all works fine.

Here is the log:

Code: Select all

2012-06-21 19:28:12,937::INFO::[_cplogging:55] [21/Jun/2012:19:28:12] ENGINE Bus STARTING
2012-06-21 19:28:12,993::INFO::[_cplogging:55] [21/Jun/2012:19:28:12] ENGINE Started monitor thread '_TimeoutMonitor'.
2012-06-21 19:28:12,995::ERROR::[_cplogging:55] [21/Jun/2012:19:28:12] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "cherrypy/process/servers.pyc", line 75, in _start_http_thread
  File "cherrypy/wsgiserver/__init__.pyc", line 1644, in start
error: [Errno 49] Can't assign requested address

2012-06-21 19:28:12,995::INFO::[_cplogging:55] [21/Jun/2012:19:28:12] ENGINE Bus STOPPING
2012-06-21 19:28:12,995::INFO::[_cplogging:55] [21/Jun/2012:19:28:12] ENGINE HTTP Server None already shut down
2012-06-21 19:28:12,996::INFO::[_cplogging:55] [21/Jun/2012:19:28:12] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('fe80::1%lo0', 8080)) already shut down
2012-06-21 19:28:13,003::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Stopped thread '_TimeoutMonitor'.
2012-06-21 19:28:13,003::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus STOPPED
2012-06-21 19:28:13,004::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus EXITING
2012-06-21 19:28:13,004::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus EXITED
2012-06-21 19:28:13,094::ERROR::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x14baac30>>
Traceback (most recent call last):
  File "cherrypy/process/wspbus.pyc", line 147, in publish
  File "cherrypy/process/servers.pyc", line 62, in start
  File "cherrypy/process/servers.pyc", line 97, in wait
error: [Errno 49] Can't assign requested address

2012-06-21 19:28:13,197::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Serving on 0.0.0.0:8080
2012-06-21 19:28:13,198::ERROR::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "cherrypy/process/wspbus.pyc", line 184, in start
  File "cherrypy/process/wspbus.pyc", line 147, in publish
  File "cherrypy/process/servers.pyc", line 62, in start
  File "cherrypy/process/servers.pyc", line 97, in wait
error: [Errno 49] Can't assign requested address

2012-06-21 19:28:13,198::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus STOPPING
2012-06-21 19:28:13,211::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
2012-06-21 19:28:13,211::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('fe80::1%lo0', 8080)) already shut down
2012-06-21 19:28:13,212::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE No thread running for _TimeoutMonitor.
2012-06-21 19:28:13,212::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus STOPPED
2012-06-21 19:28:13,212::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus EXITING
2012-06-21 19:28:13,212::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus EXITED
2012-06-21 19:28:13,213::ERROR::[SABnzbd:1474] Failed to start web-interface: 
Traceback (most recent call last):
  File "/Users/plex/Downloads/SABnzbd-0.7.0/OS X 10.5 and Below/SABnzbd.app/Contents/Resources/SABnzbd.py", line 1466, in main
  File "cherrypy/process/wspbus.pyc", line 184, in start
  File "cherrypy/process/wspbus.pyc", line 147, in publish
  File "cherrypy/process/servers.pyc", line 62, in start
  File "cherrypy/process/servers.pyc", line 97, in wait
error: [Errno 49] Can't assign requested address
2012-06-21 19:28:13,213::ERROR::[SABnzbd:301] Failed to start web-interface : [Errno 49] Can't assign requested address
2012-06-21 19:28:13,977::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus STOPPING
2012-06-21 19:28:13,978::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) already shut down
2012-06-21 19:28:13,978::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('fe80::1%lo0', 8080)) already shut down
2012-06-21 19:28:13,978::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE No thread running for _TimeoutMonitor.
2012-06-21 19:28:13,978::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus STOPPED
2012-06-21 19:28:13,979::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus EXITING
2012-06-21 19:28:13,979::INFO::[_cplogging:55] [21/Jun/2012:19:28:13] ENGINE Bus EXITED

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 2:15 pm
by shypike
Poor DNS setup.
What happens if you open a Terminal window (Utilities) and type
uname -n
This should show a name. Then type
ping name
Where "name" is the result from uname.

The next release will have a work-around for this problem.

BTW: are you using VMWare Fusion or Parallels?

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 2:21 pm
by g1zm0
Not using VMware or Parallels,

uname -n returns:

plex.local

ping plex.local returns :

64 bytes from 192.168.0.109: icmp_seq=72 ttl=64 time=0.067 ms
64 bytes from 192.168.0.109: icmp_seq=73 ttl=64 time=0.067 ms

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 2:35 pm
by shypike
That is strange... So, it's not a DNS problem.
You also don't have some software firewall on your Mac?

Can you try these variants in succession?
First stop SABnzbd and open a Terminal.
Stop SABnzbd after each start (using the top menu, don't try ^C).

/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server 127.0.0.1:8080
/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server ::1:8080
/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server :8080
/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server plex.local:8080

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 2:52 pm
by g1zm0
Ok, so:

/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server 127.0.0.1:8080:

Code: Select all

Plex:~ plex$ /Applications/SABnzbd.app/Contents/MacOS/SABnzbd --console --server 127.0.0.1:8080
INFO:cherrypy.error:[21/Jun/2012:20:41:52] ENGINE Bus STARTING
INFO:cherrypy.error:[21/Jun/2012:20:41:52] ENGINE Started monitor thread '_TimeoutMonitor'.
INFO:cherrypy.error:[21/Jun/2012:20:41:52] ENGINE Serving on 127.0.0.1:8080
INFO:cherrypy.error:[21/Jun/2012:20:41:52] ENGINE Bus STARTED
/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server ::1:8080"

Code: Select all

INFO:cherrypy.error:[21/Jun/2012:20:43:36] ENGINE Bus STARTING
INFO:cherrypy.error:[21/Jun/2012:20:43:36] ENGINE Started monitor thread '_TimeoutMonitor'.
INFO:cherrypy.error:[21/Jun/2012:20:43:37] ENGINE Serving on ::1:8080
INFO:cherrypy.error:[21/Jun/2012:20:43:37] ENGINE Bus STARTED
INFO:cherrypy.error:[21/Jun/2012:20:43:52] ENGINE Bus STOPPING
INFO:cherrypy.error:[21/Jun/2012:20:43:52] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('::1', 8080)) shut down
INFO:cherrypy.error:[21/Jun/2012:20:43:52] ENGINE Stopped thread '_TimeoutMonitor'.
INFO:cherrypy.error:[21/Jun/2012:20:43:52] ENGINE Bus STOPPED
INFO:cherrypy.error:[21/Jun/2012:20:43:52] ENGINE Bus EXITING
INFO:cherrypy.error:[21/Jun/2012:20:43:52] ENGINE Bus EXITED
Plex:~ plex$ 
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --console --server :8080

Code: Select all

INFO:cherrypy.error:[21/Jun/2012:20:48:32] ENGINE Bus STARTING
INFO:cherrypy.error:[21/Jun/2012:20:48:32] ENGINE Started monitor thread '_TimeoutMonitor'.
INFO:cherrypy.error:[21/Jun/2012:20:48:32] ENGINE Serving on 192.168.0.109:8080
INFO:cherrypy.error:[21/Jun/2012:20:48:32] ENGINE Bus STARTED
/Applications/SABnzbd.app/Content/MacOS/SABnzbd --console --server plex.local:8080:

Code: Select all

INFO:cherrypy.error:[21/Jun/2012:20:49:44] ENGINE Bus STARTING
INFO:cherrypy.error:[21/Jun/2012:20:49:44] ENGINE Started monitor thread '_TimeoutMonitor'.
INFO:cherrypy.error:[21/Jun/2012:20:49:44] ENGINE Serving on 192.168.0.109:8080
INFO:cherrypy.error:[21/Jun/2012:20:49:44] ENGINE Bus STARTED

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 2:54 pm
by g1zm0
Oh, and i definitely dont have any software firewalls running

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 3:04 pm
by shypike
OK, so for some reason IPV6 isn't doing what it's supposed to do.
::1 is the IPv6 value for localhost, while 127.0.0.1 is that for IPv4.

Can you try this in a Terminal?
ping6 ::1

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 3:11 pm
by g1zm0
sure:

Code: Select all

PING6(56=40+8+8 bytes) ::1 --> ::1
16 bytes from ::1, icmp_seq=0 hlim=64 time=2.242 ms
16 bytes from ::1, icmp_seq=1 hlim=64 time=0.096 ms
16 bytes from ::1, icmp_seq=2 hlim=64 time=0.155 ms
16 bytes from ::1, icmp_seq=3 hlim=64 time=0.086 ms
16 bytes from ::1, icmp_seq=4 hlim=64 time=0.134 ms
16 bytes from ::1, icmp_seq=5 hlim=64 time=0.116 ms

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 3:16 pm
by shypike
The only explanation I have is that ::1 port 8080 is occupied.
But that's not a satisfactory either, since localhost binds to both 127.0.0.1 and ::1

Have you tried any other port?
You can work around the issue by using plex.local as host name.
That is, if you want external access, otherwise use 127.0.0.1

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 3:22 pm
by g1zm0
just tried again with 0.0.0.0 on port 8088, same problems

Thanks for the work around, really appreciate your help!

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 3:25 pm
by shypike
Weird, still.
Do you mind if I PM you when I think I have a solution (or more questions)?

Re: OSX no startup with 0.0.0.0 host

Posted: June 21st, 2012, 3:26 pm
by g1zm0
not at all, happy to help however I can.

Re: OSX no startup with 0.0.0.0 host

Posted: August 8th, 2012, 12:34 am
by houdini2286
Was there a resolution to this? I'm having a similar issue: http://forums.sabnzbd.org/viewtopic.php?f=2&t=11417

Re: OSX no startup with 0.0.0.0 host

Posted: August 8th, 2012, 1:49 am
by shypike
Open a Terminal window (Applications->Utilities->Terminal) and type:
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --no_ipv6 -s 0.0.0.0:8080
Enter

Do this once.

Re: OSX no startup with 0.0.0.0 host

Posted: August 14th, 2012, 6:26 pm
by xbbdc
shypike wrote:Open a Terminal window (Applications->Utilities->Terminal) and type:
/Applications/SABnzbd.app/Contents/MacOS/SABnzbd --no_ipv6 -s 0.0.0.0:8080
Enter

Do this once.
thanks this worked for me!