Article View: news.software.nntp
Article #83105Re: Cron failing on Squeeze
From: John F. Morse
Date: Mon, 07 Jun 2010 02:52
Date: Mon, 07 Jun 2010 02:52
120 lines
4926 bytes
4926 bytes
D. Stussy wrote: > "Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message > news:hugbmu$691$1@news.trigofacile.com... > >> Hi John, >> >> >>> Now I'm receiving hourly e-mail cron failure reports every HH:10 such >>> > as the > >>> following: >>> >>> Subject: Cron <news@n102> [ -x /usr/bin/rnews ] && rnews -U (failed) >>> >> What result do you obtain if you run "rnews -U" by hand? >> Also check your news.err and news.notice file in case there is >> > information > >> logged by rnews. >> > > Does cron have a PATH environment variable that's honored? If not, try > specifying "rnews -U" as "/usr/bin/rnews -U". > According to the following, the /etc/cron.d/inn2 file was not changed during the upgrade: sudo cat /var/log/apt/term.log | grep cron john@n102:/var/log/apt$ sudo cat term.log | grep cron Preparing to replace cron 3.0pl1-109 (using .../cron_3.0pl1-111_i386.deb) ... Stopping periodic command scheduler: cron. Unpacking replacement cron ... Setting up cron (3.0pl1-111) ... Installing new version of config file /etc/init.d/cron ... Installing new version of config file /etc/cron.daily/standard ... Starting periodic command scheduler: cron. Installing new version of config file /etc/cron.daily/man-db ... Installing new version of config file /etc/cron.weekly/man-db ... Various edits I made are still in this file. news@n102:~$ cat /etc/cron.d/inn2 SHELL=/bin/sh PATH=/usr/lib/news/bin:/sbin:/bin:/usr/sbin:/usr/bin # Expire old news and overview entries nightly, generate reports. 0 0 * * * news test -x /usr/lib/news/bin/news.daily && news.daily expireover lowmark delayrm # Refresh the cached IP addresses every day. 2 3 * * * news [ -x /usr/sbin/ctlinnd ] && ctlinnd -t 300 -s reload incoming.conf "flush cache" # Every hour, run an rnews -U. This is not only for UUCP sites, but # also to process queud up articles put there by in.nnrpd in case # innd wasn't accepting any articles. 10 * * * * news [ -x /usr/bin/rnews ] && rnews -U # Enable this entry to send posted news back to your upstream provider. # Also edit /etc/news/nntpsend.ctl ! # Not if you use innfeed, of course. #*/15 * * * * news nntpsend # Enable this if you want to send news by uucp to your provider. # Also edit /etc/news/send-uucp.cf ! #22 * * * * news send-uucp.pl # NINPATHS ################################################################### # To enable ninpaths please add this line to /etc/news/newsfeeds: # inpaths!:*:Tc,WP:/usr/lib/news/bin/ninpaths # 6 1 * * * news ctlinnd -s -t 60 flush inpaths! 8 1 * * * news sendinpaths # NINPATHS ################################################################### I do see where the failing cron jobs both have "[ -x ... ]" in them. The midnight expiry job, and the NINPATHS jobs do not. They do work. Both of the failing jobs have incorrect pathnames (/usr/sbin/ctlinnd and /usr/bin/rnews). These are actually in the Debian default paths of /usr/lib/news/bin/ per /etc/news/inn.conf as: pathbin: /usr/lib/news/bin I cannot find the -x mentioned in any cron man page, although I think I once read it. However, these cron entries are identical to those on INN 2.4.5 servers -- and everything worked up to the point of the apt-get upgrade on Sunday afternoon on the 2.5.2 server. My suspicions are something was broken in the cron_3.0pl1-111_i386.deb replacement package. Now, how to find it, patch it, or backtrack? -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<huhmsv$4vu$1@n102.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mailReferences:
<hug8eq$o17$1@n102.xanadu-bbs.net> <hugbmu$691$1@news.trigofacile.com> <huh77g$rau$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <huhmsv$4vu$1@n102.xanadu-bbs.net> Subject: Re: Cron failing on Squeeze Date: Sun, 06 Jun 2010 21:52:15 -0500 From: "John F. Morse" <john@example.invalid> References: <hug8eq$o17$1@n102.xanadu-bbs.net> <hugbmu$691$1@news.trigofacile.com> <huh77g$rau$1@snarked.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 120 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: n102.xanadu-bbs.net 1275879135 5118 192.168.89.210 (7 Jun 2010 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 7 Jun 2010 02:52:15 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20100317) In-Reply-To: <huh77g$rau$1@snarked.org> X-Enigmail-Version: 0.96.0