Suggested patch: *** newcron.old.py Fri Oct 15 11:27:34 2010 --- newcron.py Fri Oct 15 11:29:08 2010 *************** *** 175,181 **** task[id] = [] vals = s.split(',') for val in vals: ! if '-' in val and '/' not in val: val = '%s/1' % val if '/' in val: task[id] += rangetolist(val, id) --- 175,181 ---- task[id] = [] vals = s.split(',') for val in vals: ! if val != '-1' and '-' in val and '/' not in val: val = '%s/1' % val if '/' in val: task[id] += rangetolist(val, id)
Please confirm if you're going to apply it. Greets. On 14 oct, 22:43, Álvaro J. Iradier <airad...@gmail.com> wrote: > Ok I found the problem, in rev 770b1f1298: > > http://code.google.com/p/web2py/source/diff?spec=svn770b1f129819eb108... > > in newcron.py: > > if val.find('/') > -1: > > was changed to: > > if '-' in val and '/' not in val: > val = '%s/1' % val > if '/' in val: > > and it looks like there's something wrong with val = '-1/1', coming > from the previous: > > 153 if line.startswith('@reboot'): > 154 line=line.replace('@reboot', '-1 * * * *') > > However, I can't guess what the fix is... > > Greets. > > On 14 oct, 22:34, Álvaro J. Iradier <airad...@gmail.com> wrote: > > > > > Thanks very much. > > > Ok, so after trying: > > > Works in 1.83.2. > > Doesn't work in 1.84.1 or newer. > > > I don't see anything on the changelog for 1.84.1-4 related to cron, > > but clearly something was changed that stopped it from working. > > > Greets. > > > On 14 oct, 22:00, Bruno Rocha <rochacbr...@gmail.com> wrote: > > > >http://www.web2py.com/examples/static/<version>/web2py_src.zip > > > >http://www.web2py.com/examples/static/1.81.4/web2py_src.zip > > > > 2010/10/14 Álvaro J. Iradier <airad...@gmail.com> > > > > > After upgrading web2py from 1.81.4 to latest 1.87.3, cron jobs at > > > > @reboot stopped working. This is my crontab file: > > > > > #crontab > > > > * * * * * root *cron/pollsensors > > > > * * * * * root *cron/checkschedule > > > > 0 0 * * * root *cron/cleandata > > > > @reboot root *cron/cleandata > > > > @reboot root *cron/pollingloop > > > > > The two last jobs simply won't start. Reverting to 1.81.4 works. > > > > > Any idea? How can I download previous versions to track where it > > > > stopped working? > > > > > Thanks very much. > > > > -- > > > >http://rochacbruno.com.br