Re: Cron fails to run
I have decided that the problem must be caused by a problem between cron
and postfix. I have postfix installed on this machine and the stalled
processes include a pipe between cron and postfix (sendmail).
Two questions. Has anyone else experienced this and come up with a fix?
or, does anyone know how to change the mail settings for cron?
I am getting the cron emails, so the problem is not complete
incompatiblility, but the processes aren't ending cleanly and exiting.
What I can't figure out is how to change the cron mailer settings that
result in the following command:
/usr/sbin/sendmail -i -FCronDaemon -odi -oem root
Any help greatly appreciated!
David
Justin Guerin said:
> On Wednesday 05 May 2004 12:23, David wrote:
>> Colin Watson said:
>> > On Tue, May 04, 2004 at 02:12:33PM -0400, David wrote:
>> >> I have two machines with Debian on them. One is pure stable and the
>> >> other
>> >> is mostly testing.
>> >>
>> >> Neither machine can successfully run cron.daily. Unlike a previous
>> >> poster, anacron is not installed. Various tasks are started but
>> never
>> >> complete as shown in the following ps ax listing for cron tasks from
>> >> the "stable" machine:
>> >>
>> >> 6417 ? S 0:00 /USR/SBIN/CRON
>> >> 6418 ? S 0:00 /bin/sh -c test -e /usr/sbin/anacron ||
>> >> run-parts --report /etc/cron.daily
>> >> 6419 ? S 0:00 run-parts --report /etc/cron.daily
>> >> 6422 ? S 0:00 /bin/sh /etc/cron.daily/find
>> >> 6423 ? S 0:00 /bin/sh /usr/bin/updatedb
>> >> --localuser=nobody
>> >
>> > Perhaps updatedb is trying to read its way veeeeeeery sloooooowly
>> > through something like an NFS mount?
>> >
>> > --
>> > Colin Watson
>> > [cjwatson@flatline.org.uk]
>> >
>> >
>> Colin,
>>
>> One machine has no nfs mounts (all local) and the other has a small nfs
>> mount which shouldn't be a problem.
>>
>> I can manually execute run-parts on the cron.daily directory and it
>> completes no problems. There must be some deeper problem with cron
>> itself.
>>
>> I welcome and and all ideas.
>>
>> Thanks,
>> David
>>
> I had problems similar to this that turned out to be related to a
> different
> daily cron job. I never had the problem of old cron jobs showing up on
> ps,
> though, so your mileage may vary. Anyway, my box is a Knoppix HD install,
> and uses smail as the mail agent. It was configured to
> run /usr/lib/smail/checkerr as the user mail, even though checkerr is
> supposed to be run as root. This error seemed to bork updatedb, which
> would stop wherever it was. Sometimes, locate would find things in /usr,
> sometimes only in /bin, sometimes in between. I finally fixed the smail
> cron error, and I haven't had a problem since.
>
> So to sum up, check your other cron jobs, and make sure they aren't
> generating errors.
>
> Justin Guerin
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
Reply to: