I'm getting these errors a lot (most of the time that I refresh):
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch
mod_ssl/2.2.8 OpenSSL/0.9.8g Server at sagenb.org Port 80
The error logs say:
2011-10-31 23:00:45-0700 [-] Unhandled Error
Traceback (most recent call last):
File
"/sagenb/sage_install/sage-4.7/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/application/app.py",
line 445, in startReactor
self.config, oldstdout, oldstderr, self.profiler, reactor)
File
"/sagenb/sage_install/sage-4.7/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/application/app.py",
line 348, in runReactorWithLogging
reactor.run()
File
"/sagenb/sage_install/sage-4.7/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py",
line 1166, in run
self.mainLoop()
File
"/sagenb/sage_install/sage-4.7/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py",
line 1178, in mainLoop
self.doIteration(t)
--- <exception caught here> ---
File
"/sagenb/sage_install/sage-4.7/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/internet/selectreactor.py",
line 104, in doSelect
[], timeout)
exceptions.ValueError: filedescriptor out of range in select()
2011-10-31 23:00:45-0700 [-] Malformed file descriptor found. Preening
lists.
2011-10-31 23:00:45-0700 [-] bad descriptor <HTTPChannel #156724 on 8888>
To help diagnose this, it appears that select() has its own internal
limit that is *not* affected by the number of open files set in ulimit.
Using this code: http://twistedmatrix.com/trac/ticket/816 in order to
determine this internal select() limit, I get a limit of 1024 file
descriptors. And, surprise, surprise, lsof of the sagenb.org process
shows that there are around 1024 open file handles.
http://daniel.haxx.se/docs/poll-vs-select.html seems to indicate that
you can't redefine this limit in Linux.
Thanks,
Jason
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org