I hope it's okay to if I just share a StackOverflow link here because
I've explained the problem in detail there:
http://stackoverflow.com/questions/8678897/
I hope any of you guys encountered the same error because I don't know
what to do next. It works on a second virtual machine running the same
software (but quota isn't doing anything there) and I can't figure out
why.
Thanks for your replies
For all who don't want to open StackOverflow a copy below:
I have a strange problem here which solution I can't figure out by
searching the net :/
After switching Apache from mpm-prefork to mpm-worker, using
subprocess in my (Django) Python WSGI application raises the following
exception after hanging for a couple of time:
IOError at /
[Errno 4] Interrupted system call
The call in question is:
out = check_output(['sudo', 'quota', user_id])
where check_output is a backport of this function from Python 2.7
while I'm using Python 2.6 from Debian Squeeze repositories.
The processes, in fact, seem to be executed, but die:
ps aux | grep quota
root 15378 0.0 0.0 21864 1176 ? S 02:34 0:00 sudo
quota ...SOME_ID...
root 15379 0.0 0.0 0 0 ? Z 02:34 0:00
[quota] <defunct>
The Apache configuration is no more than setting the WSGIScriptAlias
and some directory directives.
Am I missing the obvious?
Greets Sebastian
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 comments:
Post a Comment