Page 1 of 1

Error 500 on step 4 of wizard

Posted: March 19th, 2012, 3:46 pm
by ebalders
Using OSX Lion, I get the following erro when entering step 4 of the installation wizard...

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "cherrypy/_cprequest.pyc", line 618, in respond
File "cherrypy/_cpdispatch.pyc", line 25, in __call__
File "sabnzbd/wizard.pyc", line 201, in four
File "sabnzbd/wizard.pyc", line 219, in get_access_info
gaierror: [Errno 8] nodename nor servname provided, or not known

Re: Error 500 on step 4 of wizard

Posted: March 19th, 2012, 3:50 pm
by shypike
You may have entered an incorrect host address.
Is a down arrow visible in the OSX top menu?
Open it and select "Troubleshoot->Restart - 127.0.0.1:8080"

Re: Error 500 on step 4 of wizard

Posted: May 19th, 2012, 3:47 pm
by hanker
I'm getting the same thing. At step 4 of the wizard I get this error:

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 618, in respond
    cherrypy.response.body = self.handler()
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/wizard.py", line 201, in four
    info['access_url'], info['urls'] = self.get_access_info()
  File "/usr/share/sabnzbdplus/sabnzbd/wizard.py", line 219, in get_access_info
    addresses = socket.getaddrinfo(host, None)
gaierror: [Errno -2] Name or service not known
This is with a new installation of sabnzbd 0.7.0Beta6 on Debian squeeze.

Edit: other than this "wizard step 4" weirdness, sabnzbd seems to be working fine.

Re: Error 500 on step 4 of wizard

Posted: May 22nd, 2012, 12:05 pm
by shypike
Same problem as for the other user.
Debian (and some more Linuxes) don't return a resolvable hostname.
The Wizard doesn't handle that situation properly.
I'll see how I can improve this, although I cannot resolve the basic problem.

Can you run the following miniature Python program?

Code: Select all

#!/usr/bin/python
import socket
print socket.gethostname()

Re: Error 500 on step 4 of wizard

Posted: May 23rd, 2012, 8:29 am
by hanker
shypike wrote:Same problem as for the other user.
Debian (and some more Linuxes) don't return a resolvable hostname.
The Wizard doesn't handle that situation properly.
I'll see how I can improve this, although I cannot resolve the basic problem.

Can you run the following miniature Python program?

Code: Select all

#!/usr/bin/python
import socket
print socket.gethostname()

I put that text in a file, a.txt, did

$ chmod +x a.txt
$ python a.txt
debian

So the output was just the string "debian".

But if this is not really a problem then no big deal. And the new sabnzbd is working fine otherwise.

Re: Error 500 on step 4 of wizard

Posted: May 23rd, 2012, 10:06 am
by shypike
OK, and what happens if you do "ping debian" ?
I already fixed the crash in the current code, but I'm not sure what the effect will be on your system.

Re: Error 500 on step 4 of wizard

Posted: May 23rd, 2012, 5:14 pm
by hanker
shypike wrote:OK, and what happens if you do "ping debian" ?
I already fixed the crash in the current code, but I'm not sure what the effect will be on your system.

I get this:

Code: Select all

$ ping debian
ping: unknown host debian

Re: Error 500 on step 4 of wizard

Posted: May 24th, 2012, 12:28 am
by shypike
OK, that's clear.
One of those Linuxes that doesn't bother to resolve it's own system
name as a hostname.
The fix will probably prevent the crash a next time.