Thread View: news.software.nntp
3 messages
3 total messages
Started by Tom Limoncelli
Tue, 05 Apr 1994 15:31
Changes to INN FAQ Part 1/4: General Information
Author: Tom Limoncelli
Date: Tue, 05 Apr 1994 15:31
Date: Tue, 05 Apr 1994 15:31
436 lines
15980 bytes
15980 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff1
[ There was a problem with the 'diff' shell script I was
using. Diffs haven't been properly posted here since
the beginning of the year (maybe longer). So, here are
the diffs since Jan 1. ]
*** 1.50 1994/01/17 14:32:59
--- FAQ-inn.1 1994/03/24 16:59:44
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.1,v 1.50 1994/01/17 14:32:59 tal Exp $
Part 1 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.1,v 1.65 1994/03/24 16:59:42 tal Exp $
Part 1 of 4
***************
*** 23,28 ****
--- 23,29 ----
Where can I get the latest copy of this FAQ?
What is INN?
What machines does it run on?
+ INN must be really complicated since this FAQ is so long!
Can I run C News with INN?
Can I run NNTP with INN?
Can I run the reference implementation (NNTP1.5) with INN?
***************
*** 31,39 ****
Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
Is an ident or authorization protocol supported?
Does INN do UUCP batching like C News?
! Help!? How do I configure this beast?
! What can I do if I can't purchase the O'Reiley And
! Associates book on Managing Usenet?
SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
AIX tips
--- 32,39 ----
Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
Is an ident or authorization protocol supported?
Does INN do UUCP batching like C News?
! Help! How do I configure this beast?
! How do I thank the FAQ maintainer?
SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
AIX tips
***************
*** 47,52 ****
--- 47,53 ----
Mac running A/UX 3.0
NOV problems on a Pyramid
Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
+ Alpha OSF tips
The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
***************
*** 108,118 ****
--- 109,129 ----
get file faq-inn-4
^D
+ or if you csh and are a total nerd, you can:
+ echo 'get file new-inn.'{1,2,3,4}@ \
+ | tr @ '\012' | mail majordomo@warren.mentorg.com
+ ...or get a real hobby.
+
+
------------------------------
Subject: What is INN?
+ For a complete answer, why not read the Usenix paper that introduced
+ INN to the world? It's available as
+ ftp.uu.net:networking/news/nntp/inn/inn.usenix.ps.Z
+
InterNetNews is a complete Usenet system. The cornerstone of the package
is innd, an NNTP server that multiplexes all I/O. Think of it as an nntpd
merged with the B News inews, or as a C News relaynews that reads multiple
***************
*** 139,144 ****
--- 150,169 ----
------------------------------
+ Subject: INN must be really complicated since this FAQ is so long!
+
+ No, it's just that the FAQ is very complete. Part 2 is so long because
+ it includes a tutorial that tries to turn a beginner into an TCP/IP
+ protocol expert. Part 3 is long because the FAQ maintainer is
+ constantly trying to add every question ever asked on
+ news.software.nntp. Maybe someone should volunteer to maintain an
+ index.
+
+ A lot of the material could be integrated into the Install.ms doc.
+
+
+ ------------------------------
+
Subject: Can I run C News with INN?
No. INN handles all article reception, filing, forwarding, and
***************
*** 260,266 ****
The authd protocol is added to nnrpd by <nhiro@isci.kyutech.ac.jp>.
This unsupported patch can be found in
! ftp.geophys.hokudai.ac.jp:/pub/Network/INN/inn1.4/authd-patch-1.3.tar.gz.
The documentation is in Japanese. Good luck.
In a future release, you will be able to log all POST commands with
--- 285,291 ----
The authd protocol is added to nnrpd by <nhiro@isci.kyutech.ac.jp>.
This unsupported patch can be found in
! ftp.geophys.hokudai.ac.jp:/pub/network/news/inn/patches/authd-patch-1.3.tar.gz
The documentation is in Japanese. Good luck.
In a future release, you will be able to log all POST commands with
***************
*** 286,313 ****
------------------------------
! Subject: Help!? How do I configure this beast?
READ AND FOLLOW THE "Install.ms" FILE. This FAQ is meant to add to
what Install.ms says not replace it.
! You should also purchase the O'Reiley And Associates book on Managing
Usenet to give yourself a good grounding on how to run a site.
------------------------------
! Subject: What can I do if I can't purchase the O'Reiley
! And Associates book on Managing Usenet?
! Hold a fundraiser?
! Seriously, this document will help you some. HOWEVER many people have
! thought that the install.ms doc was incomplete but then re-read the
! "First Time Installation" portion and were amazed how much they missed
! (or just plain skipped) the first time. Personally, I've been a
! newsadmin for too long to be able to know if it would be good for
! beginners. :-)
======================================================================
--- 311,350 ----
------------------------------
! Subject: Help! How do I configure this beast?
READ AND FOLLOW THE "Install.ms" FILE. This FAQ is meant to add to
what Install.ms says not replace it.
! Many people that thought the Install.ms doc was incomplete later
! re-read the "First Time Installation" portion and were amazed how much
! they missed (or just plain skipped) the first time.
!
! You should also purchase the O'Reilly And Associates book on Managing
Usenet to give yourself a good grounding on how to run a site.
------------------------------
! Subject: How do I thank the FAQ maintainer?
! If you find this document useful, please consider making a donation to
! the maintainer's favorite charity:
! The Personal Liberty Fund
! PO Box 11335
! New Brunswick, NJ 08906-1335
! USA
!
! The PLF is a legal and educational organization which helps people in
! New Jersey, USA. They have many on-going projects which range from
! combating youth suicide to legal advocacy. Their Anti-Violence Project
! runs a phone hotline for reporting gay-bashing which helps hundreds of
! people a year. The PLF is an all-volunteer organization and couldn't
! survive without donations. The PLF is recognized by the IRS as a
! 501(c)3 tax-exempt charity. Donations are tax deductible to the
! fullest extent of the law (U.S. citizens only). Please write "INN" in
! the memo field of the check.
======================================================================
***************
*** 329,335 ****
--- 366,394 ----
different compress programm and change config.data accordingly.
(from Kurt Jaeger <pi@rus.uni-stuttgart.de>)
+ Q: innwatch doesn't work well from /etc/inittab, does it?
+
+ Q: Nope. Instead, you can create a "subsystem" with this command:
+
+ mkssys -s innwatch -p /usr/local/news/bin/innwatch -u news -G news -S -n 15 -f 9
+
+ Note that your path to innwatch may differ, depending on where you
+ decided to install the inn components. You also need to enter the
+ command as one long line.
+ This will create a subsystem named "innwatch" belonging to an SRC group
+ named "news". The "-S" means that it uses signals for SRC to tell it
+ when to stop and the "-n" is the SIGTERM signal, for normal shutdown,
+ and the "-f" is the SIGKILL signal, which is sent if the process does
+ not stop within 20 seconds. Then, modify rc.news to issue the command
+
+ startsrc -s innwatch
+
+ to get innwatch going. That's it!
+
+ Shane Castle <swcxt@boco.co.gov, swcxt@csn.org>
+
+
------------------------------
Subject: SunOS 4.1.2 tips
***************
*** 371,376 ****
--- 430,438 ----
Subject: HP-UX tips
+ Q. My logs keep telling me there is no space for articles
+ A. Edit innwatch.ctl to use "bdf" instead of "df".
+
Q. I am running inn on an HP machine. INN won't start up automatically.
I can start it manually. There is no problem with news or INN once
it is started.
***************
*** 386,401 ****
with Posix Session Leader concepts. Ick. (source: Steve Howie
<scotty@piranha.cs.uoguelph.ca>)
! HP-UX 8.07 users might find a problem with getting innwatch to
! start up. People have found that having "at" start it seems
! to work more reliably than other methods:
${DOINNWATCH} && {
! echo "su ${NEWSUSER} -c ${INNWATCH}" | /usr/bin/at now +2 minutes
! # echo "( ( sleep 60 ; ${INNWATCH} ) & )" | su ${NEWSUSER}
}
------------------------------
Subject: Pyramid and system's where only root can have "cron" jobs.
--- 448,466 ----
with Posix Session Leader concepts. Ick. (source: Steve Howie
<scotty@piranha.cs.uoguelph.ca>)
! HP-UX 8.x and 9.x users might find a problem with getting innwatch to
! start up. People have found that having "at" start it seems to work
! more reliably than other methods:
${DOINNWATCH} && {
! echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
}
+ The '&' in the command line prevents innwatch from taking up an at-job
+ slot. SysV-style crons have a per-category and overall limit on the
+ number of jobs executing simultaneously.
+
------------------------------
Subject: Pyramid and system's where only root can have "cron" jobs.
***************
*** 434,450 ****
Don't be fooled. Just because it compiles doesn't mean it's going to
work.
!
! ------------------------------
! Subject: Solaris 2.x special needs
- Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
- at the beginning of each file using gethostbyname():
! #define gethostbyname __switch_gethostbyname
! Under Solaris 2.3 you still
Under Solaris 2.x (where x = 0, 1, 2 or 3) you need to change
the file "getfqdn.c". Find the lines that read:
--- 499,524 ----
Don't be fooled. Just because it compiles doesn't mean it's going to
work.
! If you start innd on an AT&T SysV Rel 4.0 machine and get syslog
! messages like:
! localhost:15 cant setsockopt(SNDBUF) Protocol error
! localhost:15 cant setsockopt(RCVBUF) Protocol error
! then you should FIRST try to change HAVE_UNIX_DOMAIN to "DONT" in
! config.data. If that doesn't fix the problem, you should comment out
! the "setsockopt()" calls and things will work.
!
! Many SVR4 for i486 binaries (sendmail, mh, vmail, innd, rnews are now
! on ftp.germany.eu.net in pub/comp/i486/svr4/*.SVR4.tgz But remember
! that some of the above need site specific changes, so their usefulness
! may be limited.
! If your SVR4 system still doesn't run correctly, check the
! Solaris 2.x suggestions.
! ------------------------------
! Subject: Solaris 2.x special needs
Under Solaris 2.x (where x = 0, 1, 2 or 3) you need to change
the file "getfqdn.c". Find the lines that read:
***************
*** 458,471 ****
and delete them.
------------------------------
Subject: Mac running A/UX 3.0
! Use the INN malloc.
------------------------------
Subject: NOV problems on a Pyramid
--- 532,586 ----
and delete them.
+ Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
+ at the beginning of each file using gethostbyname():
+
+ #define gethostbyname __switch_gethostbyname
+
+ Under Solaris 2.3 gethostbyname() might work without changes depending
+ on your configuration. We haven't figured out when they work and when
+ they don't. If you run into problems, try to change "gethostbyname()"
+ to "solaris_gethostbyname()" and then use the gethostbyname() listed in
+ the Solaris Porting FAQ. This isn't a perfect solution, because you
+ now need a different binary for Solaris 2.[012] systems.
+
+ It would be great if someone were to submit a solaris_gethostbyname()
+ function who's binary works under all Solaris revs and gives all the
+ semantics of BSD gethostbyname(). In particular, one that doesn't have
+ the problems discussed in sun bugid #1126573 or #1135988. It would be
+ amazing if this was submitted by one of the many Sun employees that
+ flame the INN FAQ maintainer in comp.sys.sun.admin everytime he bitches
+ about how much he hates Solaris 2.x. :-)
+
+ Under all Solaris 2.* versions there is a problem with innwatch.ctl.
+ It expects to use "df -i" to find out how many inodes are free on your
+ disk. /usr/{sbin,5bin,bin}/df doesn't support the "-i" option. You
+ have to use "/usr/ucb/df -i" instead, since this version of df includes
+ the "-i" option.
+
------------------------------
Subject: Mac running A/UX 3.0
! Tip #1: Use the INN malloc.
!
! Tip #2: If you are running INN 1.4 on a Mac running A/UX 3.0.1, Every
! so often, (generally when someone fires up a reader), INN goes beserk.
! Syslog says:
!
! innd: ME cant select Bad file number
!
! This message repeats about 20 times per second. It freezes up my
! computer and I need to reboot.
!
! That's a kernel bug. You do have to reboot.
+ If you compiled inn with gcc, don't. My experience was that somehow, if
+ INN was compiled with GCC the kernel bug is triggered, but that doesn't
+ happen with cc.
+
------------------------------
Subject: NOV problems on a Pyramid
***************
*** 521,525 ****
issue the "mode reader" command) or they must read news via the file
system instead of NNTP.
! There is no way around this right now.
--- 636,665 ----
issue the "mode reader" command) or they must read news via the file
system instead of NNTP.
! If you have NNTP-based newsreaders that can't send the "mode reader"
! command, you can try including "server: localhost" in your inn.conf
! file, but then you must have a different inn.conf file for the other
! machines. If you can't do that, you have no other options but to
! recompile your newsreaders.
!
! Remember, if you change your inn.conf file, you must shutdown and
! restart innd. There is no "ctlinnd reload inn.conf" command.
!
!
! ------------------------------
!
! Subject: Alpha OSF tips:
!
! To compile INN for the DEC Alpha, follow the instructions in the INN
! patch archive on ftp.pop.psu.edu:/pub/src/news/inn-patches
!
! In rc.news you need to start $INNWATCH using the following:
!
! ${DOINNWATCH} && {
! echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
! }
!
! The '&' in the command line prevents innwatch from taking up an at-job
! slot. SysV-style crons have a per-category and overall limit on the
! number of jobs executing simultaneously.
Changes to INN FAQ Part 2/4: Debugging Guide & Tutorial
Author: Tom Limoncelli
Date: Tue, 05 Apr 1994 15:34
Date: Tue, 05 Apr 1994 15:34
263 lines
11132 bytes
11132 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff2
[ There was a problem with the 'diff' shell script I was
using. Diffs haven't been properly posted here since
the beginning of the year (maybe longer). So, here are
the diffs since Jan 1. ]
*** 1.13 1994/01/17 14:32:59
--- FAQ-inn.2 1994/03/31 21:21:59
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.2,v 1.13 1994/01/17 14:32:59 tal Exp $
Part 2 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.2,v 1.25 1994/03/31 21:21:56 tal Exp $
Part 2 of 4
***************
*** 25,30 ****
--- 25,31 ----
syslog message: ME internal no control and/or junk group
syslog message: Can't setup communication (bind failure)
syslog message: ME bad_newsfeeds no feeding sites
+ syslog message: ME cant GetConfigValue
THE DEBUGGING TUTORIAL:
Should I read the Install.ms file in its entirety
before reading this document?
***************
*** 42,47 ****
--- 43,49 ----
How does the "ME" line interact with the other lines?
Cookbook example of an outgoing NNTP feed.
Cookbook example of an outgoing UUCP feed.
+ Cookbook example of an outgoing UUCP-over-TCP feed.
Testing an outgoing feed (your "newsfeeds" configuration).
Other cron jobs.
Cookbook example setting up NOV ("overchan").
***************
*** 48,53 ****
--- 50,56 ----
How do I use nntplink with INN?
How do I use newsgate with INN?
OTHER ERROR MESSAGES AND WHAT THEY MEAN:
+ ld.so: Undefined symbol: _dbzwritethrough
Why does my innd often die with the message "Can't sync history..."
syslog message: ME cant sendto CCreader bytes 4 No such file
or directory.
***************
*** 57,62 ****
--- 60,68 ----
"cant fopen <newsgroup>/.thread No such file or directory"
news.daily reports: "Expire had problems removing articles"
syslog: ME cant nonblock 15 Operation not supported.
+ innd: ME cant update_active control
+ syslog message: innxmit[1234]: max connect failed Error 0
+ Can't open "/usr/local/news/shlock955", Permission denied
=====================================================================
***************
*** 126,131 ****
--- 132,152 ----
dummy-feed:!*::
+ ------------------------------
+
+ Subject: syslog message: ME cant GetConfigValue
+
+ Jan 12 17:38:06 galaxy innd: ME cant GetConfigValue pathhost Error 0
+ ^^^^^^^^
+
+ This means you don't have "pathhost:" in your inn.conf.
+
+ GetConfigValue is the routine that gets data out of the inn.conf file.
+ If you get the above error, it means you don't have a particular value
+ in your inn.conf. Run "inncheck -v" usually will tell you what you
+ need to do.
+
+
=====================================================================
THE DEBUGGING TUTORIAL
(or, What do I do after Install.ms?)
***************
*** 883,888 ****
--- 904,966 ----
------------------------------
+ Subject: Cookbook example of an outgoing UUCP-over-TCP feed:
+
+ jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
+
+ People ask about this like it was something exotic requiring special
+ setup. Kind of like: "I know how to use a wheel barrow and I know how
+ to shovel sand but how do I shovel sand in a wheel barrow?"
+
+ Step 1: Set up a UUCP/TCP connection between you and the destination
+ site. How? Read your UUCP documentation. If your, and the
+ desitination's, UUCP supports UUCP/TCP then it will be documented. If
+ not then get a better version of UUCP.
+
+ The point is to get the UUCP/TCP link working before even thinking
+ about sending news over it. This is true of any news feed over UUCP;
+ even dialup. Try using "uucp" to copy some scratch file to the other
+ end. When you have that working then you are ready for the next step.
+
+ The only "gotcha" here that I can think of is that the destination host
+ may not be accepting UUCP/TCP connections. Before wasting your time
+ trying to debug do a "telnet destination.host.name uucp" and see what
+ happens. If the connection is accepted and you see a "login" banner
+ then it is ready for you. If not then ask the admin of that site to
+ enable UUCP/TCP. This is typically done by uncommenting it in
+ /etc/inetd.conf and -HUPing inetd (on REAL versions of Unix).
+
+ Step 2. Set up a standard compressed news feed to the UUCP name of the
+ destination site. How? Read your news documentation. Setting up UUCP
+ feeds is a standard, documented, procedure. In this FAQ you'll find it
+ in "Cookbook example of an outgoing UUCP feed". Doing compression is
+ nothing special, it's part of the procedure you would be doing anyway.
+ It's either a flag or a slighly different command. The news system has
+ NO knowledge that this is UUCP/TCP. For all it knows this is a
+ standard dialup connection. In fact is is possible to have the UUCP
+ connection fall back to dialup if the TCP connection fails. The news
+ batching software just doesn't care.
+
+ The only variation here I can think of is to make the batch size bigger
+ than the default. The 50K default was picked back in the days when
+ modems were 1200 BPS (or even 300). It is no longer appropriate for
+ todays 9600 BPS or faster connections. Using a bigger batch size cuts
+ down on dead time in the connection and lets compress do a better job.
+ I would go to at least 200K batches.
+
+ Now maybe it would be nice to have a "cookbook", step by step, set of
+ instructions on how to do this. But UUCP seems to vary a bit between
+ different versions so what might work at one place would be useless at
+ another. And setting up the news feed is going to be different between
+ the different versions of news (B, C, and INN).
+
+ I suggest that if people are having trouble setting up a UUCP/TCP
+ connection that they post their configuration to the net and ask how it
+ is done on their versions of Unix and UUCP.
+
+
+ ------------------------------
+
Subject: Testing an outgoing feed (your "newsfeeds" configuration).
Here is a decent game-plan for testing your newsfeeds configuration:
***************
*** 963,969 ****
Step 6: (optional) To create the original database:
(run this as "news")
! % /usr/local/news/bin/expireover -a -s
If you skip this step, access will be slow for articles that came
in before you started "overchan". This is not a problem. You
--- 1041,1048 ----
Step 6: (optional) To create the original database:
(run this as "news")
! % /usr/local/news/bin/expireover -a
! % /usr/local/news/bin/expireover -s
If you skip this step, access will be slow for articles that came
in before you started "overchan". This is not a problem. You
***************
*** 1072,1077 ****
--- 1151,1175 ----
------------------------------
+ Subject: ld.so: Undefined symbol: _dbzwritethrough
+
+ > Everything compiles correctly, but when I try to test rc.local I get:
+ >
+ > hermes# sh /usr/local/etc/rc.news
+ > ld.so: Undefined symbol: _dbzwritethrough
+ >
+ > What am I doing wrong?
+
+ This means that you are using a $INN/lib/dbz.c file that hasn't been
+ patched with the $INN/lib/dbz.pch patch. Apply that patch file to
+ dbz.c and rebuild libinn.a et al. and things should be copacetic. See
+ section "5.2 The DBZ package" of the Install.ms document. This might
+ have happened if you don't have the "patch" program (available from any
+ FSF/GNU archive).
+
+
+ ------------------------------
+
Subject: Why does my innd often die with the message "Can't sync history,
interrupted system call"
***************
*** 1166,1171 ****
--- 1264,1275 ----
ctlinnd renumber ''
to get things synchronized again.
+ If your history file is corrupt, you should do:
+ ctlinnd renumber ''
+ makehistory -buv
+ ctlinnd renumber ''
+ (Note: the "makehistory" will take hours to run.)
+
------------------------------
***************
*** 1238,1240 ****
--- 1342,1384 ----
ignore it.
+ ------------------------------
+
+ Subject: innd: ME cant update_active control
+
+ What does "innd: ME cant update_active control" mean?
+
+ Look at your active file. One of the fields is "99999" and has to be
+ incremented to "100000" but there is no space. Shut down innd
+ ("ctlinnd shutdown x"). Edit your active file to add more leading
+ zero's to all the numbers. Restart innd.
+
+
+ ------------------------------
+
+ Subject: syslog message: innxmit[1234]: max connect failed Error 0
+
+ John Line <jml4@cus.cam.ac.uk> writes:
+
+ If you get syslog messages like "innxmit[1234]: max connect failed
+ Error 0" when using nntpsend, it probably means you messed up a line in
+ nntpsend.ctl (specifically, missed out one of the first two fields).
+ While nntpsend.ctl is an obvious place to look for an nntpsend problem,
+ there is nothing obvious to link the error message directly to the
+ problem, because the text "max" is actually something invented by
+ nntpsend when processing the file, and doesn't exist in nntpsend.ctl.
+ It means the next-to-last field was null, but was the second field when
+ it should have been the third!
+
+ NB Remember to try inncheck when you have problems like this. I only
+ just thought of it, after finding the problem the hard way, and it
+ immediately reported "nntpsend.ctl:18: malformed line."
+
+
+ ------------------------------
+
+ Subject: Can't open "/usr/local/news/shlock955", Permission denied
+
+ This usually means you don't have /usr/local/news owned by "news". The
+ first time you run "make install" it should set the proper ownership if
+ you run "make install" as "root".
Changes to INN FAQ Part 3/4: Operational and Misc. Questions
Author: Tom Limoncelli
Date: Tue, 05 Apr 1994 15:37
Date: Tue, 05 Apr 1994 15:37
509 lines
19255 bytes
19255 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff3
No differences encountered
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Psst! Hey, Anthony! Y'know what I | Disclaimer: I do not
like about existing?" "Uh... uh... what?" | speak for Mentor Graphics.
"Possessing a physical extension." -TSA |
*** 1.48 1994/01/17 14:30:24
--- FAQ-inn.3 1994/03/31 21:14:54
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.3,v 1.48 1994/01/17 14:30:24 tal Exp $
Part 3 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.3,v 1.61 1994/03/15 20:09:03 tal Exp $
Part 3 of 4
***************
*** 32,37 ****
--- 32,39 ----
Suddenly my active and history files are owned by root!
How come my host name comes out twice in the Path line?
Expire had problems last night, and while I fixed the problem,
+ expire reports "Group not matched (removed?) --
+ Using default expiration"
Why doesn't this newsfeeds entry do what I want?
Why am I forwarding cancel messages for articles in comp.foo
Debugging someone that is feeding you.
***************
*** 42,55 ****
Directories are being created with wrong permissions.
Why am I getting alt.sex.pictures even though I have
More about the "to.*" groups
HOW DO I... (Big changes you can make to the system):
How do I set up a delayed IHAVE/SENDME over NNTP?
Can I use gzip with INN?
What do I do if /var/spool/news is set up over many partitions?
BUGS IN 1.4:
! (this section currently empty)
BUGS IN 1.3:
7-bit encoded batches are not correctly processed. Why is this?
BUGS IN 1.2:
Why doesn't nntpget work?
--- 44,65 ----
Directories are being created with wrong permissions.
Why am I getting alt.sex.pictures even though I have
More about the "to.*" groups
+ What's a decent syslog.conf configuration?
+ INN batcher writing "#!rnews 0" separators
+ Posting while throttled doesn't work
+ "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
+ "newgroup" control messages aren't being executed
HOW DO I... (Big changes you can make to the system):
How do I set up a delayed IHAVE/SENDME over NNTP?
Can I use gzip with INN?
What do I do if /var/spool/news is set up over many partitions?
+ archiving expired articles
BUGS IN 1.4:
! Security Patch
! Looping Select Patch
BUGS IN 1.3:
7-bit encoded batches are not correctly processed. Why is this?
+ NOV (overchan) doesn't work well.
BUGS IN 1.2:
Why doesn't nntpget work?
***************
*** 74,79 ****
--- 84,93 ----
Subject: Safe way to edit the "active" file?
+ First of all, you could manipulate the active file using the ctlinnd
+ "newgroup", "rmgroup" and "changegroup" commands. However, sometimes
+ you just need to do a lot of editing all at once:
+
The following sequence is the shortest:
ctlinnd pause "edit active"
***************
*** 81,87 ****
ctlinnd reload active "edit active"
ctlinnd go "edit active"
! Simple! No need to "flush", the "pause" does that.
------------------------------
--- 95,142 ----
ctlinnd reload active "edit active"
ctlinnd go "edit active"
! Simple! No need to "flush" since the "pause" does that.
!
! > What if I need to delete 3000 lines from my active file?
!
! I would definately edit the active file manually (using
! the above procedure).
!
! > What if I need to delete 10 lines from my active file?
!
! For a couple quick changes, I recommend using "ctlinnd". This is a
! little slow because all channels are closed and reopened after each
! "rmgroup", "newgroup", and "changegroup". However, it's easier than
! remembering the above sequence.
!
! DO NOT THROTTLE THE SERVER WHEN DOING MULTIPLE rmgroup COMMANDS. There
! is a bug in INN (all versions) that will shred your active file if you
! do multiple "rmgroup" messages while the server if throttled. This is
! a common mistake. People think the "rmgroup"'s will go faster if the
! server is throttled. It will go faster, it will also shred your active
! file.
!
! If you have a large number of groups to remove or create, you can use
! awk to write a script to do the work for you.
!
! % cat thelist
! alt.foo.bar
! alt.delete.me
! comp.sys.mac
! % awk <thelist '{ print "ctlinnd rmgroup " $1 }'
! ctlinnd rmgroup alt.foo.bar
! ctlinnd rmgroup alt.delete.me
! ctlinnd rmgroup comp.sys.mac
!
! Now, you can either send the output of that to "| sh -x",
! or you can redirect the output to a file, and "source" the
! file.
!
! If you want to create a bunch of newsgroups, the awk
! command might be like this:
!
! % awk <thelist \
! '{ print "ctlinnd newgroup " $1 " y user@host" }' | sh -x
------------------------------
***************
*** 132,139 ****
STEP 6: When you feel you are ready to install the new $INN/site files:
! % cd $INN/site
! % make install
STEP 7: Re-start the system:
--- 187,194 ----
STEP 6: When you feel you are ready to install the new $INN/site files:
! # cd $INN/site
! # make install
STEP 7: Re-start the system:
***************
*** 140,146 ****
% sh /usr/lib/news/etc/rc.news
STEP 8: If everything was done right you should be up and running.
! Part ??? of the FAQ gives tips on testing your configuration.
------------------------------
--- 195,201 ----
% sh /usr/lib/news/etc/rc.news
STEP 8: If everything was done right you should be up and running.
! Part 2 of the FAQ gives tips on testing your configuration.
------------------------------
***************
*** 211,218 ****
------------------------------
! Subject: Expire had problems last night, and while I fixed the problem,
! it still won't run.
When expire starts up it "reserves" the server so that nobody else can
pause or throttle it. This prevents anyone else from coming in and
--- 266,273 ----
------------------------------
! Subject: Expire had problems last night, and while I fixed the
! problem, it still won't run.
When expire starts up it "reserves" the server so that nobody else can
pause or throttle it. This prevents anyone else from coming in and
***************
*** 225,230 ****
--- 280,300 ----
------------------------------
+ Subject: expire reports "Group not matched (removed?) --
+ Using default expiration"
+
+ Expire says:
+ Group not matched (removed?) alt.techno-shamanism -- Using default expiration
+ Group not matched (removed?) misc.computers.forsale -- Using default expiration
+ Group not matched (removed?) de.rec.sf.startrek -- Using default expiration
+
+ That just means that you've removed those newsgroups groups and expire
+ is slowly removing articles from the spool as they expire. Eventually
+ the articles will all have been deleted and so will these messages.
+
+
+ ------------------------------
+
Subject: Why doesn't this newsfeeds entry do what I want?
"foo.com:alt,!alt.sex"
***************
*** 369,377 ****
it. If a control message is posted to a group whose name
ends with the four characters ``.ctl'' then the suffix is
stripped off and what is left is used as the group name.
! For example, a cancel message posted to ``news.admin.ctl''
will be sent to all sites that subscribe to ``control'' or
! ``news.admin.''
There is also a pointer to this in newsfeeds(5).
--- 439,447 ----
it. If a control message is posted to a group whose name
ends with the four characters ``.ctl'' then the suffix is
stripped off and what is left is used as the group name.
! For example, a cancel message posted to ``news.admin.misc.ctl''
will be sent to all sites that subscribe to ``control'' or
! ``news.admin.misc''.
There is also a pointer to this in newsfeeds(5).
***************
*** 380,385 ****
--- 450,593 ----
Yes.
+ ------------------------------
+
+ Subject: What's a decent syslog.conf configuration?
+
+ The configuration will be different for each site, but here is what
+ Greg Earle recommends as the lines for the "news.*" related part.
+ Remember that most syslog's require tabs, not spaces.
+
+ Greg's canonical SunOS 4.1.x INN-related syslog.conf entries (which can
+ be merged into your current configuration):
+
+ #
+ # INN stuff
+ #
+ ## Send critical messages to everyone who is logged in and to the console.
+ news.crit *
+ news.crit /dev/console
+
+ ## Log news messages to separate files.
+ ## Note that each level includes all of the above it.
+ ## =()<news.crit @<_PATH_MOST_LOGS>@/news.crit>()=
+ news.crit /var/log/news/news.crit
+ ## =()<news.err @<_PATH_MOST_LOGS>@/news.err>()=
+ news.err /var/log/news/news.err
+ ## =()<news.notice @<_PATH_MOST_LOGS>@/news.notice>()=
+ news.notice /var/log/news/news.notice
+
+
+ ------------------------------
+
+ Subject: INN batcher writing "#!rnews 0" separators
+
+ >Outgoing UUCP batches from here are going out with "#!rnews 0" at
+ >the head of each article.
+
+ Most common cause: your newsfeeds entry has "Wnm" not "Wnb".
+
+ Other reasons:
+
+ batchfiles have something other than a single space between article
+ filename and size
+
+ batchfiles lack size information (all the articles sizes will be read
+ from the batch file as zero)
+
+
+ ------------------------------
+
+ Subject: Posting while throttled doesn't work
+
+ >I want to be able to allow my users to be able to post articles when
+ >innwatch has throttled the system when the spool disk is "full".
+
+ Cannot be done in 1.4.
+
+ At a minimum, in 1.5 nnrpd will spool the post for the user.
+
+
+ ------------------------------
+
+ Subject: "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
+
+ > About once a month or so, I get the following warning messages:
+ >
+ > Jan 20 07:20:22 optima innd: overview!:31:proc:9193 cant flush count 14639 Operation would block
+ > Jan 20 07:20:22 optima innd: overview! spooling 14639 bytes
+ >
+ > And there's a file "overview!" in /usr/spool/news/out.going with stuff in it.
+ >
+ > Should I be doing anything more with this than ignoring it, and maybe
+ > occasionally deleting it (it just grows)?
+
+ This happens because innd is feeding info to overchan faster than
+ overchan can process it. The overflow is sent to the file
+ "overview!". This file can be deleted, as nnrpd will grab the missing
+ data out of the articles "manually". The slow-down won't be noticed.
+ However, you can "expireover -a" to "fill in the holes".
+
+ To prevent this in the future, you need to make overchan run faster.
+ This is easy to do. I found that moving the overview files into
+ /usr/spool/news/over.view made things fast enough that the problem went
+ away. Change "_PATH_OVERVIEWDIR" in config.data, recompile, and you're
+ done. (You will need to recompile any newsreaders that read via NFS or
+ off the local disk).
+
+ Why does that speed up overchan? overchan works by opening the proper
+ .overview file, appending 1 line to it, then closing the file. If you
+ have the .overview file in the same directory as 10000 articles then
+ opening the .overview file will take a huge amount of time. The open()
+ call literally searches though an average 5000 (half of 10000) file
+ names to find ".overview". If you move your .overview files so that
+ each one is in it's own directory, (say,
+ /usr/spool/news/over.view/{group}/{name}/.overview) then open() is
+ searching through 3 files ( ".", "..", and ".overview") to find 1
+ file. ( O(N/2) where N=10000 vs. N=3... and you thought those
+ freshman year CS classes would never be useful!)
+
+ There isn't much you can do to make the "append" and "close" steps much
+ faster, except maybe install a PrestoServe or similar write-cache, and
+ that won't help very much.
+
+ Profiling overchan (with PureSoft's Quantify product) found that the
+ open() (actually searching the directory to find the .overview file)
+ was around 80% of the execution time of overchan. That was reduced to
+ 40% when I moved the .overview files to their own directory. With the
+ change, overview's profiling statistics are pretty flat. (which is
+ good).
+
+ DO run "expireover -a" to fix the problem.
+
+ DO NOT try feeding the "overview!" file to overchan manually.
+ (1) overchan doesn't do any locking and you'll have two overchan's
+ running at once.
+ (2) overchan only appends to the .overview files. If you've gotten
+ any articles since the "overview!" file was created (you will
+ have) then you'll be appending told old entries that are out of
+ order. Your ".overview" files must be in sorted order for the
+ other utilities to work right.
+
+
+ ------------------------------
+
+ Subject: "newgroup" control messages aren't being executed
+
+ > "newgroup" control messages aren't be executed
+
+ The usual blame for this is _PATH_EGREP points to a grep that doesn't
+ understand regular expressions. For example, GNU grep only understands
+ regular expressions if it is called "egrep" (i.e. not "gnuegrep" or
+ "egnugrep").
+
+ Make sure you have a link or symlink between egnugrep and egrep. You
+ then need to modify config.data so that _PATH_EGREP is
+ /your/local/path/egrep and NOT /your/local/path/egnuegrep. Then
+ recompile and "make install" to have the new binaries and shell
+ scripts installed.
+
+
=====================================================================
HOW DO I... (Big changes you can make to the system)
=====================================================================
***************
*** 555,568 ****
find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
=====================================================================
BUGS IN 1.4
=====================================================================
! (this section currently empty, it will soon have the 2-3 unofficial
! patches that are sometimes needed.)
=====================================================================
BUGS IN 1.3
=====================================================================
--- 763,827 ----
find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
+ ------------------------------
+
+ Subject: archiving expired articles
+
+ In <2hmomh$262@news.iastate.edu> rod@iastate.edu writes:
+ >What options do I have in INN for archiving local newsgroups?
+
+ See doc/archive.8. You could also put "never:never:never" in your
+ expire.ctl file.
+
+ >Any help would be appreciated. Any cookbook examples would also help.
+
+ A cookbook newsfeeds entry:
+ # Feed all moderated source postings to an archiver
+ source-archive!:!*,*sources*,!*wanted*,!*.d\
+ :Tc,Nm,Wn:/usr/local/bin/archive -f -i /usr/spool/news.archive/INDEX
+
+
+ ------------------------------
+
+ Subject: How do I set up inpaths with INN?
+
+ inpaths should work just fine with INN as it ships. However, you can
+ make it run faster by using the following shell script. Edit it to
+ your tastes. It replaces the long "(cd /var/spool/news ;
+ /usr/local/bin/gfind . -type f -print | /usr/lib/news/local/inpaths sdl
+ | /usr/ucb/mail admin,pathsurvey@decwrl.dec.com )" which people usually
+ use.
+
+ #!/bin/sh
+ . /home/news/innshellvars
+ cd ${SPOOL}
+ awk '(NR > 2){print $3}' < ${HISTORY} | tr . / | sort | \
+ inpaths `innconfval pathhost` | \
+ ${MAILCMD} pathsurvey@decwrl.dec.com
+
+
=====================================================================
BUGS IN 1.4
=====================================================================
! UNOFFICIAL patches for INN 1.4 are available via anonymous FTP at
! ftp://ftp.pop.psu.edu/pub/src/news/inn-patches/
!
! The file ftp://ftp.pop.psu.edu/pub/src/news/inn-patches/README describes
! each of the UNOFFICIAL patches.
!
! The ones that are highly recommended are:
+ 1.4-to-1.4sec -- Fixes the major security hole in INN.
+ 1.4sec-to-1.4sec2 -- Fixes the remaining known security hole in INN.
+
+ select-loop-bug.patch -- Under some circumstances innd can lose track
+ of a file descriptor and end up sitting in a select() loop. If your
+ INN suddenly is using up tons of CPU time and not getting much done,
+ install this UNOFFICIAL patch. Some OSs are more susecptible to this
+ bug.
+
=====================================================================
BUGS IN 1.3
=====================================================================
***************
*** 580,585 ****
--- 839,853 ----
fixed in INN 1.4.
+ ------------------------------
+
+ Subject: NOV (overchan) doesn't work well.
+
+ Correct. The NOV support in 1.3 didn't have all the bugs worked out.
+ Don't use NOV under INN 1.3. Better yet, upgrade to 1.4sec and get all
+ the benefits!
+
+
=====================================================================
BUGS IN 1.2
(Hey, it's 1994! Upgrade already!)
***************
*** 589,595 ****
Subject: Why doesn't nntpget work?
! The nntpget in INN 1.2 doesn't work. Period. Upgrade to the latest version
! of INN.
--- 857,863 ----
Subject: Why doesn't nntpget work?
! The nntpget in INN 1.2 doesn't work. Period. Upgrade to the latest
! version of INN.
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