You could use the linux command lsof to see a list of open files.  You can 
do something like the following to see what these open files are (if you 
care?):

import subprocess

data = subprocess.check_output(["lsof"])

lines = data.split("\n")

for line in lines: print line


On Sunday, February 21, 2010 at 1:28:55 PM UTC-6, Pascal wrote:
>
> Hello mate,
> I'm using the latest version of Web2py and Mac OS and since few web2py
> release I have been having this problem and I don't know what is the
> cause of this...
> When it happens I can't access my application anymore I got a this
> message from the browser: "Internal error
> Ticket issued: unrecoverable "
> So basicallly I just have to reboot the server to get my appl working
> again...
>
> Here is the exceptions I got from Web2py:
>
> ###############################
> Exception in thread Thread-106:
> Traceback (most recent call last):
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/threading.py", line 486, in __bootstrap_inner
>     self.run()
>   File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", line
> 229, in run
>     shell=self.shell)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/subprocess.py", line 587, in __init__
>     errread, errwrite) = self._get_handles(stdin, stdout, stderr)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/subprocess.py", line 953, in _get_handles
>     errread, errwrite = os.pipe()
> OSError: [Errno 24] Too many open files
> ################################
> Exception in thread Thread-107:
> Traceback (most recent call last):
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/threading.py", line 486, in __bootstrap_inner
>     self.run()
>   File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", line
> 229, in run
>     shell=self.shell)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/subprocess.py", line 587, in __init__
>     errread, errwrite) = self._get_handles(stdin, stdout, stderr)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/subprocess.py", line 933, in _get_handles
>     p2cread, p2cwrite = os.pipe()
> OSError: [Errno 24] Too many open files
> #####################################
> Exception in thread Thread-1:
> Traceback (most recent call last):
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/threading.py", line 486, in __bootstrap_inner
>     self.run()
>   File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", line
> 55, in run
>     s.run()
>   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/sched.py", line 114, in run
>   File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", line
> 47, in launch
>     crondance(self.path, 'hard', startup = self.startup)
>   File "/Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py", line
> 261, in crondance
>     f = open(crontab, 'rt')
> IOError: [Errno 24] Too many open files:
> ######################################
>
> Please any idea ?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to