(I'm not sure if my previous post made it up... sorry if this is a
duplicate)..
I'm also encountering the "too many open files" issue. I have a simple
application that displays 10 or so images, using the included
'download' method as the image source for the IMG tags. I can cause
the "too many open files" bug to happen by repeatedly refreshing the
page (maybe 20 times or so, with a few seconds delay between each
refresh).
any thoughts why this is happening?
(My initial thought after looking at the 'download' method was that
maybe response.stream doesn't close the file when it is done ? but
this seemed unlikely)
Paul
(running web2py 1.67.1, Mac 10.5.8, python 2.6.2)
ERROR:root:Traceback (most recent call last):
File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/
main.py", line 319, in wsgibase
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/tempfile.py", line 475, in TemporaryFile
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/tempfile.py", line 228, in _mkstemp_inner
OSError: [Errno 24] Too many open files: '/var/folders/QH/
QHI5OCT0HD0NfYKlwdXKpk+++TI/-Tmp-/tmp7cAB3k'
WARNING:root:no cache.disk (IOError)
WARNING:root:no cache.disk (IOError)
ERROR:root:Traceback (most recent call last):
File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/
main.py", line 319, in wsgibase
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/tempfile.py", line 475, in TemporaryFile
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/tempfile.py", line 228, in _mkstemp_inner
OSError: [Errno 24] Too many open files: '/var/folders/QH/
QHI5OCT0HD0NfYKlwdXKpk+++TI/-Tmp-/tmpoVTXU9'
ERROR:root:Traceback (most recent call last):
File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/
main.py", line 389, in wsgibase
serve_controller(request, response, session)
File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/
main.py", line 160, in serve_controller
page = run_controller_in(request.controller, request.function,
environment)
File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/
compileapp.py", line 294, in run_controller_in
fp = open(filename, 'r')
IOError: [Errno 24] Too many open files: '/Users/green/work/
CollaborativePhoto/Code/Server/web2py/applications/server/controllers/
default.py'
On Sep 21, 5:16 am, Iceberg <[email protected]> wrote:
> On Sep11, 5:13pm, zahariash <[email protected]> wrote:
>
> > On 11 Wrz, 07:13, mdipierro <[email protected]> wrote:
>
> > > please check if it is fixed. I had to change your fix because it was
> > > not python 2.4 compliant.
>
> > Revision 1124 works ok. It's fixed.
>
> I never saw web2py breaks in my 17 months experience, but I just
> encountered an web2py out-of-service on my Linux production server.
> The process is still running, but every request results in an error
> ticket page, which are all
> IOError: [Errno 24]Toomanyopenfiles: '/home/me/web2py_trunk/
> blahblah'
>
> I am using source code version from google svn rev1222. Is the leak
> found by Zahariash already fixed in this revision?
>
> After kill and restart, now everything seems ok. Anyway, I will keep
> close look to my production server, and come back to you if anything
> new happened.
>
> Iceberg.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---