Re: Cron jobs not working..

From: ravi (v.r.sankar_at_gmail.com)
Date: 01/07/05


Date: 6 Jan 2005 20:03:33 -0800


Chris Thompson wrote:
> In article <1105019058.125397.157360@c13g2000cwb.googlegroups.com>,
> ravi <v.r.sankar@gmail.com> wrote:
> [... snip ...]
> >
> >I donot have permissions to look into the /var/cron/log file...( no
> >root access :( )
>
> Then you should consult whoever maintains your system for you.
>

Yeah ..I am doing that ..but I am not sure whether the fault is from
their side or from my side..I mean the script is doing sumthing
fussy...
> >Can any one tell what could be the possible reasons for the cron job
> >'Not starting" case.?
>
> It could be all sorts of things: that's why you need to find out what
> is in the log file.
>
> One possibility is that cron is already running the maximum number
(100)
> of jobs - this is usually because all (or most) of them are stuck in
> some way. "ptree [pid-of-cron]" will make it clear whether that is
the
> problem or not.

Thank you very much for the tips..it is infact the case of cron queue
getting full..
The following is the extract of the mail from root to me..
" root ran out of cron job queue, something was taking up all the queue
and that is why no further jobs could be scheduled."
Also the extract from the /var/cron/log file :) :)..

"! Ravi 11374 c Wed Dec 29 19:39:00 2004
! cannot fork Wed Dec 29 19:39:00 2004
! rescheduling a cron job Wed Dec 29 19:39:00 2004
! bad user (Ravi) Wed Dec 29 19:39:00 2004
! cannot fork Wed Dec 29 19:39:30 2004 "

I am not a bad user ;-)..

Can you now tell me that why does a fork not executed...

Assume that the cron queue is full at the time of execution of
Myscript.bat. it could be that it remains full forever(a
possibility)..u do get my point right..since the timeperiod of Myscript
is one minute everyminute one job will be appended...

Also Refering to my earlier statistics of 57 on Jan 4 etc. the time
period between one entry to another is substantial..it is between 30min
to 4 hours (though consecutive time periods are also observed but not
for too long...

>
> Chris Thompson
> Email: cet1 [at] cam.ac.uk



Relevant Pages

  • Re: PHP and cron jobs
    ... except for when I need to update the awards via cron ... cron runs as the effective user id of the name of the crontab file. ... run the cron job as user 65534. ...
    (comp.lang.php)
  • Re: a cron problem
    ... I have trouble with a cron job, ... for db in `cat liste` ... tar -cf $tar * ...
    (comp.unix.shell)
  • Re: foxpro 2 for Unix and cron jobs.
    ... running the cron as which user? ... you may want to set up the cron job, instead of just ONE line - as a ... name, but it wasn't 'foxpro'. ... Mondo Cool TeleCom -> http://www.efgroup.net/efgcog.html ...
    (microsoft.public.fox.helpwanted)
  • Re: Using Cron to run a python program
    ... looked in the home path of the cron environment and found the ... update.log file that the cron job was writing to. ... >> You're not giving us much detail about your script, ...
    (comp.lang.python)