🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by David Miller Wed, 22 Feb 1995 15:45
INN server on Linux periodically stops responding to input
#3386
Author: David Miller
Date: Wed, 22 Feb 1995 15:45
55 lines
3131 bytes
Every three or four days, the GSA news server stops responding: 
no telnet, news, mail; you can't even sign in at the console - it 
never presents a password prompt!

Since I can't find any problems with the INN configuration I tend to 
think there's some kind of problem with Linux.

After the cold boot and the file system checks, and INND restarts, 
it always reports "INN shut down during expire".  It then proceeds 
to delete all files in expire.rm.

Any ideas what could be causing this?  I've just spent a few 
hours combing over the server configuration.  The facts are these:

- Linux Slackware 2.1, Linux kernel 1.1.91 (INN re-compiled under
the new kernel).  486/dx2/66, 32 MB RAM, 256 KB cache, one
540-MB IDE drive, Adaptec 1542CF host adapter, one 4Gig
Micropolis SCSI drive.

- a few weeks ago I installed a new, 4Gig hard drive.  Linux 
won't build a filesystem greater than 2G, so I built two 2Gig
filesystems; /dev/sda2 at /var/spool/news, /dev/sda1 at 
/var/spool/news/alt.  This is when the problem started.

- I did exactly what the INN FAQ says to do when your news 
spool is spread over many partitions.  Expire does run with 
"expire -v1 -l".  RMPROC is set to "expire -e -s ${SPOOL}".

- The news.daily cron entry contains: news.daily delayrm expireover

- In news.daily "set defaults" section, DOEXPIREOVER = false. 
 I believe this is over-ridden by the above CRON entry.

- I've been all over the FAQ and the man pages; the only hole I 
can find in INN configuration is this.  Overview data is posted to 
/var/spool/news/overview, rather than to /var/spool/news.  
I don't pass EXPIREOVER the "-D" flag to tell it about the proper 
location.  I'm not sure this could cause the problem, since the 
system seems to shut down before it gets to EXPIREOVER.

- Since I'm running Linux, I have "HAVE_UNIX_DOMAIN = DONT".  
This is said to cause some kind of problems, I'm not sure exactly 
what.

- The Linux "messages" log shows three kinds of interesting errors:
           - "XXX tried to do a shared writeable mapping" where XXX 
is some part of INN (INND, NNRPD)
           - "eth0: missed interrupt, status then 2011 now 2000"
           - "eth0: transmit timed out, tx_status 00 status 2000"

Thanks for any help you can give.

-- Dave

Re: INN server on Linux periodically stops responding to input
#3387
Author: bill davidsen
Date: Thu, 23 Feb 1995 14:11
62 lines
3843 bytes
In article <3ifm7l$3ku@limper.gsa.gov>,
David Miller <david.miller@gsa.gov> wrote:
| Every three or four days, the GSA news server stops responding: 
| no telnet, news, mail; you can't even sign in at the console - it 
| never presents a password prompt!
| 
| Since I can't find any problems with the INN configuration I tend to 
| think there's some kind of problem with Linux.

I think hardware could be involved, too, based on your later info.

| - Linux Slackware 2.1, Linux kernel 1.1.91 (INN re-compiled under
| the new kernel).  486/dx2/66, 32 MB RAM, 256 KB cache, one
| 540-MB IDE drive, Adaptec 1542CF host adapter, one 4Gig
| Micropolis SCSI drive.

I refuse to guess if the o/s version is a good one, since I haven't
run it. You only have one SCSI drive so several of my favorite
things to try don't apply.

| - I did exactly what the INN FAQ says to do when your news 
| spool is spread over many partitions.  Expire does run with 
| "expire -v1 -l".  RMPROC is set to "expire -e -s ${SPOOL}".
| 
| - The news.daily cron entry contains: news.daily delayrm expireover
| 
| - In news.daily "set defaults" section, DOEXPIREOVER = false. 
|  I believe this is over-ridden by the above CRON entry.

And presumably it all works for a few days, so you really do have it
setup right.

| - I've been all over the FAQ and the man pages; the only hole I 
| can find in INN configuration is this.  Overview data is posted to 
| /var/spool/news/overview, rather than to /var/spool/news.  
| I don't pass EXPIREOVER the "-D" flag to tell it about the proper 
| location.  I'm not sure this could cause the problem, since the 
| system seems to shut down before it gets to EXPIREOVER.

Now I'm confused, do you only expire every few days? Otherwise, it
does get to this, and hopefully it works. Without the -D it may have
the right directory from config.data, or may be building dummy
overview files in /var/spool/news.

| - The Linux "messages" log shows three kinds of interesting errors:
|            - "XXX tried to do a shared writeable mapping" where XXX 
| is some part of INN (INND, NNRPD)
|            - "eth0: missed interrupt, status then 2011 now 2000"
|            - "eth0: transmit timed out, tx_status 00 status 2000"

Yes, you get lots of these "shared writable" messages, and I don't
remember what causes (nor do I have my notes here). The ethernet
messages are a lot more interesting, you *may* be having a net
problem which causes a kernel failure. You listed all your hardware
*except* the net adaptor type. Since I had problems with a bad
adaptor I may be over sensitive to this, but the 1.1.85 kernel
didn't like a lot of errors, and eventually stopped responding just
as you describe. A new card ended the problem for me.

I suggest you try to track what's happening with your network first,
since that's the best clue I see.
Re: INN server on Linux periodically stops responding to input
#3389
Author: David Miller
Date: Thu, 23 Feb 1995 15:45
55 lines
3615 bytes
In article <3ii533$ql2@usenetw1.news.prodigy.com>
davidsen@tmr.com (bill davidsen) wrote:

> | - I've been all over the FAQ and the man pages; the only hole I 
> | can find in INN configuration is this.  Overview data is posted to 
> | /var/spool/news/overview, rather than to /var/spool/news.  
> | I don't pass EXPIREOVER the "-D" flag to tell it about the proper 
> | location.  I'm not sure this could cause the problem, since the 
> | system seems to shut down before it gets to EXPIREOVER.
> 
> Now I'm confused, do you only expire every few days? Otherwise, it
> does get to this, and hopefully it works. Without the -D it may have
> the right directory from config.data, or may be building dummy
> overview files in /var/spool/news.

Expire runs every night.  When it works right, it gets to expireover, and
expireover doesn't seem to have problems.  When the machine
locks up, it has always locked up before getting to expireover (it
locks during expire).

> | - The Linux "messages" log shows three kinds of interesting errors:
> |            - "XXX tried to do a shared writeable mapping" where XXX 
> | is some part of INN (INND, NNRPD)
> |            - "eth0: missed interrupt, status then 2011 now 2000"
> |            - "eth0: transmit timed out, tx_status 00 status 2000"
> 
> Yes, you get lots of these "shared writable" messages, and I don't
> remember what causes (nor do I have my notes here). The ethernet
> messages are a lot more interesting, you *may* be having a net
> problem which causes a kernel failure. You listed all your hardware
> *except* the net adaptor type. Since I had problems with a bad
> adaptor I may be over sensitive to this, but the 1.1.85 kernel
> didn't like a lot of errors, and eventually stopped responding just
> as you describe. A new card ended the problem for me.
> 
> I suggest you try to track what's happening with your network first,
> since that's the best clue I see.

The net card is a 3Com EtherLink III (3c509).  I didn't really think it
could be a problem, both because it's such a common card I
figured the driver would be totally debugged by now, and because
the problem always seems to happen during expire.  If it was a net
card problem I would expect the problem to happen more randomly.
I'll check it out though.

I've also heard some other things.  The Adaptec 1542CF is said
to be abnormally sensitive to cable problems; since I'm using the
cable it came with, this seems unlikely.  Also, Linux might have
problems with the disk geometry; this seems a good line of attack.

Thanks for responding!

-- Dave

Re: INN server on Linux periodically stops responding to input
#3390
Author: Matthew S. Crocker
Date: Fri, 24 Feb 1995 12:01
57 lines
3505 bytes
David Miller (david.miller@gsa.gov) wrote:
: Every three or four days, the GSA news server stops responding: 
: no telnet, news, mail; you can't even sign in at the console - it 
: never presents a password prompt!

: Since I can't find any problems with the INN configuration I tend to 
: think there's some kind of problem with Linux.

: After the cold boot and the file system checks, and INND restarts, 
: it always reports "INN shut down during expire".  It then proceeds 
: to delete all files in expire.rm.

Let me take a wild stab here (actually I bet this is whats happening).

You have split the heirarchy onto seperate file systems and you are
using a symbolic link to connect them?  Expire will lock up the
machine tighter than a drum during the fastrm stage with this setup (I
know it happened to me).  The only way I found around this problem was
to mount the filesystem in the heirarchy (no symbolic linking)

: - Linux Slackware 2.1, Linux kernel 1.1.91 (INN re-compiled under
: the new kernel).  486/dx2/66, 32 MB RAM, 256 KB cache, one
: 540-MB IDE drive, Adaptec 1542CF host adapter, one 4Gig
: Micropolis SCSI drive.

We have basically this exact system running as our news server 'cept
we have 40 MB RAM and a 540 & 320 MB IDE,  the 540 is /usr/lib/news.
we have 2 2.1 Gb Seagate drives as spool.



: - a few weeks ago I installed a new, 4Gig hard drive.  Linux 
: won't build a filesystem greater than 2G, so I built two 2Gig
: filesystems; /dev/sda2 at /var/spool/news, /dev/sda1 at 
: /var/spool/news/alt.  This is when the problem started.

Hmm, are you using links for this or are you hard mounting???

Also, did you build your own INN or are you using the bins from
sunsite?

here is what my sight looks like

dns:~# df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda2             198275  139869    48161     74%   /
/dev/hdb1             511259  104540   380311     22%   /usr/lib/news
/dev/sda1            1825018 1236021   484550     72%   /var/spool/news
/dev/sdb1            2020858 1047638   868773     55%   /var/spool/news/alt
rmc1:/home/user1     2020858  380400  1536011     20%   /home/user1

--
-Matthew S Crocker               "The mask, given time, comes
matthew@crocker.com               to be the face itself."  -anonymous
*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*OS/2*
 *linux*linux*linux*linux*linux*linux*linux*linux*linux*linux*linux*linux*
Re: INN server on Linux periodically stops responding to input
#3394
Author: Robert Sanders
Date: Sat, 25 Feb 1995 05:02
20 lines
1635 bytes
In article <3ii533$ql2@usenetw1.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:

>| - The Linux "messages" log shows three kinds of interesting errors:
>|            - "XXX tried to do a shared writeable mapping" where XXX 

This means that something (namely innd and nnrpd) is trying to use mmap()
to read and alter a file.  This is still a no-no for Linux, so recompile
INN with ACT_STYLE set to READ.

>| is some part of INN (INND, NNRPD)
>|            - "eth0: missed interrupt, status then 2011 now 2000"
>|            - "eth0: transmit timed out, tx_status 00 status 2000"

Whether these are a real problem depends on your particular situation.
It's worth checking into, at least.

  -- Robert

Re: INN server on Linux periodically stops responding to input
#3397
Author: mister dna
Date: Sat, 25 Feb 1995 16:00
21 lines
1591 bytes
Matthew S. Crocker (matthew@crocker.com) wrote:

: You have split the heirarchy onto seperate file systems and you are
: using a symbolic link to connect them?  Expire will lock up the
: machine tighter than a drum during the fastrm stage with this setup (I
: know it happened to me).  The only way I found around this problem was
: to mount the filesystem in the heirarchy (no symbolic linking)


are you sure about this. I have my tree split in two parts using a 
softlink between the two file systems and the normal news.daily script 
workes fine and expires normally.

no kidding.

	-tek

--

-=- teknikl@deprog9.com -=-
Re: INN server on Linux periodically stops responding to input
#3405
Author: Martin Boening
Date: Wed, 01 Mar 1995 14:09
26 lines
1967 bytes
Hello,

In <3ink6m$69r@deprog9.com> teknikl@deprog9.com (mister dna) writes:

[stuff about symbolic links in spool area irritating fastrm deleted ]

>are you sure about this. I have my tree split in two parts using a 
>softlink between the two file systems and the normal news.daily script 
>workes fine and expires normally.

as long as you use the standard news.daily setup, this is true. The
previous poster mentioned using delayrm options and the fastrm program
though. This will indeed lead to problems, as is mentioned in the source
for fastrm or the script expirerm (don't remember which, right now). If
you use several spool partitions and symbolic linking, you can still use
the delayrm option: simply change expirerm to use the xargs mechanism
instead of the fastrm program. (Speaking for inn 1.4 sec)

So long,
Martin
--
Email.....: boening.pad@sni.de
Paper Mail: Martin Boening, Siemens Nixdorf Informationssysteme AG; 
            Dept.: MR OI 4, Heinz-Nixdorf-Ring 1, 33106 Paderborn, Germany  
Phone.....: +49 5251 815641
Re: INN server on Linux periodically stops responding to input
#3443
Author: Jerry Aguirre
Date: Wed, 08 Mar 1995 23:46
41 lines
3313 bytes
In article <3j1v7k$fek@news.sni.de> boening.pad@sni.de (Martin Boening) writes:
>as long as you use the standard news.daily setup, this is true. The
>previous poster mentioned using delayrm options and the fastrm program
>though. This will indeed lead to problems, as is mentioned in the source
>for fastrm or the script expirerm (don't remember which, right now). If
>you use several spool partitions and symbolic linking, you can still use
>the delayrm option: simply change expirerm to use the xargs mechanism
>instead of the fastrm program. (Speaking for inn 1.4 sec)

Let me first clarify that there are two issues related to symbolic links.
The first is symlinking directories.  For example if you link
/var/spool/news/alt to /news2 then you are linking a directory.  This
is what is being discussed here.

The other issue with symbolic links is cross posting of articles between
different file systems.  Thus if an article is cross posted to an "alt"
group and a "comp" group and those reside on different file systems then
a sybolic link is typically used to implement the cross posting.  This
results in issues related to expire, innwatch, and makehistory but not
to fastrm.

The problem with fastrm and symlinking directories is one of
breaking the "cd .." command.  When given the "-u" option fastrm tries
to "cd ../group" rather than cd /var/spool/news/group" as it thinks this
is faster.  If your symlinks break "cd .." then you should run fastrm
without the "-u" option.  Unfortunately "-u" is the default in the
supplied expirerm script.  Note that it is just as easy to get rid of
the "-u" as it is to make the "xargs" change.  (Or you could just
mount the filesystem where it belongs in the first place!)

The problem that would be caused by using fastrm -u with symlinked
directories would most likely be fastrm aborting.  Potentially
there could be some accidental alignment of directories and the wrong
articles could get deleted but that is highly unlikely.  I see no
reason that fastrm should lock up the system.

With all the bashing of fastrm that goes on people seem to ignore that
it is just a program that tries to "unlink()" a list of files.  It is
far more likely that any problems are the result of user mis-configuration 
than that "chdir()" and "unlink()" don't function correctly.
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