Massimo, I suggest adding a message when web2py start using internal cron in which is stated that cron is no longer supported. Do you agree ?
On Tuesday, March 3, 2015 at 5:51:50 PM UTC+1, Massimo Di Pierro wrote: > > BTW. We do not support cron anymore since we have the scheduler. Cron > causes other problems with locking of resources and memory build-up. It is > not necessarily a bug, it is designed to guarantee start of execution not > cap resource utilization. > > On Monday, 2 March 2015 11:49:20 UTC-6, AngeloC wrote: >> >> Hi Yannick, >> >> Probably it's a regression with hardcron, if you search the list you >> can find several thread about that problem. >> >> I had it several times in the past and simply I gave up using hard >> cron in web2py. I ususally use the plain and simple unix cron to >> schedule activities! >> >> Sincerely, Angelo >> >> 2015-03-02 18:39 GMT+01:00 Massimo Di Pierro <massimo....@gmail.com >> <javascript:>>: >> > This usually happens when you open but you do not close connections. It >> can >> > happen if you put open connections in cache-ram. Do you open many >> files? >> > >> > >> > On Monday, 2 March 2015 00:24:57 UTC-6, Yusuf Kaka wrote: >> >> >> >> I've got the same error, was there any resolution? >> >> >> >> On Monday, February 22, 2010 at 2:28:17 AM UTC+2, Pascal wrote: >> >>> >> >>> Thanks for the note... I'm usually running Web2py through Wing IDE >> >>> since it is easy for debugging... >> >>> Please let me know if you have any questions regarding this issue >> >>> >> >>> Yannick P. >> >>> >> >>> On Feb 21, 4:02 pm, Massimo Di Pierro <mdipie...@cs.depaul.edu> >> wrote: >> >>> > This is interesting I will take a look asap. >> >>> > >> >>> > Meanwhile, if you are not using cron, run web2py with -N. >> >>> > >> >>> > Massimo >> >>> > >> >>> > On Feb 21, 2010, at 1:28 PM, Yannick 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+un...@googlegroups.com <javascript:>. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Profile: http://it.linkedin.com/in/compagnucciangelo >> > -- 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.