Error 500 on step 4 of wizard

Report & discuss bugs found in 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
ebalders
Newbie
Newbie
Posts: 1
Joined: March 19th, 2012, 3:43 pm

Error 500 on step 4 of wizard

Post 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

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error 500 on step 4 of wizard

Post 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"

hanker
Newbie
Newbie
Posts: 27
Joined: December 8th, 2011, 9:25 am

Re: Error 500 on step 4 of wizard

Post 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.

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error 500 on step 4 of wizard

Post 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()

hanker
Newbie
Newbie
Posts: 27
Joined: December 8th, 2011, 9:25 am

Re: Error 500 on step 4 of wizard

Post 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.

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error 500 on step 4 of wizard

Post 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.

hanker
Newbie
Newbie
Posts: 27
Joined: December 8th, 2011, 9:25 am

Re: Error 500 on step 4 of wizard

Post 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

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error 500 on step 4 of wizard

Post 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.

Post Reply