Article View: news.software.nntp
Article #82784Re: news.daily and missing innfeed.conf
From: Michael Grimm
Date: Thu, 11 Feb 2010 22:21
Date: Thu, 11 Feb 2010 22:21
147 lines
6666 bytes
6666 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Michael,
>> Now, only error messages for every .../spool/innfeed-xxx ...
>
> Every innfeed-xxx directories? Don't they exist?
I do have three innfeed directories:
/usr/local/news/spool/innfeed-000
/usr/local/news/spool/innfeed-001
/usr/local/news/spool/innfeed-002
but no:
/usr/local/news/spool/innfeed
Now the news.daily report throws the following error messages:
,----
| No such directory: /usr/local/news/spool/innfeed
|
| procbatch [ -q ][ -v ][ -u ][ -e host ][ -d dir ][ -c [ -s dir ]][ -m [-t dir ]] inn-batchfile
| [remaining part of procbatch help text]
|
| procbatch [ -q ][ -v ][ -u ][ -e host ][ -d dir ][ -c [ -s dir ]][ -m [-t dir ]] inn-batchfile
| [remaining part of procbatch help text]
|
| procbatch [ -q ][ -v ][ -u ][ -e host ][ -d dir ][ -c [ -s dir ]][ -m [-t dir ]] inn-batchfile
| [remaining part of procbatch help text]
| Server status:
| Server running
`----
Thus, before the regular report begins, the procbatch help is repeated
three times, just the number of innfeed-xxx directories found where the
default innfeed is expected.
These error messages are thrown by procbatch (any of those, I didn't
test which, but see further down):
,----
| die "No such directory: $spoolArts\n\n" . $usage if ( ! -d $spoolArts && $opt_c ) ;
| die "No such directory: $destDir\n\n" . $usage if ( ! -d $destDir ) ;
| die "No such directory: $tapeDir\n\n" . $usage if ( ! -d $tapeDir && $opt_m ) ;
`----
> Did you try:
>
> test -z "${INNFEEDSPOOL}" && test -d "${PATHSPOOL}/innfeed" && INNFEEDSPOOL="innfeed"
> test -n "${INNFEEDSPOOL}" && PROCBATCHDIR="${PATHSPOOL}/${INNFEEDSPOOL}"
>
> at lines 43 and 44 of news.daily, just after the definition of INNFEEDSPOOL with
> the awk command?
I tried ...
,----
| echo "1. INNFEEDSPOOL="${INNFEEDSPOOL}
| test -z "${INNFEEDSPOOL}" && test -d "${PATHSPOOL}/innfeed" && INNFEEDSPOOL="innfeed"
| echo "2. INNFEEDSPOOL="${INNFEEDSPOOL}
| test -n "${INNFEEDSPOOL}" && PROCBATCHDIR="${PATHSPOOL}/${INNFEEDSPOOL}"
| echo "3. INNFEEDSPOOL="${INNFEEDSPOOL}
| PROCBATCHDIR="${PATHSPOOL}/${INNFEEDSPOOL}"
| echo "PROCBATCHDIR= "${PROCBATCHDIR}
`----
with ...
,----
| 1. INNFEEDSPOOL=
| 2. INNFEEDSPOOL=
| 3. INNFEEDSPOOL=
| PROCBATCHDIR= /usr/local/news/spool/
`----
... at the shell. Thus, behaviour as expected.
> Is the following command returning that error string?
> test -d "/usr/local/news/spool/innfeed"
No error.
> if [ "${DOPROCBATCH}" = "true" ]
> then
> for DIRECTORY in ${PROCBATCHDIR}
> do
> if [ -d "${DIRECTORY}" ]
> then
> cd "${DIRECTORY}"
> [...]
I added the following debugging code ...
,----
| # Process files like "innfeed-dropped.A001703" where
| # 1703 is not in $INNFEEDLOCKS.
| for file in `find . -name "innfeed-dropped*" -print`
| do
| PID=`echo "$file" | ${SED} 's/^.*[A-Z]0*//'`
| FOUND=false
| for INNFEEDLOCK in $INNFEEDLOCKS
| do
| if [ "$PID" = "$INNFEEDLOCK" ]
| then
| FOUND=true
| fi
| done
| if [ "$FOUND" = "false" ]
| then
| echo " PID= "$PID
| echo "INNFEEDLOCK= "$INNFEEDLOCK
| echo " PATHBIN= "$PATHBIN
| echo " file= "$file
| ${PATHBIN}/procbatch -qmu $file
| echo "done."
| fi
| done
`----
... with the result ...
,----
| PID= 11134
| INNFEEDLOCK=
| PATHBIN= /usr/local/news/bin
| file= ./innfeed-000/innfeed-dropped.A011134
`----
Well, ...
,----
| feeder2|news> cat ../run/innfeed-000.pid
| 11134
`----
... that's a running innfeed without stale dropped files ...
,----
| feeder2|news> la ./innfeed-000/innfeed-dropped.A011134
| -rw-rw-r-- 1 news news 0 Feb 11 21:50 ./innfeed-000/innfeed-dropped.A011134
`----
... which is feeded to procbatch ...
,----
| feeder2|news> procbatch -qmu ./innfeed-000/innfeed-dropped.A011134
| No such directory: /usr/local/news/spool/innfeed
`----
... throwing the error message ...
,----
| procbatch [ -q ][ -v ][ -u ][ -e host ][ -d dir ][ -c [ -s dir ]][ -m [-t dir ]] inn-batchfile
`----
... I was seeing in my initial report.
Sorry, but I haven't had enough time tonight to debug this. But, Thank
God it's Friday, I'll continue tomorrow. Any ideas where to look next?
Regards,
Michael
--
to let
Technical Details
Message-ID:
<hl1vtc$13te$1@de-l.enfer-du-nord.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin2!goblin.stu.neva.ru!xlned.com!feeder3.xlned.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!reader.enfer-du-nord.net!not-for-mailReferences:
<hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com> <hkjo4s$4ri$1@de-l.enfer-du-nord.net> <hkjtok$gd6$1@news.trigofacile.com> <hkka52$2f2o$1@de-l.enfer-du-nord.net> <hkmtlc$b1v$1@news.trigofacile.com> <hkn9ln$1r2h$1@de-l.enfer-du-nord.net> <hksf98$p99$1@news.trigofacile.com> <hkv2la$1icg$1@de-l.enfer-du-nord.net> <hkv56b$c82$1@news.trigofacile.com> <hkv610$1vmo$2@de-l.enfer-du-nord.net> <hkv7g7$eid$1@news.trigofacile.com> <hkv9g5$1vmo$5@de-l.enfer-du-nord.net> <87pr4c4v6m.fsf@windlord.stanford.edu> <87ljf04v55.fsf@windlord.stanford.edu> <hkvah2$1vmo$6@de-l.enfer-du-nord.net> <hkvbms$id7$1@news.trigofacile.com> <hkvcf3$1vmo$7@de-l.enfer-du-nord.net> <hkvdmd$k3f$1@news.trigofacile.com> <7tj6qcFr37U1@mid.individual.net> <hl1qgc$ru5$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hl1vtc$13te$1@de-l.enfer-du-nord.net> Subject: Re: news.daily and missing innfeed.conf Date: Thu, 11 Feb 2010 22:21:32 +0000 From: Michael Grimm <trashcan@odo.in-berlin.de> References: <hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com> <hkjo4s$4ri$1@de-l.enfer-du-nord.net> <hkjtok$gd6$1@news.trigofacile.com> <hkka52$2f2o$1@de-l.enfer-du-nord.net> <hkmtlc$b1v$1@news.trigofacile.com> <hkn9ln$1r2h$1@de-l.enfer-du-nord.net> <hksf98$p99$1@news.trigofacile.com> <hkv2la$1icg$1@de-l.enfer-du-nord.net> <hkv56b$c82$1@news.trigofacile.com> <hkv610$1vmo$2@de-l.enfer-du-nord.net> <hkv7g7$eid$1@news.trigofacile.com> <hkv9g5$1vmo$5@de-l.enfer-du-nord.net> <87pr4c4v6m.fsf@windlord.stanford.edu> <87ljf04v55.fsf@windlord.stanford.edu> <hkvah2$1vmo$6@de-l.enfer-du-nord.net> <hkvbms$id7$1@news.trigofacile.com> <hkvcf3$1vmo$7@de-l.enfer-du-nord.net> <hkvdmd$k3f$1@news.trigofacile.com> <7tj6qcFr37U1@mid.individual.net> <hl1qgc$ru5$1@news.trigofacile.com> 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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin2!goblin.stu.neva.ru!xlned.com!feeder3.xlned.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!reader.enfer-du-nord.net!not-for-mail Newsgroups: news.software.nntp Organization: ATK - Alternative Tierklinik links der Einfalt Lines: 147 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: de-l.enfer-du-nord.net eJwFwQkBwDAIA0BL5QtUTqDDv4TdhUEw6Qh4bOx7UTb9vUJF4Xx8Y+YQJdW4vWuD0gsdpkQCbJ69lup01dxsl22JYnr+49IZxQ== X-Complaints-To: abuse@de-l.enfer-du-nord.net Cancel-Lock: sha1:MhnotEoC8FaNXTsyVM9JXF/lRts= User-Agent: slrn/pre1.0.0-15/mm/ao (Darwin) Mail-Copies-To: nobody