🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3259

Changes to INN FAQ Part 2/4: Debugging & Configuring Information

#3259
From: Tom Limoncelli
Date: Mon, 09 Jan 1995 09:14
377 lines
15884 bytes
Posted-By: post_faq 2.10
Archive-name: usenet/software/inn-faq/diff2


*** FAQ-inn.2.lastpost	Fri Dec 30 00:19:46 1994
--- FAQ-inn.2	Sun Jan  8 22:10:12 1995
***************
*** 8,14 ****
  
  Posted-By: post_faq 2.10
  Archive-name: usenet/software/inn-faq/part2
! Last Changed: $Id: FAQ-inn.2,v 1.53 1994/12/28 14:06:58 tal Exp $
  
                    Part 2 of 4
  
--- 8,14 ----
  
  Posted-By: post_faq 2.10
  Archive-name: usenet/software/inn-faq/part2
! Last Changed: $Id: FAQ-inn.2,v 1.62 1995/01/08 14:13:38 tal Exp $
  
                    Part 2 of 4
  
***************
*** 164,185 ****
  
  Subject:  syslog message: ME internal no to group
  
! Nelson Minar <nelson@reed.edu> discovered the hard way that:
  
- If you set MERGE_TO_GROUPS to "DO",
  
- You have to have a "to" group listed in your "active" file or you will
- get the above syslog message and innd will not start.
- 
- 
  ------------------------------
  
  Subject:  syslog message: ME internal no control and/or junk group
  
  You must have a newsgroup named "control" and a newsgroup named
! "junk" for innd to start.
  
  
  ------------------------------
  
  Subject:  syslog message: Can't setup communication (bind failure)
--- 164,190 ----
  
  Subject:  syslog message: ME internal no to group
  
! If you set MERGE_TO_GROUPS to "DO", you have to have a "to" group
! listed in your "active" file or you will get the above syslog message
! and innd will not start.  You can edit the active file directly if innd
! isn't running.
  
  
  ------------------------------
  
  Subject:  syslog message: ME internal no control and/or junk group
  
  You must have a newsgroup named "control" and a newsgroup named
! "junk" for innd to start.  Since innd isn't running, you can edit
! the active file directly
  
+ Add these lines:
  
+ control 0000000000 0000000000 y
+ junk 0000000000 0000000000 y
+ 
+ --tal
+ 
  ------------------------------
  
  Subject:  syslog message: Can't setup communication (bind failure)
***************
*** 766,771 ****
--- 771,781 ----
  INN kit, active and history rebuilding, and all possible configuration
  checking.  *sigh*"
  
+ "inews -h" sometimes reports: 'Warning, can't connect to server'
+ What server is it trying to connect to?  Remember, inews uses
+ the NNTPSERVER environmental variable and (if that isn't set) looks
+ in /usr/lib/news/inn.conf.
+ 
  INN's inews sometimes prints the error: "Can't get list of newsgroups,
  No such file or directory.".  inews called CAlistactive() to get a
  local copy of the active file.  If it can't reach the active file you
***************
*** 806,811 ****
--- 816,825 ----
  If you get something like:
  	500 "GROUP"" not implemented; try "help".
  This implies that the client host is in hosts.nntp, not nnrp.access.
+ However, if you need to have this machine in in the hosts.nntp file
+ (i.e. it is a feeder or you have an operating system that requires you
+ to set HAVE_UNIX_DOMAIN to DONT) then your newsreader must send a "mode
+ reader" to the server when it connects.
  
  Once you get "inews -h -D" working, do the same test without the "-D" option
  and let it actually post the message.  If it can't post, it will tell
***************
*** 1028,1036 ****
  
  NOTE: I know that "plts" is unique and won't conflict with
  some other site named "plts" because it is registered
! in the UUCP Maps.
  
  
  ------------------------------
  
  Subject:  Cookbook example of an outgoing UUCP-over-TCP feed:
--- 1042,1062 ----
  
  NOTE: I know that "plts" is unique and won't conflict with
  some other site named "plts" because it is registered
! in the UUCP Maps (see comp.mail.maps).
  
+ If your feeder is sending you netnews via UUCP (which is usually the
+ case, since it isn't useful to just feed articles and not receive any)
+ you must configure your UUCP to allow the remote system to execute
+ rnews.  Your UUCP documentation should tell you how to set up a UUCP
+ connection and how to change the allowed commands.  That means that
+ uucico will execute /bin/rnews on every incoming batch.  INN comes with
+ a perfectly servicable "rnews" program that can handle all the standard
+ batched and compressed news formats.  The INN rnews will uncompress and
+ unbatch as necessary and then pass each article to innd for
+ processing.  (Thanks to Jerry Aguirre <jerry@roma.ATC.Olivetti.Com> for
+ this paragraph)
  
+ 
  ------------------------------
  
  Subject:  Cookbook example of an outgoing UUCP-over-TCP feed:
***************
*** 1124,1136 ****
  
  40 23 * * *               /usr/lib/news/bin/news.daily delayrm
  
! If you get news feeds via UUCP, you might want to add this cron
! job (also as "news") which checks to see if any batches arrived
! while innd was down and processes them.
! 
  20 * * * *                /bin/rnews -U
  
  
  ------------------------------
  
  Subject:  Cookbook example of setting up NOV ("overchan").
--- 1150,1164 ----
  
  40 23 * * *               /usr/lib/news/bin/news.daily delayrm
  
! You should also have a line like this:
  20 * * * *                /bin/rnews -U
  
+ This processes any batches or posts that came in while innd was down.
+ (i.e. when users post and get a message like, "Server down, spooling
+ locally" this command picks up those files and posts them).  It can't
+ hurt to run this more often, but once an hour should be fine.
  
+ 
  ------------------------------
  
  Subject:  Cookbook example of setting up NOV ("overchan").
***************
*** 1144,1165 ****
  davek@melita.com (Dave Kennedy) ) writes:
  
  Step 1:  Upgrade to INN 1.4 or higher:  Most of the bugs in 1.3 were
! related with overchan.  In fact, the only reason why many people used 1.3
! without any problems was due to the fact that they were not using
! overchan (and they didn't hit on some of the bugs that appeared for SVR4
! users, all of which were fixed in 1.4)
  
! Step 1.5:  Make sure your _PATH_OVERVIEWDIR in config.data is NOT set
! to "/var/spool/news".  There is a big performance boost to be realized
! by putting it elsewhere.  (To find out why, read "innd: overview!
! spooling" and the file "overview!" in /usr/spool/news/out.going" in
! Part 2/4 of this FAQ) "/var/spool/news/over.view" is becoming the
! standard place to put put your ".overview" files.  If you do not use
! this location, make /var/spool/news/over.view  a symbolic link to the
! correct place.  For performance reasons, it is a good idea to set
! _PATH_OVERVIEWDIR to the actual location of the files.  (NOTE: If
! you change config.data, you must do a "make all" and "make install").
  
  Step 2:  Make sure INN is working.  Get everything else working before
  you try to get overchan to work.  You'll only confuse yourself.
  
--- 1172,1197 ----
  davek@melita.com (Dave Kennedy) ) writes:
  
  Step 1:  Upgrade to INN 1.4 or higher:  Most of the bugs in 1.3 were
! related with overchan.  In fact, the only reason why many people used
! 1.3 without any problems was due to the fact that they were not using
! overchan (and they didn't hit on some of the bugs that appeared for
! SVR4 users, all of which were fixed in 1.4)
  
! Step 1.5:  Make sure _PATH_OVERVIEWDIR in config.data is NOT set to
! "/var/spool/news".  There is a big performance boost to be realized by
! putting the NOV files outside the /var/spool/news hierarchy.
  
+ To find out why, read "Subject: overchan can't keep up." in part 3 of
+ this FAQ.  You might want to read this anyway since it gives advice
+ about other things to do to get better NOV performance.
+ 
+ "/var/spool/news/over.view" is becoming the standard place to put put
+ your ".overview" files.  If you do not use this location, make
+ /var/spool/news/over.view a symbolic link to the correct place.  For
+ performance reasons, it is a good idea to set _PATH_OVERVIEWDIR to the
+ actual location of the files.  NB:  if you change config.data, you must
+ do a "make all" and "make install".
+ 
  Step 2:  Make sure INN is working.  Get everything else working before
  you try to get overchan to work.  You'll only confuse yourself.
  
***************
*** 1167,1175 ****
  additional 10%-20% of your news spool.  This is a good 100 Mb if you
  have a full feed.  The real space savings come when you delete your
  separate databases for trn, nn, and tin and use one unified database.
! All serious newsreaders will have NOV support soon.
  
! Step 4:  Edit overview.fmt (it's in the $INN/site directory, or you can
  edit it where it was installed, in /usr/lib/news ) to include
  "Xref:full" as the last line.  (i.e. uncomment out the last line).
  
--- 1199,1207 ----
  additional 10%-20% of your news spool.  This is a good 100 Mb if you
  have a full feed.  The real space savings come when you delete your
  separate databases for trn, nn, and tin and use one unified database.
! All serious newsreaders have NOV support.
  
! Step 4:  Edit "overview.fmt" (it's in the $INN/site directory, or you can
  edit it where it was installed, in /usr/lib/news ) to include
  "Xref:full" as the last line.  (i.e. uncomment out the last line).
  
***************
*** 1210,1221 ****
  "news.daily" output until you have received at least one new article
  in each newsgroup.
  
! [ Note:  "a lot of warnings" means one for every newsgroup.  This can
  make your news.daily report >6000 lines.  The lines will all look like:
  overchan cant open clari/local/washington/.overview, No such file or directory
  overchan cant open clari/local/sfbay/.overview, No such file or directory
  overchan cant open uc/news/.overview, No such file or directory
- ]
  
  Step 9:  Change the invocation of news.daily:
  
--- 1242,1253 ----
  "news.daily" output until you have received at least one new article
  in each newsgroup.
  
! Note:  "a lot of warnings" means one for every newsgroup.  This can
  make your news.daily report >6000 lines.  The lines will all look like:
+ 
  overchan cant open clari/local/washington/.overview, No such file or directory
  overchan cant open clari/local/sfbay/.overview, No such file or directory
  overchan cant open uc/news/.overview, No such file or directory
  
  Step 9:  Change the invocation of news.daily:
  
***************
*** 1333,1339 ****
  Why might the patch fail and leave you with an unpatched dbz.c?
  
  1)  You don't have Larry Wall's (or the FSF's) "patch" program
! installed.
  
  2)  Most C++ compilers based on USL's cfront come with a program called
  "patch" that does something completely different than Larry Wall's (or
--- 1365,1371 ----
  Why might the patch fail and leave you with an unpatched dbz.c?
  
  1)  You don't have Larry Wall's (or the FSF's) "patch" program
! installed.  It is available at ftp://prep.ai.mit.edu/pub/gnu/patch-2.1.tar.gz
  
  2)  Most C++ compilers based on USL's cfront come with a program called
  "patch" that does something completely different than Larry Wall's (or
***************
*** 1348,1353 ****
--- 1380,1398 ----
  
  ------------------------------
  
+ Subject: Bad file number writing history file -- throttling
+ 
+ The system ulimit was set restrict files from growing beyond a certain
+ size and the history file was to large for the limit. Check the ulimit
+ setting for the news user.
+ 
+ The ulimit should be set to infinite.  You need to figure out how to
+ set this for user "news" no matter if the user logged in, is running
+ from cron, or was run at boot up.
+ 
+ 
+ ------------------------------
+ 
  Subject: log file fills with "<site> <article-id> 436 No space"
  
  innd issues this message if it cannot create a directory for a group,
***************
*** 1391,1402 ****
  
  Subject:  syslog: cant read Connection reset by peer
  
! This means that the client vanished.  Most, or all, of these messages
! are due to clients crashing or being aborted in the middle of a
! dialogue with nnrpd.  For example, a PC or Mac user shuts off their
! machine at 5pm.
  
  
  ------------------------------
  
  Subject:  inews says "bad message-id"
--- 1436,1453 ----
  
  Subject:  syslog: cant read Connection reset by peer
  
! This means that the client vanished or deliberately aborted the nnrpd
! TCP stream rather than closing it gracefully.  This is a common
! situation, and it does not normally indicate a problem.
  
+ Most, or all, of these messages are due to clients crashing or being
+ aborted in the middle of a dialogue with nnrpd.  For example, a PC or
+ Mac user shuts off their machine at 5pm.  Or, you are seeing the
+ results of a bad design decision in the NewsWatcher newsreading program
+ for the Mac.  Future versions of NewsWatcher will be (hopefully) more
+ graceful about closing connections.
  
+ 
  ------------------------------
  
  Subject:  inews says "bad message-id"
***************
*** 1456,1463 ****
  It has been reported that tind writes to the active file and this
  confuses innd (innd assumes it is the only process writing to the
  active file).  If you are using tin, upgrade to the newest version of
! tin which can read the overview (NOV) database instead of the "tin"
! database.
  
  To fix the active file (which may be corrupted), make sure nobody
  else is writing to the active file, then do
--- 1507,1513 ----
  It has been reported that tind writes to the active file and this
  confuses innd (innd assumes it is the only process writing to the
  active file).  If you are using tin, upgrade to the newest version of
! tin, it can read the NOV database rather than the "tin" database.
  
  To fix the active file (which may be corrupted), make sure nobody
  else is writing to the active file, then do
***************
*** 1530,1535 ****
--- 1580,1591 ----
  the client's DNS information is incorrect, you will get this error.
  Make sure your SOA record is correct, as well as your in-addr.arpa
  data.
+ 
+ Derek <ddl@clipper.ssb.com> adds that another cause for this problem,
+ at least under SunOS 4.1.x, is that nnrpd wasn't linked with the proper
+ resolver library (statically or dynamically).  Even when you've
+ replaced Sun's fershlugger libresolv.a you've still gotta remind
+ yourself to _use_ it properly.
  
  
  ------------------------------

-- 
        Tom Limoncelli -- tal@plts.org (home) -- tal@big.att.com (work)
I know of job openings in New Jersey for:
     Extremely good Unix sysadmins with great people skills,
     Lotus Notes support people, PPP/SLIP PC/MAC/Unix experts.
Technical Details
Message-ID: <dnn2_789642843@plts.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.answers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!usenet.eel.ufl.edu!usenet.cis.ufl.edu!usenet.ufl.edu!gatech!swrinde!pipex!uunet!newsgw.mentorg.com!sdl!plts!not-for-mail
References: <inn2_789642843@plts.org>

Show Full Headers
Complete Article Headers
Message-ID: <dnn2_789642843@plts.org>
Subject: Changes to INN FAQ Part 2/4: Debugging & Configuring Information
Date: Mon, 09 Jan 1995 09:14:20 +0000
From: tal@plts.org (Tom Limoncelli)
References: <inn2_789642843@plts.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.answers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!fnnews.fnal.gov!usenet.eel.ufl.edu!usenet.cis.ufl.edu!usenet.ufl.edu!gatech!swrinde!pipex!uunet!newsgw.mentorg.com!sdl!plts!not-for-mail
Newsgroups: news.software.nntp,news.software.b,news.answers
Supersedes: <dnn2_788764782@plts.org>
Followup-To: news.software.nntp
Organization: P.L.T.S., Bridgewater Twp, New Jersey, USA
Lines: 376
Approved: news-answers-request@MIT.EDU
Distribution: inet
Reply-To: tal@plts.org (Tom Limoncelli)
NNTP-Posting-Host: plts.org
Summary: This article is part 2 of a multi-part FAQ