psyferre
11-11-2009, 12:06 PM
The "Django on Bluehost" thread is full of this error, but it also appears to be somewhat dead and this error may apply to others I suppose so I'm starting a new thread.
In my situation, I'm trying to run pinax. My fcgi script attempts to run either:
from flup.server.fcgi import WSGIServer
from django.core.handlers.wsgi import WSGIHandler
WSGIServer(WSGIHandler()).run()
or
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
In both cases I get a 500 error and something like this in the logs:
Traceback (most recent call last):
File "dispatch.fcgi", line 28, in ?
runfastcgi(method="threaded", daemonize="false")
File "/home1/username/.virtualenvs/pinax-env/lib/python2.4/site-packages/django/core/servers/fastcgi.py", line 176, in runfastcgi
WSGIServer(WSGIHandler(), **wsgi_opts).run()
File "/home/username/.virtualenvs/pinax-env/lib/python2.4/site-packages/flup-1.0.3.dev_20091027-py2.4.egg/flup/server/fcgi.py", line 114, in run
File "/home/username/.virtualenvs/pinax-env/lib/python2.4/site-packages/flup-1.0.3.dev_20091027-py2.4.egg/flup/server/threadedserver.py", line 84, in run
socket.error: (22, 'Invalid argument')
That's a pretty generic error from what I understand. :( Can anyone shed any light on what might be the cause?
In my situation, I'm trying to run pinax. My fcgi script attempts to run either:
from flup.server.fcgi import WSGIServer
from django.core.handlers.wsgi import WSGIHandler
WSGIServer(WSGIHandler()).run()
or
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
In both cases I get a 500 error and something like this in the logs:
Traceback (most recent call last):
File "dispatch.fcgi", line 28, in ?
runfastcgi(method="threaded", daemonize="false")
File "/home1/username/.virtualenvs/pinax-env/lib/python2.4/site-packages/django/core/servers/fastcgi.py", line 176, in runfastcgi
WSGIServer(WSGIHandler(), **wsgi_opts).run()
File "/home/username/.virtualenvs/pinax-env/lib/python2.4/site-packages/flup-1.0.3.dev_20091027-py2.4.egg/flup/server/fcgi.py", line 114, in run
File "/home/username/.virtualenvs/pinax-env/lib/python2.4/site-packages/flup-1.0.3.dev_20091027-py2.4.egg/flup/server/threadedserver.py", line 84, in run
socket.error: (22, 'Invalid argument')
That's a pretty generic error from what I understand. :( Can anyone shed any light on what might be the cause?