Thread View: news.software.nntp
4 messages
4 total messages
Started by Thierry Frati
Thu, 26 Sep 1996 00:00
questions regardind the Daily Usenet Report
Author: Thierry Frati
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
32 lines
1441 bytes
1441 bytes
Hello,
I'm hoping somebody can help me with my problem. Everyday i get
the following message on the report :
Renumbering active file.
Must be running
Already paused
Wrong reason
Expire messages:
expire begin Wed Sep 25 03:05:35 MET DST 1996: (-v1
'-d/export/InterNetNews/HISTORY' '-r' -z/var/log/news/expire.rm)
Group not matched (removed?) comp.sys.psion -- Using default
expiration
Group not matched (removed?) comp.lang.basic.visual -- Using default
expiration
Article lines processed 290676
Articles retained 290308
Entries expired 368
Files unlinked 0
Old entries dropped 210
Old entries retained 8831
expire end Wed Sep 25 03:06:43 MET DST 1996
---------
Any info will be appreciated,
Thierry
Submitting patches for INN (was Re: questions regardind the Daily Usenet Report)
Author: James Brister
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
13 lines
1030 bytes
1030 bytes
If you have patches that you want to see considered for the official INN source pool, then *please* mail a copy to <inn@isc.org>. I don't have time to read all the traffic here, and it's easy for me to miss what you post. Thanks James -- James Brister brister@vix.com Internet Software Consortium inn@isc.org
Re: questions regardind the Daily Usenet Report
Author: Dominic Giampaolo
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
33 lines
1708 bytes
1708 bytes
handler@netaxs.com (Michael Handler) writes: > In <324A2C1B.167EB0E7@cegelec-red.fr>, > Thierry Frati <tfrati@cegelec-red.fr> wrote: > > > Already paused > > Wrong reason > > Expire messages: > > expire begin Wed Sep 25 03:05:35 MET DST 1996: (-v1 > > '-d/export/InterNetNews/HISTORY' '-r' -z/var/log/news/expire.rm) > > I got bit by this one for a week until I figured it out. > Two weeks ago I too got bit by this very same bug and also discovered that you have to set REASON manually in the news.daily script for expiring to work (and when I finally did start expiring articles it had 355,000 of them to go through... :-) > INN peoples: here's the (elegant) patch someone posted to n.s.nntp the > last time this problem was discussed. I'd like to see this (or a > similar) patch rolled into the news.daily in INN 1.5, if this bug > hasn't already been corrected. Thanks. > [ patch to set REASON in news.daily ] > Definitely. Count this as my vote for applying this patch to news.daily for the next INN release. It really was frustrating to have to figure this problem out. --dominic
Re: questions regardind the Daily Usenet Report
Author: Michael Handler
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
135 lines
5868 bytes
5868 bytes
In <324A2C1B.167EB0E7@cegelec-red.fr>,
Thierry Frati <tfrati@cegelec-red.fr> wrote:
> Renumbering active file.
> Must be running
>
> Already paused
> Wrong reason
> Expire messages:
> expire begin Wed Sep 25 03:05:35 MET DST 1996: (-v1
> '-d/export/InterNetNews/HISTORY' '-r' -z/var/log/news/expire.rm)
I got bit by this one for a week until I figured it out.
You have set the EXPDIR variable manually by editing the news.daily
file directly. When you do this, the REASON variable is not set to
anything, and remains null. The REASON variable is the argument that
would be passed to -r in the expire command line above (-r *requires*
an argument). But, since you're not passing an argument to -r, it
interprets the next option on the command line
'-z/var/log/news/expire.rm', as the argument to -r! This (a) pauses
the news server with a strange "wrong" reason, and (b) prevents expire
from seeing the -z flag passed to it.
If you set the EXPDIR variable by passing 'expdir=/foo' on the
news.daily command line in cron, REASON gets set normally. But it
doesn't get set if you edit the EXPDIR= line in the news.daily script.
So, your options are to start passing expdir on the command line, or
edit your script to set REASON to something reasonable. ;)
INN peoples: here's the (elegant) patch someone posted to n.s.nntp the
last time this problem was discussed. I'd like to see this (or a
similar) patch rolled into the news.daily in INN 1.5, if this bug
hasn't already been corrected. Thanks.
From: Rafal Boni <rafal@scofflaw.coordinate.com>
Newsgroups: news.software.nntp
Subject: Re: INN being paused in news.daily and not unpausing??
Date: 2 Aug 96 16:38:34 GMT
Message-ID: <rafal.839003914@scofflaw>
ts@furiat.apk.net (Tomasz R Surmacz) writes:
|Rafal Boni (rafal@scofflaw.coordinate.com) wrote:
|:| I'm running unoff4 on a Sparc20 running Solaris 2.4... It seems to run
|:| just fine 99.44% of the time, but I'm having problems with the server
|:| being paused by news.daily and never being unpaused...
|...
|:| Can't replace history files, Cross-device link
|:| Also, what is the "can't replace history files" message mean?? My history
|:| file *is* on a different partition than /usr/local/news (the news lib dir)
|:| and the spool dir, but I thought this was an accepted configuration??
|Check permissions of directory where the history file is kept. It should be
|owned by news, group news with the write access for user.
I hate following up to my own questions, but I thought it was a
pretty interesting problem, so I'll summarize what was really
wrong and what I had to do to fix it...
(1) I don't think the fact that expire wasn't removing articles had
much to do w/my problem... I read the expire source and it turns
out that it pauses the server and in the case of the "can't
replace history files" exits leaving it paused...
(2) Since I had my history files in /var/spool/news.history and
not $NEWSLIB, I needed to set $EXPDIR in news.daily (or pass
it on the command line)... I don't know if subst if supposed
to run on news.daily or if somehow I had an older news.daily
sitting around (this machine was a private inn server that
did no expiring before...)
(3) news.daily needed the following patch to make it set $REASON
correctly whether 'expdir=' was specified on the command line
or set at the top of the script... If $REASON was empty, expire
would pass the next argument as the pause reason to ctlinnd and
life would go downhill from there...
Thanks for the ideas,
--rafal, part-time newsadmin and full-time engineer (you add that up 8-)
*** /usr/local/src/inn/inn1.4unoff4/site/news.daily Thu Jul 18 03:48:55 1996
--- /usr/local/news/bin/news.daily Wed Jul 31 23:02:40 1996
***************
*** 57,63 ****
;;
Xexpdir=*)
EXPDIR=`expr "${I}" : 'expdir=\(.*\)'`
- REASON="Expiring $$ on ${EXPDIR}"
;;
Xexpireover)
DOEXPIREOVER=true
--- 57,62 ----
***************
*** 109,115 ****
EXPDIR=
RMFILE=
}
! test -n "${EXPDIR}" && EXPIREFLAGS="${EXPIREFLAGS} '-d${EXPDIR}' '-r${REASON}'
"
test -n "${RMFILE}" && {
EXPIREFLAGS="${EXPIREFLAGS} -z${RMFILE}"
EXPIREOVERFLAGS="${EXPIREOVERFLAGS} -z ${RMFILE}"
--- 108,119 ----
EXPDIR=
RMFILE=
}
!
! test -n "${EXPDIR}" && {
! test -z "${REASON}" && REASON="Expiring $$ on ${EXPDIR}"
! EXPIREFLAGS="${EXPIREFLAGS} '-d${EXPDIR}' '-r${REASON}'"
! }
!
test -n "${RMFILE}" && {
EXPIREFLAGS="${EXPIREFLAGS} -z${RMFILE}"
EXPIREOVERFLAGS="${EXPIREOVERFLAGS} -z ${RMFILE}"
--
Rafal Boni rafal@scofflaw.coordinate.com
Software Engineer Coordinate.com
(All opinions are my own) 51 Sawyer Road, Waltham, MA 02154
--
Michael Handler <handler@netaxs.com> Net Access System Administration
Voice: (215) 576-8669 Support: support@netaxs.com
DNS: hostmaster@netaxs.com USENET: news@netaxs.com
"There's still crime in the city / But it's good to be free"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads