[news.software.nntp] Problems with NNTP on Sun network

igb@cs.bham.ac.uk (Ian G Batten <BattenIG>) (05/04/88)

I have a problem installing NNTP on a network of Suns.  We have two
file-servers, a 3/160 and a 3/180, running 3.4.  I have NNTP 1.5 (26 Feb
88).

Currently we read over NFS and post likewise; this is obviously a but
dodgy on the locking front.  My intention is to continue to read via NFS
but to post over NNTP.

nntpd starts up OK, and the mini-inews reports success.  But nothing
happens --- nothing goes in to news' log or errlog.  The NNTP log
contains details of the call and its "successful" posting.  I hacked
inews to redirect its "DEBUG" output to a file --- according to this
inews never even calls history!  Files of zero-length called L<msg-id>
are left in /tmp on the server.

Does anyone have any ideas, please?  We're absolutely stuck!  Reading
news over NNTP seems to work, by the way, as far as "telnet server nntp"
tells me.

ian



-- 
INTERNET: BattenIG%cs.bham.ac.uk@cunyvm.cuny.edu  JANET: BattenIG@uk.ac.bham.cs
BITNET: BattenIG%cs.bham.ac.uk@ukacrl.bitnet    UUCP: ...!mcvax!bhamcs!BattenIG
Phone: +44 21 414 4766.

karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) (05/06/88)

igb@cs.bham.ac.uk says...
   nntpd starts up OK, and the mini-inews reports success.  But nothing
   happens --- nothing goes in to news' log or errlog.  The NNTP log
   contains details of the call and its "successful" posting.  I hacked
   inews to redirect its "DEBUG" output to a file --- according to this
   inews never even calls history!  Files of zero-length called L<msg-id>
   are left in /tmp on the server.

You probably haven't gotten around to playing symlink games with the
real inews and the NNTP inews.  That is, your Sun server's
/usr.MC68020 no doubt contains a local inews so that it can do real
posting; as mounted on a client 3/50, that inews is useless, as it
will attempt to do things to files residing read-only on the server.
What we have resorted to is a game like this: on the server, make
/usr/lib/news/inews a symlink to /private/usr/lib/news/inews; then on
the server, put the real inews in /private/..., and on the clients put
the NNTP inews in /private/...  It works quite well, once you complete
the lie about what lives where.

--Karl

igb@cs.bham.ac.uk (Ian G Batten <BattenIG>) (05/09/88)

karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) writes:
> igb@cs.bham.ac.uk says...
>    nntpd starts up OK, and the mini-inews reports success.  But nothing
>    happens --- nothing goes in to news' log or errlog.  The NNTP log
>    contains details of the call and its "successful" posting.  I hacked
>    inews to redirect its "DEBUG" output to a file --- according to this
>    inews never even calls history!  Files of zero-length called L<msg-id>
>    are left in /tmp on the server.
> 
> You probably haven't gotten around to playing symlink games with the
> real inews and the NNTP inews.  That is, your Sun server's
> /usr.MC68020 no doubt contains a local inews so that it can do real
> posting; as mounted on a client 3/50, that inews is useless, as it

Hah!  Symbolic links are for WIMPS!!!!! :-)

What I did is put the nntp-ified inews in lib/inews and the genuine
2.11.14 inews in lib/local/inews.  When I compiled nntpd I told it that
inews was in lib/local/inews.

Thanks for the idea though --- I didn't realise this straight away and
got a nifty race condition as inews on the nntp server kept calling
inews on the nntp server over the net.

ian


-- 
ian

INTERNET: BattenIG%cs.bham.ac.uk@cunyvm.cuny.edu  JANET: BattenIG@uk.ac.bham.cs
BITNET: BattenIG%cs.bham.ac.uk@ukacrl.bitnet    UUCP: ...!mcvax!bhamcs!BattenIG

karl@saqqara.cis.ohio-state.edu (Karl Kleinpaste) (05/11/88)

igb@cs.bham.ac.uk writes:
   Hah!  Symbolic links are for WIMPS!!!!! :-)

Actually, they fit in really well with this bumper sticker that a
friend made for me:

	Better Living Through Complexity

And a common refrain around here is, "We have no shame - we use
symlinks."

:-)

   What I did is put the nntp-ified inews in lib/inews and the genuine
   2.11.14 inews in lib/local/inews.  When I compiled nntpd I told it that
   inews was in lib/local/inews.

What do you do about posting from the server machine?  Did you compile
all your other news software so as to know that the real inews is in
lib/local/inews?

--Karl

sob@watson.bcm.tmc.edu (Stan Barber) (05/11/88)

If you are using nfs to read and nntp to post, you need to be sure that
the SERVER to which you are posting is running the REAL inews and not
the mini-inews. Most sites typically install the fake-inews in /usr/local
and make sure that Pnews, postnews and friends use the fake inews on the
clients and the real inews (typically, /usr/lib/news/inews) on the server
ONLY.

The most common mistake made by people trying to do this "hybird" system
is over writing the "REAL" inews with the "FAKE" inews. This is not
a sun-specific problem.


Stan           internet: sob@tmc.edu          Baylor College of Medicine
Olan           uucp: {rice,killer,hoptoad}!academ!sob
Barber         Opinions expressed are only mine.

igb@cs.bham.ac.uk (Ian G Batten <BattenIG>) (05/13/88)

In article <12931@tut.cis.ohio-state.edu> karl@saqqara.cis.ohio-state.edu (Karl Kleinpaste) writes:
>    What I did is put the nntp-ified inews in lib/inews and the genuine
>    2.11.14 inews in lib/local/inews.  When I compiled nntpd I told it that
>    inews was in lib/local/inews.
> 
> What do you do about posting from the server machine?  Did you compile
> all your other news software so as to know that the real inews is in
> lib/local/inews?

Few postings happen on the local machine.  rmail is a link to
lib/local/inews and I'm prepared to carry the loopback overhead if
posting does happen: it's a 3/180S with no terminals connected!

I still haven't fixed the darn thing though!



-- 
ian

INTERNET: BattenIG%cs.bham.ac.uk@cunyvm.cuny.edu  JANET: BattenIG@uk.ac.bham.cs
BITNET: BattenIG%cs.bham.ac.uk@ukacrl.bitnet    UUCP: ...!mcvax!bhamcs!BattenIG