Article View: news.software.nntp
Article #2027Changes to FAQ: The INN Tutorial (plus Debugging FAQ) (Part 2 of 3)
From: Tom Limoncelli
Date: Mon, 05 Jul 1993 04:00
Date: Mon, 05 Jul 1993 04:00
189 lines
9405 bytes
9405 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff2
*** FAQ-inn.2-lastposted Sat Jun 5 00:00:03 1993
--- FAQ-inn.2 Mon Jul 5 00:00:17 1993
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.2,v 1.27 1993/04/30 19:17:23 tal Exp $
The INN CONFIGURATION FAQ
-------------------------
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.2,v 1.30 1993/06/25 15:54:41 tal Exp tal $
The INN CONFIGURATION FAQ
-------------------------
***************
*** 44,49 ****
--- 44,50 ----
syslog message: ME internal no control and/or junk group
syslog message: ME bad_newsfeeds no feeding sites
Why do all these "readclose" messages show up in my syslog?
+ "File exists writing symlinking article file -- throttling"
MISC QUESTIONS
Can I edit my configuration files where they are, or do I have
to edit them in $INN/site ?
***************
*** 395,416 ****
file have to be specified based on what "nntphost" calls "client".
Technically, nntpd uses gethostbyaddr() to reverse-lookup the name.
gethostbyaddr() uses DNS or, if you are on a brain-dead Sun running
! Sun's brain-dead NIS/DNS hack, it uses NIS, or DNS, or whatever the
! hell Sun was thinking when they created that cruft.
To find out what "nntphost" thinks your machine is called, do the
! following: log into "client". From "client" telnet to "nntphost" and
! log in. On "nntphost" give the "finger" command with no arguments.
! The last column is what "nntphost" thinks your machine is called. If
! you don't have an account on both machines things are more difficult,
! consult your NIS or DNS expert to tell you what the answer should be.
! So, with this knowledge and a copy of the man page, edit nnrp.access
! and add "nntphost"'s name for "client" to the file. Only nnrp.access
! can have wildcards (for example, "*.sjc.mentorg.com"). You'll want to
! include wildcards for all the domains that should be allowed to
! read/post.
Here are some decent examples from my nnrp.access file:
-------------------------------------- Tom's nnrp.access file START
--- 396,424 ----
file have to be specified based on what "nntphost" calls "client".
Technically, nntpd uses gethostbyaddr() to reverse-lookup the name.
gethostbyaddr() uses DNS or, if you are on a brain-dead Sun running
! Sun's NIS/DNS hack, it uses NIS, or DNS, or whatever the hell Sun was
! thinking when they created that cruft.
To find out what "nntphost" thinks your machine is called, do the
! following: Telnet from "client" to "nntphost" and execute the "finger"
! command (just "finger" alone on the command line). The last column is
! what "nntphost" thinks your machine is called.
! If you don't have an account on both machines things are more
! difficult, consult your NIS or DNS expert to tell you what the answer
! would be.
+ There is one exception to this technique. If you are using SunOS and
+ braindead NIS you get just the machine name (like "milk") instead of
+ the FQDN (like "milk.warren.mentorg.com") then you must tack on a
+ period then the domain of the machine.
+
+ So, with this knowledge (what your nntphost think's client's name is)
+ and a copy of the man page, edit nnrp.access and add "nntphost"'s name
+ for "client" to the file. Only nnrp.access can have wildcards (for
+ example, "*.sjc.mentorg.com"). You'll want to include wildcards for
+ all the domains that should be allowed to read/post.
+
Here are some decent examples from my nnrp.access file:
-------------------------------------- Tom's nnrp.access file START
***************
*** 419,426 ****
*.mentorg.com:Read:::*
*.mentor.com:Read:::*
*.warren.mentorg.com:Read Post:::*
- # local (NIS) machines should match this:
- *[^.]*:Read Post:::*
-------------------------------------- Tom's nnrp.access file END
The second field of "nnrp.access" is case sensitive. "read post" does
--- 427,432 ----
***************
*** 427,439 ****
not mean the same as "Read Post". If you know this already it's
because you read the man page.
! It is difficult to write a wildcard for "all machine in your NIS/YP
! domain" since they aren't FQDN's. A wildmat expression for "all
! clients without FQDN's" is "*[^.]*". In other words, "all hosts
! without periods in their name." (See above example.) If you are using
! DNS without NIS, a hacked libresolv, resolv+ or other tricks then you
! might not need this line. Or, those tricks might be the reason why you
! need this line. Isn't networking fun?
After you change "nnrp.access" you don't have do "ctlinnd reload" since
the file is read by each nnrpd as they start up.
--- 433,444 ----
not mean the same as "Read Post". If you know this already it's
because you read the man page.
! Note: nnrpd will append the domain to a name that is not a FQDN.
! There is no need to try to find a wildcard that will match non-FQDN
! names (i.e. machines in your local NIS cluster). Previously this FAQ
! had reported that "*[^.]*" would match these names but that was wrong
! (the wildcard matches everything, oi!). nnrpd turns non-FQDN's into
! FQDNs.
After you change "nnrp.access" you don't have do "ctlinnd reload" since
the file is read by each nnrpd as they start up.
***************
*** 543,548 ****
--- 548,565 ----
get this error. Look at your PATH_TEMPACTIVE and see if it makes
sense; i.e., if it is a valid /tmp directory.
+ "inews -h" sometimes reports:
+ Can't send article to the server:
+ 441 480 Transfer permission denied
+ This means that you set HAVE_UNIX_DOMAIN to DONT and you don't have
+ your news server in its own hosts.nntp file. (nnrpd gets a POST,
+ connects to innd over a TCP socket and sends an IHAVE.) (thanks to Chris
+ Jackson <cjj@sun.com> for pointing this out). Add your news server's
+ name to hosts.nntp and do "ctlinnd reload hosts.nntp".
+ If it still doesn't work, look through your syslog to see the name
+ of the host that INND got, and what it handed off to nnrpd. Perhaps
+ there is a DNS/NIS/hosts-file mismatch. (suggested by Rich Salz)
+
Other problems are usually the result of not being able to find the
"inn.conf" file (copy it to the client or make it available via NFS) or
you are using Sun's brain-dead NIS/DNS stuff which doesn't do reverse
***************
*** 582,587 ****
--- 599,608 ----
"inn.conf" and recompile INN with "INEWS_PATH" set to
"DONT". (I don't know why Rich likes that as the default!)
+ REMEMBER: inn.conf is read into innd only once. If After it is changed,
+ the innd daemon must be shutdown and restarted. (use "ctlinnd shutdown x"
+ and then run rc.news as root).
+
If "inews -h" posts a message, smile because most of the battle is over.
***************
*** 895,900 ****
--- 916,943 ----
Solution: ask your feed to fix its nntplink-setup. Let me repeat
that: If you are using "nntplink" your -e value must be higher than
your -C value.
+
+
+ ------------------------------
+
+ Subject: "File exists writing symlinking article file -- throttling"
+
+ QUESTION: I'm running INN 1.4, and the server throttles itself, saying
+ "File exists writing symlinking article file -- throttling". Why? I
+ have no clue, other than to note that the message is being emitted
+ while innd/art.c tries to link a crossposted group.
+
+ ANSWER: Innd wrote the article to comp/foo/123 and then tried to
+ symlink it to alt/bar/128 and found that the symlink failed with errno
+ == EEXIST. This generally only happens when your active file does not
+ match your file/directory use. The two most common cases of that are:
+
+ Trying to use MMAP on Ultrix
+ Some strange interaction with tind.
+
+ Make sure nobody else is writing to the active file, then do
+ ctlinnd renumber ''
+ To get things synchronized again.
======================================================================
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that | Disclaimer: I do not
they have new email. I run '/bin/true'". | speak for Mentor Graphics.
Technical Details
Message-ID:
<inn-faq-changes-2-741844837@Warren.MENTORG.COM>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!gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!sdl!not-for-mailReferences:
<inn-faq-changes-1-741844837@Warren.MENTORG.COM>Show Full Headers
Complete Article Headers
Message-ID: <inn-faq-changes-2-741844837@Warren.MENTORG.COM> Subject: Changes to FAQ: The INN Tutorial (plus Debugging FAQ) (Part 2 of 3) Date: Mon, 05 Jul 1993 04:00:40 +0000 From: tal@Warren.MENTORG.COM (Tom Limoncelli) References: <inn-faq-changes-1-741844837@Warren.MENTORG.COM> 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!gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!sdl!not-for-mail Newsgroups: news.software.nntp,news.software.b,news.answers Supersedes: <inn-faq-changes-2-739252815@Warren.MENTORG.COM> Followup-To: news.software.nntp Organization: Mentor Graphics - IC Group, Warren, NJ, USA Lines: 188 Approved: news-answers-request@MIT.Edu Distribution: world Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli) NNTP-Posting-Host: sdl.warren.mentorg.com