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 ?
Meanwhile, if you are not using cron, run web2py with -N.
Massimo
Yannick P.
> email to web2py+unsubscribe@googlegroups.com.
> email to web2py+un...@googlegroups.com.
import subprocess
data = subprocess.check_output(["lsof"])
lines = data.split("\n")
for line in lines: print line