🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84915

Cron, Perl and Pullnews

#84915
From: John F. Morse
Date: Thu, 07 Jun 2012 17:17
126 lines
6141 bytes
Received five Cron e-mail messages this morning concerning Pullnews.

All have the following Subject:

Cron <news@n102> pullnews -c ~/.pullnews -p 119 -Q1 -O -M 600 -S 1200 -l 
/var/log/news/pullnews.log

The text of the first two e-mail messages (at 07:17 and 07:48) is:

Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 674.
Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 657.
Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 674.
Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 657.
Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 674.
Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 657.
Use of uninitialized value $code in substr at 
/usr/share/perl/5.10/Net/Cmd.pm line 366.
Argument "" isn't numeric in numeric eq (==) at 
/usr/share/perl/5.10/Net/NNTP.pm line 672.

The next two e-mail messages (at 08:14 and 08:52) contained the last 
five line pairs, and the final e-mail (at 09:17) had only the last line 
pair above.

These started at 07:17 and the last message was at 09:17. Nothing else 
seems odd (articles were fetched and posted without problems). This is 
the first time I've seen these failures, and nothing has changed on this 
server in over a week.

The logs show no clues, but here is all that might be apropos:

The news.notice log:

Jun  7 07:10:01 n102 innd: localhost connected 187
Jun  7 07:10:01 n102 innd: localhost:187 checkpoint seconds 0 accepted 0 
refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0 
rejected size 0
Jun  7 07:10:01 n102 innd: localhost:187 closed seconds 0 accepted 0 
refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0 
rejected size 0
Jun  7 07:10:01 n102 innd: localhost connected 187 streaming allowed
...
Jun  7 07:17:52 n102 innd: localhost:187 checkpoint seconds 471 accepted 
1 refused 0 rejected 0 duplicate 0 accepted size 186842 duplicate size 0 
rejected size 0
Jun  7 07:17:52 n102 innd: localhost:187 closed seconds 471 accepted 1 
refused 0 rejected 0 duplicate 0 accepted size 186842 duplicate size 0 
rejected size 0
...
Jun  7 09:17:19 n102 innd: localhost:76 checkpoint seconds 438 accepted 
1 refused 0 rejected 0 duplicate 0 accepted size 313786 duplicate size 0 
rejected size 0
Jun  7 09:17:19 n102 innd: localhost:76 closed seconds 438 accepted 1 
refused 0 rejected 0 duplicate 0 accepted size 313786 duplicate size 0 
rejected size 0

The news log:

Jun  7 07:11:44.522 + localhost 
<4b51t7hm4n5rarjakb9rru7f3nlc4a6bat@4ax.com> 186842 optima5 inpaths!
Jun  7 07:48:59.518 + localhost 
<eg51t7h288cppo9jlgub5s1lrecc1aplq6@4ax.com> 204963 optima5 inpaths!
Jun  7 08:52:04.582 + localhost 
<ef51t75ibmslt9hj7glje8l889agg4j1kg@4ax.com> 201898 optima5 inpaths!
Jun  7 09:10:51.893 + localhost 
<qc51t7plsir56t76s1gb4k70opg3kr0tfv@4ax.com> 313786 optima5 inpaths!

The syslog:

Jun  7 07:17:01 n102 /USR/SBIN/CRON[4591]: (root) CMD (   cd / && 
run-parts --report /etc/cron.hourly)
Jun  7 08:17:01 n102 /USR/SBIN/CRON[5542]: (root) CMD (   cd / && 
run-parts --report /etc/cron.hourly)
Jun  7 09:17:01 n102 /USR/SBIN/CRON[6470]: (root) CMD (   cd / && 
run-parts --report /etc/cron.hourly)
Jun  7 10:17:01 n102 /USR/SBIN/CRON[7417]: (root) CMD (   cd / && 
run-parts --report /etc/cron.hourly)
Jun  7 11:17:01 n102 /USR/SBIN/CRON[8416]: (root) CMD (   cd / && 
run-parts --report /etc/cron.hourly)

The /etc/cron.d/inn2 file:

10,40 *    * * *    news    pullnews -c ~/.pullnews -p 119 -Q1 -O -M 600 
-S 1200 -l /var/log/news/pullnews.log

Guessing from the logged times, the failures are not happening at the 
cron.d time when Pullnews is run, which would seem to take suspicion 
away from Pullnews.

However, the times of the second and fourth e-mail message are the same 
as the third and fourth times in the news log (07:48 and 08:52).

Pullnews: # RCSId:        $Id: pullnews.in 8960 2010-02-08 20:54:10Z 
iulius $
Perl:  *** 5.10.1-17squeeze3 0
Debian version: 6.0.4 "Squeeze"
Linux n102 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 i686 
GNU/Linux
INN: INN 2.5.2 Compiled (not an APT package):

Not a known ongoing problem, but interesting.


-- 
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: <jqqno6$96o$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!zen.net.uk!dedekind.zen.co.uk!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <jqqno6$96o$1@n102.xanadu-bbs.net>
Subject: Cron, Perl and Pullnews
Date: Thu, 07 Jun 2012 12:17:58 -0500
From: "John F. Morse" <john@example.invalid>
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!zen.net.uk!dedekind.zen.co.uk!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 126
Reply-To: dont.bother
NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Thu, 7 Jun 2012 17:17:58 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
X-Enigmail-Version: 0.96.0