🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
17 messages
17 total messages Started by John F. Morse Tue, 06 Apr 2010 00:24
Posting to an xrefslave server
#82951
Author: John F. Morse
Date: Tue, 06 Apr 2010 00:24
41 lines
2914 bytes
A server set for xrefslave=true will not accept posting because it 
expects an Xref: article number.

How can this be overcome in a situation where multiple reader servers 
are used, and they use xrefslave=true to eliminate the readers from 
getting different results from load balancing.

xrefslave

    Whether to act as the slave of another server. If set, INN attempts
    to duplicate exactly the article numbering of the server feeding it
    by looking at the Xref: header of incoming articles and assigning
    the same article numbers to articles as was noted in the Xref:
    header from the upstream server. The result is that clients should
    be able to point at either server interchangeably (using some load
    balancing scheme, for example) and see the same internal article
    numbering. Servers with this parameter set should generally only
    have one upstream feed, and should always have nnrpdposthost set to
    hand locally posted articles off to the master server. The upstream
    should be careful to always feed articles in order (innfeed(8) can
    have problems with this in the event of a backlog). This is a
    boolean value and the default is false.


I have INN 2.5.2 running and it seems everything is working great. 
Except I cannot test reader posting to it because it is still set for 
xrefslave=true to keep the articles synced for upcoming changeover by 
rerouting the incoming ports.

If I set nnrpdposthost as mentioned above, will articles go to the older 
INN 2.5.1 nnrpd, be posted and assigned an Xref there, then be streamed 
over to the INN 2.5.2 server?

Also, SSL/TLS is active on the new 2.5.2 server. I don't expect that to 
have any effect on the above idea(s).


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82950
Author: Russ Allbery
Date: Tue, 06 Apr 2010 00:44
26 lines
2221 bytes
"John F. Morse" <john@example.invalid> writes:

> A server set for xrefslave=true will not accept posting because it
> expects an Xref: article number.

> How can this be overcome in a situation where multiple reader servers
> are used, and they use xrefslave=true to eliminate the readers from
> getting different results from load balancing.

You need one designated posting server, which should generally also be the
server from which you accept incoming feeds from the rest of the world,
and that server should not have xrefslave set.  nnrpdposthost should then
be set on all the reader servers to point to that server.

> If I set nnrpdposthost as mentioned above, will articles go to the older
> INN 2.5.1 nnrpd, be posted and assigned an Xref there, then be streamed
> over to the INN 2.5.2 server?

Yes, except that they'll be sent via IHAVE to the innd on that server so
nnrpd isn't involved.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Posting to an xrefslave server
#82952
Author: John F. Morse
Date: Tue, 06 Apr 2010 03:44
61 lines
3506 bytes
Hi Russ,

Russ Allbery wrote:
> "John F. Morse" <john@example.invalid> writes:
>   
>> How can this be overcome in a situation where multiple reader servers
>> are used, and they use xrefslave=true to eliminate the readers from
>> getting different results from load balancing.
>>     
>
> You need one designated posting server, which should generally also be the
> server from which you accept incoming feeds from the rest of the world,
> and that server should not have xrefslave set.  nnrpdposthost should then
> be set on all the reader servers to point to that server.
>   


I'd rather not mess with the incoming transit server.

Besides, the articles on the new 2.5.2 reader server were slaved with 
the 2.4.5 reader server which users are currently accessing. I'd need to 
continue to slave to it to keep article numbers in sync.

So, with that in mind, I'd need to set nnrpdposthost on the new 2.5.2 
server to point to the 2.4.5 reader server.


>> If I set nnrpdposthost as mentioned above, will articles go to the older
>> INN 2.5.1 nnrpd, be posted and assigned an Xref there, then be streamed
>> over to the INN 2.5.2 server?
>>     
>
> Yes, except that they'll be sent via IHAVE to the innd on that server so
> nnrpd isn't involved.


OK. That precludes the possibility of any testing of the new 2.5.2 
server nnrpd using SSL/TLS, Cleanfeed, etc.

Maybe the workaround would be to stop the 2.4.5 feed to the 2.5.2 
server, then set xrefslave back to false on the new 2.5.2 server, then 
do some test posting to the local.test group on the new 2,5,2 server, 
which is not in the active on the other servers.

Does that sound like a fair/good/great idea? ;-)

Do you think xrefslave=true on the new 2.5.2 server is actually still 
necessary now that the  old 2.4.5 reader server has sent all of it's 
articles? Wouldn't new articles posted to the 2.4.5 reader server (from 
readers and from incoming transit servers), now stay in sync?

If so, I could forget stopping the feed from the 2.4.5 reader server to 
the new 2.5.2 reader server, and just set the new server's 
xrefslave=false, and then post to only the local.test group on the 2.5.2 
server.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82953
Author: Russ Allbery
Date: Tue, 06 Apr 2010 03:56
60 lines
3730 bytes
"John F. Morse" <john@example.invalid> writes:
> Russ Allbery wrote:
>> "John F. Morse" <john@example.invalid> writes:

>>> How can this be overcome in a situation where multiple reader servers
>>> are used, and they use xrefslave=true to eliminate the readers from
>>> getting different results from load balancing.

>> You need one designated posting server, which should generally also be
>> the server from which you accept incoming feeds from the rest of the
>> world, and that server should not have xrefslave set.  nnrpdposthost
>> should then be set on all the reader servers to point to that server.

> I'd rather not mess with the incoming transit server.

> Besides, the articles on the new 2.5.2 reader server were slaved with
> the 2.4.5 reader server which users are currently accessing. I'd need to
> continue to slave to it to keep article numbers in sync.

> So, with that in mind, I'd need to set nnrpdposthost on the new 2.5.2
> server to point to the 2.4.5 reader server.

That sound be fine.  I thought you were talking about multiple reader
servers in a load-balancing situation, but it sounds like you're talking
about a more traditional upgrade situation.

>>> If I set nnrpdposthost as mentioned above, will articles go to the older
>>> INN 2.5.1 nnrpd, be posted and assigned an Xref there, then be streamed
>>> over to the INN 2.5.2 server?

>> Yes, except that they'll be sent via IHAVE to the innd on that server
>> so nnrpd isn't involved.

> OK. That precludes the possibility of any testing of the new 2.5.2 server
> nnrpd using SSL/TLS, Cleanfeed, etc.

Why would it preclude that?

> Maybe the workaround would be to stop the 2.4.5 feed to the 2.5.2
> server, then set xrefslave back to false on the new 2.5.2 server, then
> do some test posting to the local.test group on the new 2,5,2 server,
> which is not in the active on the other servers.

> Does that sound like a fair/good/great idea? ;-)

I think you should just use xrefslave and nnrpdposthost and test all the
things you want to test on the new server.

> Do you think xrefslave=true on the new 2.5.2 server is actually still
> necessary now that the old 2.4.5 reader server has sent all of it's
> articles? Wouldn't new articles posted to the 2.4.5 reader server (from
> readers and from incoming transit servers), now stay in sync?

No.  Feeds are not guaranteed to send articles in order.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Posting to an xrefslave server
#82954
Author: John F. Morse
Date: Tue, 06 Apr 2010 04:12
30 lines
2241 bytes
Russ Allbery wrote:

> I think you should just use xrefslave and nnrpdposthost and test all the
> things you want to test on the new server.
>   


Oh, I guess I misunderstood your previous statement:

"Yes, except that they'll be sent via IHAVE to the innd on that server 
so nnrpd isn't involved."

Meaning nnrpd isn't involved on the *OLD* 2.4.5 server, but nnrpd is 
fully involved on the *NEW* 2.5.2 server. :-[

So using your idea, I would indeed get a full workout of nnrpd on the 
new server, and instead of messages being filed on it, they would be 
sent to the old 2.4.5 server's innd for processing.

Then they would be sent back to the new server, since it is listed in 
the newsfeeds on the old server, and the articles would have the old 
server's Xref.

That makes sense -- if I have it right now. ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82955
Author: Russ Allbery
Date: Tue, 06 Apr 2010 04:15
35 lines
2419 bytes
"John F. Morse" <john@example.invalid> writes:
> Russ Allbery wrote:

>> I think you should just use xrefslave and nnrpdposthost and test all the
>> things you want to test on the new server.

> Oh, I guess I misunderstood your previous statement:

> "Yes, except that they'll be sent via IHAVE to the innd on that server
> so nnrpd isn't involved."

> Meaning nnrpd isn't involved on the *OLD* 2.4.5 server, but nnrpd is
> fully involved on the *NEW* 2.5.2 server. :-[

Ah, yes, sorry.  That's what I should have said.

> So using your idea, I would indeed get a full workout of nnrpd on the
> new server, and instead of messages being filed on it, they would be
> sent to the old 2.4.5 server's innd for processing.

Right.

> Then they would be sent back to the new server, since it is listed in the
> newsfeeds on the old server, and the articles would have the old server's
> Xref.

> That makes sense -- if I have it right now. ;-)

Yup, you've got it.  :)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Posting to an xrefslave server
#82956
Author: John F. Morse
Date: Tue, 06 Apr 2010 04:19
16 lines
1686 bytes
Russ Allbery wrote:

> Yup, you've got it.  :)
>   


Thanks Russ.

I have a few minor "issues" that I've found with the new 2.5.2. I'll 
report later.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82957
Author: John F. Morse
Date: Wed, 07 Apr 2010 11:22
128 lines
6638 bytes
Hi Russ,

Russ Allbery wrote:

> I think you should just use xrefslave and nnrpdposthost and test all the
> things you want to test on the new server.

This is not working like it should.

I was attempting to post to the 2.5.2 server and was experiencing "Xref: 
header required in xrefslave mode" failures.

I changed Icedove's (Thunderbird on a Debian Etch box) settings for port 
119 or 563, and to use SSL or not, trying different combinations.

I finally got past the "Xref: header required" warning, and four test 
messages were accepted and did go to optima5, the old 2.4.5 server and 
then were streamed back to n102, the new 2.5.2 server.

Here are four examples from the logs on both servers, and several of the 
failures shown in n102's news log (FQDN munged):

news@n102:/var/log/news$ cat news.notice | grep 'post ok'
Apr  7 03:50:01 n102 nnrpd[2438]: etch.my.net post ok 
<hphgvp$2c6$1@n102.my.net>
Apr  7 04:04:01 n102 nnrpd[2618]: etch.my.net post ok 
<hphhq1$2hq$1@n102.xmy.net>
Apr  7 04:05:34 n102 nnrpd[2618]: etch.my.net post ok 
<hphhst$2hq$2@n102.my.net>
Apr  7 04:07:42 n102 nnrpd[2618]: etch.my.net post ok 
<hphi0u$2hq$3@n102.my.net>

news@n102:/var/log/news$ cat news | grep 'n102'
Apr  7 03:39:05.905 - localhost <hphgb9$225$1@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 03:43:15.342 - localhost <hphgj3$275$1@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 03:50:01.509 + optima5.my.net <hphgvp$2c6$1@n102.my.net> 2178 
inpaths!
Apr  7 04:04:01.285 + optima5.my.net <hphhq1$2hq$1@n102.my.net> 1274 
inpaths!
Apr  7 04:05:34.313 + optima5.my.net <hphhst$2hq$2@n102.my.net> 1551 
inpaths!
Apr  7 04:07:42.751 + optima5.my.net <hphi0u$2hq$3@n102.my.net> 1550 
inpaths!
Apr  7 05:02:40.219 - localhost <hphl80$3i0$1@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:02:59.559 - localhost <hphl8j$3i4$1@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:07:23.536 - localhost <hphlgr$3i0$2@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:10:08.274 - localhost <hphlm0$3i0$3@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:11:27.090 - localhost <hphlof$3i0$4@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:11:47.091 - localhost <hphlp3$3i0$5@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:12:41.741 - localhost <hphlqp$3i0$6@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:14:14.786 - localhost <hphltm$3i0$7@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:16:56.819 - localhost <hphm2o$3i0$8@n102.my.net> 437 Xref: 
header required in xrefslave mode
Apr  7 05:18:02.164 - localhost <hphm4q$3i0$9@n102.my.net> 437 Xref: 
header required in xrefslave mode

news@optima5:/var/log/news$ cat news | grep '+ n102'
Apr  7 03:50:01.418 + n102.my.net <hphgvp$2c6$1@n102.my.net> 2102 
optima2 optima11 n102 inpaths!
Apr  7 04:04:01.258 + n102.my.net <hphhq1$2hq$1@n102.my.net> 1221 
optima2 optima11 n102 inpaths!
Apr  7 04:05:34.276 + n102.my.net <hphhst$2hq$2@n102.my.net> 1485 
optima2 optima11 n102 inpaths!
Apr  7 04:07:42.721 + n102.my.net <hphi0u$2hq$3@n102.my.net> 1485 
optima2 optima11 n102 inpaths!

The failures in the 0500 hour were attempts to post from Thunderbird on 
an Ubuntu 8.04 box.

This doesn't make sense. I'm wondering if there is some STARTTLS issue 
that I managed to somehow overcome for the four accepted messages?

I don't fully trust Thunderbird/Icedove either, but it has SSL where Pan 
doesn't, and I don't care to drag out Stunnel.

So I tried Claws Mail which supports SSL/TLS, and it also failed. 
However it did perhaps provide a clue in the Claws Mail network log:

[05:55:58] NNTP> GROUP local.test
[05:55:58] NNTP< 211 103 109 1566 local.test
* getting xover 1559 - 1566 in local.test...
[05:55:58] NNTP> XOVER 1559-1566
[05:55:58] NNTP< 224 Overview information for 1559-1566 follows
[05:55:58] NNTP< [data - 1868 bytes]
[05:56:01] NNTP> ARTICLE 1563
[05:56:01] NNTP< 220 1563 <hphhq1$2hq$1@n102.my.net> article
[05:56:01] NNTP< [data - 1277 bytes]
[05:56:05] NNTP> ARTICLE 1564
[05:56:05] NNTP< 220 1564 <hphhst$2hq$2@n102.my.net> article
[05:56:05] NNTP< [data - 1554 bytes]
[05:57:09] NNTP> DATE
[05:57:09] NNTP< 111 20100407105708
[05:57:09] NNTP> POST
[05:57:09] NNTP< 340 Ok, recommended message-ID <hphoe4$4gl$1@n102.my.net>
[05:57:09] NNTP> [data - 1080 bytes]
[05:57:09] NNTP< 441 437 Xref: header required in xrefslave mode
[05:57:09] NNTP> MODE READER
[05:57:09] NNTP< 200 n102.my.net InterNetNews NNRP server INN 2.5.2 
ready (posting ok)
[05:57:09] NNTP> POST
[05:57:09] NNTP< 340 Ok, recommended message-ID <hphoe4$4gl$2@n102.my.net>
[05:57:09] NNTP> [data - 1080 bytes]
[05:57:09] NNTP< 441 435 Duplicate

That is about as good as a telnet session log. ;-)

Notice the Message-ID apparently was stored and then the post was 
rejected as a duplicate (however the two M-IDs shown are different).

I also see a possible failure in MODE READER for the initial posting 
attempt.

Any ideas, or additional troubleshooting tips?

-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82958
Author: Julien ÉLIE
Date: Wed, 07 Apr 2010 13:59
26 lines
2450 bytes
Hi John,

> I was attempting to post to the 2.5.2 server and was experiencing "Xref: header 
> required in xrefslave mode" failures.
[...]
> [05:57:09] NNTP< 441 437 Xref: header required in xrefslave mode

It looks as though your running nnrpd with INN 2.5.2 were not using the
nnrpdposthost parameter.  It is posting articles to innd on the same server
with INN 2.5.2.
Did you properly restart nnrpd if you run it in daemon mode?



> This doesn't make sense. I'm wondering if there is some STARTTLS issue that I 
> managed to somehow overcome for the four accepted messages?

As far as I know, Thunderbird does not use STARTTLS but directly speaks
in TLS (usually on port 563, with "nnrpd -S").

-- 
Julien ÉLIE

« Être raisonnable en toutes circonstances. Il faudrait être fou... »
  (Raymond Devos) 
Re: Posting to an xrefslave server
#82959
Author: John F. Morse
Date: Thu, 08 Apr 2010 00:27
161 lines
6786 bytes
Hi Julien,

You been on vacation?

Julien ÉLIE wrote:
> Hi John,
>
>> I was attempting to post to the 2.5.2 server and was experiencing 
>> "Xref: header required in xrefslave mode" failures.
> [...]
>> [05:57:09] NNTP< 441 437 Xref: header required in xrefslave mode
>
> It looks as though your running nnrpd with INN 2.5.2 were not using the
> nnrpdposthost parameter.  It is posting articles to innd on the same 
> server
> with INN 2.5.2.
> Did you properly restart nnrpd if you run it in daemon mode?

I physically moved the computer ... which means it was shut down then 
rebooted in the new location.

Then four posts were properly received and posted. 

Here is how it looks at this moment (ps aux)


news      3866  0.0  0.2  10760  2920 ?        SN   05:13   0:00 - 
nnrpd: n100.my.net ARTIC S
news      3868  0.0  0.2  10676  2104 ?        SN   05:13   0:00 - 
nnrpd: connected                 S
news      3869  0.0  0.2  10676  2104 ?        SN   05:13   0:00 - 
nnrpd: connected                 S
news      6008  0.0  0.2  10704  2784 ?        SN   07:07   0:00 - 
nnrpd: n100.my.net GROUP S
news      6010  0.0  0.2  10704  2752 ?        SN   07:07   0:00 - 
nnrpd: n100.my.net GROUP S
news      6012  0.0  0.2  10760  2920 ?        SN   07:07   0:00 - 
nnrpd: n100.my.net ARTIC S
news      6014  0.0  0.2  10676  2104 ?        SN   07:07   0:00 - 
nnrpd: connected                 S


The new 2.5.2 inn.conf has the following:


# Article Storage

cnfscheckfudgesize:     0
enableoverview:         true
extraoverviewadvertised: [ ]
extraoverviewhidden:    [ ]
groupbaseexpiry:        true
mergetogroups:          false
nfswriter:              false
overcachesize:          64
#ovgrouppat:
storeonxref:            true
useoverchan:            false
wireformat:             false
xrefslave:              true

...

# Posting

addnntppostingdate:     true
addnntppostinghost:     true
checkincludedtext:      false
complaints:             newsmaster@my.net
fromhost:               n102.my.net
localmaxartsize:        1000000
#moderatormailer:
nnrpdauthsender:        false
nnrpdposthost:          optima5.my.net
nnrpdpostport:          119
spoolfirst:             false
strippostcc:            false


/etc/init.d/inn2 has:


start () {
    if [ ! -d /var/run/news ]; then
        mkdir -p /var/run/news
        chown news:news /var/run/news
        chmod 775 /var/run/news
    fi
    su news -c /usr/lib/news/bin/rc.news > /var/log/news/rc.news 2>&1
    su news -c '/usr/lib/news/bin/nnrpd -D -p 563 -S'
}


>> This doesn't make sense. I'm wondering if there is some STARTTLS 
>> issue that I managed to somehow overcome for the four accepted messages?
>
> As far as I know, Thunderbird does not use STARTTLS but directly speaks
> in TLS (usually on port 563, with "nnrpd -S").


I don't know about Thunderbird, nor even about the Claws Mail (but it 
does list STARTTLS). Looking at the following tail of syslog, I see on 
the first line that Thunderbird apparently does (or INN thinks it does):

Apr  7 18:59:06 n102 nnrpd[17565]: starttls: SSLv3 with cipher 
DHE-RSA-AES256-SHA (256/256 bits) no authentication
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net (192.168.89.100) connect 
- port 563
Apr  7 18:59:06 n102 nnrpd[17565]: Reading access from 
/etc/news/readers.conf
Apr  7 18:59:06 n102 nnrpd[17565]: Auth strategy 'localhost' does not 
match client.  Removing.
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net res <anonymous>
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net match_user <anonymous> 
<anonymous>
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net no_post public
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net res starting 
authenticator /usr/lib/news/bin/auth/passwd/ckpasswd -f 
/var/lib/news/passlist
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net auth authenticator 
successful, user john
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net no_match_user john 
<anonymous>
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net no_match_user john 
<localhost>
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net match_user john *
Apr  7 18:59:06 n102 nnrpd[17565]: n100.my.net user john


Then another "ps aux" shows more processes:


news      3869  0.0  0.2  10676  2104 ?        SN   05:13   0:00 - 
nnrpd: connected                 S
news      6008  0.0  0.2  10704  2784 ?        SN   07:07   0:00 - 
nnrpd: n100.my.net GROUP S
news      6010  0.0  0.2  10704  2752 ?        SN   07:07   0:00 - 
nnrpd: n100.my.net GROUP S
news      6012  0.0  0.2  10760  2920 ?        SN   07:07   0:00 - 
nnrpd: n100.my.net ARTIC S
news      6014  0.0  0.2  10676  2104 ?        SN   07:07   0:00 - 
nnrpd: connected                 S
root     17384  0.0  0.2   8236  2720 ?        Ss   18:50   0:00 sshd: 
john [priv]
john     17387  0.0  0.1   8396  1508 ?        S    18:50   0:00 sshd: 
john@pts/7
john     17388  0.0  0.2   5220  2744 pts/7    Ss   18:50   0:00 -bash
news     17419  0.0  0.2  10704  2784 ?        SN   18:57   0:00 - 
nnrpd: n100.my.net GROUP S
news     17564  0.0  0.0   2992   484 ?        S    18:58   0:00 sleep 600
news     17565  0.0  0.2  10704  2784 ?        SN   18:59   0:00 - 
nnrpd: n100.my.net GROUP S


Why are these forked nnrpd processes still listed?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82960
Author: Julien ÉLIE
Date: Thu, 08 Apr 2010 08:23
40 lines
2538 bytes
Hi John,

> You been on vacation?

Yes, and I am still on vacation in Perpignan (South of France, near Spain).


> I physically moved the computer ... which means it was shut down then rebooted in 
> the new location.
> Then four posts were properly received and posted.

So it seems to work well.


> wireformat:             false

You can set it to true if you want.


> start () {
>    if [ ! -d /var/run/news ]; then
>        mkdir -p /var/run/news
>        chown news:news /var/run/news
>        chmod 775 /var/run/news
>    fi
>    su news -c /usr/lib/news/bin/rc.news > /var/log/news/rc.news 2>&1
>    su news -c '/usr/lib/news/bin/nnrpd -D -p 563 -S'
> }

And for stop(), you have to run "rc.news stop" and one of the two commands:

    start-stop-daemon --stop --name nnrpd --quiet --oknodo
    su news -c 'killall nnrpd'

-- 
Julien ÉLIE

« Je ne cherche pas à connaître les réponses, je cherche à comprendre
  les questions. » 
Re: Posting to an xrefslave server
#82962
Author: John F. Morse
Date: Thu, 08 Apr 2010 10:29
128 lines
5832 bytes
Julien ÉLIE wrote:
> Hi John,
>
>> You been on vacation?
>
> Yes, and I am still on vacation in Perpignan (South of France, near 
> Spain).


That is interesting: http://en.wikipedia.org/wiki/Perpignan

I have read a lot about great cave exploring in the Pyrenees Mountains.

http://upload.wikimedia.org/wikipedia/commons/4/49/Pyrenees_topographic_map-fr.svg

But I hope you are relaxing and building energy for returning to the 
grindstone. ;-)


>> I physically moved the computer ... which means it was shut down then 
>> rebooted in the new location.
>> Then four posts were properly received and posted.
>
> So it seems to work well.


So far, basically yes. I did do a lot to get it going (research, 
compiling, configuring, etc.). It seems to be running fine except I only 
need to be able to accept posting with xrefslave:true, plus I need to 
add Cleanfeed. (Update below.)

If I can get posting to work, then I can start moving the users over to 
port 563, and then a few days later do a "flash cut" by rerouting port 
119 in the router to the new computer's IP.

Later, I may want to throttle both of the reader servers and flip-flop 
the xrefslave and nnrpdposthost so the old server becomes the slave. 
Just to cover any unforeseen major problems requiring a backtrack to the 
old server. Hence the need for Xref synchronization. ;-)


>> wireformat:             false
>
> You can set it to true if you want.


OK, changed it. Most of my spool is CNFS, with the tradspool having only 
old historical local groups.


>> start () {
>>    if [ ! -d /var/run/news ]; then
>>        mkdir -p /var/run/news
>>        chown news:news /var/run/news
>>        chmod 775 /var/run/news
>>    fi
>>    su news -c /usr/lib/news/bin/rc.news > /var/log/news/rc.news 2>&1
>>    su news -c '/usr/lib/news/bin/nnrpd -D -p 563 -S'
>> }
>
> And for stop(), you have to run "rc.news stop" and one of the two 
> commands:
>
>    start-stop-daemon --stop --name nnrpd --quiet --oknodo
>    su news -c 'killall nnrpd'


Oh, I have:

stop () {
    su news -c '/usr/lib/news/bin/rc.news stop' >> /var/log/news/rc.news 
2>&1
    # start-stop-daemon --stop --name nnrpd-ssl --quiet --oknodo
}


So I will uncomment that and see if the extra processes cease....

:-)

Yes, I think it is working good now. I successfully posted to port 563 
with SSL from both Thunderbird and Claws Mail (from Ubuntu 8.04 on 
n100), and via rdesktop using Icedove on an Etch box in the basement. I 
also successfully posted to port 119 without SSL/TLS using Pan.

I guess the glut of extra nnrpd sessions was the problem?

All the INN processes that are running now are:


news      1315  0.0  1.3 110852 13532 ?        Ss   04:07   0:00 
/usr/lib/news/bin/innd -C
news      1316  0.0  0.0   4156   760 ?        S    04:07   0:00 
/bin/bash /usr/lib/news/bin/rc.news
news      1317  0.0  0.0   4156   760 ?        S    04:07   0:00 
/bin/bash /usr/lib/news/bin/rc.news
news      1325  0.0  0.0   7500   772 ?        Ss   04:07   0:00 - 
nnrpd: accepting connections     S
news      1330  0.0  0.7  10192  7508 ?        SN   04:07   0:00 
/usr/bin/perl -w /usr/lib/news/bin/controlchan
news      1331  0.0  0.3   6260  3540 ?        SN   04:07   0:00 
/usr/bin/perl -w /usr/lib/news/bin/perl-nocem
news      1332  0.0  0.1   4836  1436 ?        SN   04:07   0:00 
/usr/lib/news/bin/innfeed -y
news      1333  0.0  0.0   1932   688 ?        SN   04:07   0:00 
/usr/lib/news/bin/ninpaths -p -d /var/log/news/path/inpaths.%d
news      1428  0.0  0.6   9312  6584 ?        S    04:08   0:00 
/usr/bin/perl -w /usr/lib/news/bin/cnfsstat -s -l 3600 -P
news      1429  0.0  0.1   4160  1500 ?        S    04:08   0:00 
/bin/bash /usr/lib/news/bin/innwatch
news      1657  0.0  0.4  12380  4144 ?        SN   04:11   0:00 - 
nnrpd: n100.my.net POST  S
news      1662  0.0  0.2  10708  3028 ?        SN   04:12   0:00 - 
nnrpd: n100.my.net ARTIC S
news      1664  0.0  0.2  10676  2104 ?        SN   04:12   0:00 - 
nnrpd: connected                 S


I notice there is additional space between the References: header items 
now. Better RFC compliance I presume.

Thanks Julien. Enjoy your vacation!


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82961
Author: Julien ÉLIE
Date: Thu, 08 Apr 2010 12:27
51 lines
3474 bytes
Hi John,

> That is interesting: http://en.wikipedia.org/wiki/Perpignan

Yep, exactly.
Of course the French Wikipédia page is more dense.
It is the town where I was born.


>    # start-stop-daemon --stop --name nnrpd-ssl --quiet --oknodo
>
> So I will uncomment that and see if the extra processes cease....

Shouldn't it be nnrpd and not nnrpd-ssl according to your setup?
nnrpd-ssl is for the Debian package (with the corresponding binary).


> Yes, I think it is working good now. I successfully posted to port 563 with SSL 
> from both Thunderbird and Claws Mail (from Ubuntu 8.04 on n100), and via rdesktop 
> using Icedove on an Etch box in the basement. I also successfully posted to port 
> 119 without SSL/TLS using Pan.

When running in daemon mode, nnrpd needs to be stopped and started
again in order to see the changes you do in inn.conf.
It is a separate process (compared with nnrpd spawned by innd).

"ctlinnd xexec all" won't work with nnrpd in daemon mode too.


I am glad to see that your issue is now solved.


> I notice there is additional space between the References: header items now. 
> Better RFC compliance I presume.

Interesting.
Gnus (used by Russ) wraps the References: header (one message-ID per line)
whereas Thunderbird refolds it, keeping extra tabulations.

Both of these References: headers are RFC-compliant.

INN does not modify that header.  It takes what the news client sends.
Note that we should do some magic on certain occasions (like the new mailpost
shipped with INN 2.5.2 that changes the References: header when it is too long).

-- 
Julien ÉLIE

« -- Je suis mon cher ami, très heureux de te voir.
  -- C'est un alexandrin. » (Astérix) 
Re: Posting to an xrefslave server
#82963
Author: John F. Morse
Date: Fri, 09 Apr 2010 03:35
126 lines
5779 bytes
Hi Julien,

Julien ÉLIE wrote:

>>    # start-stop-daemon --stop --name nnrpd-ssl --quiet --oknodo
>>
>> So I will uncomment that and see if the extra processes cease....
>
> Shouldn't it be nnrpd and not nnrpd-ssl according to your setup?
> nnrpd-ssl is for the Debian package (with the corresponding binary).


Yes, of course!

My brain must have been asleep. My physical sleep schedule is a mess 
too. After two hours of rest this morning, I was awaken by the sound of 
chainsaws the power utility tree trimming contractors were using in my 
back yard.

I should pack my bag and escape, maybe joining you, where nothing will 
bother me. (Or would we stay up all night working on software?) ;-)

The INN 2.5.2 wouldn't start after a system reboot, so after checking, I 
discovered there was no /etc/init.d/inn file generated with the 2.5.2 
compile.

This is mentioned at 
http://www.eyrie.org/~eagle/software/inn/docs/install.html#S14 a 
bare-bones example of a SysV-style init.d script in the contrib 
directory, but it seemed to be too simple.

So I copied the one from the INN 2.5.1 partition, which is the one I 
installed from the Debian Sarge package manager. I overlooked that 
nnrpd-ssl completely when removing the "#" comment.

I also had to create seven /etc/rc0.d - /etc/rc6.d soft symlinks, 
although three is likely all the Debian run control levels would use.


>> Yes, I think it is working good now. I successfully posted to port 
>> 563 with SSL from both Thunderbird and Claws Mail (from Ubuntu 8.04 
>> on n100), and via rdesktop using Icedove on an Etch box in the 
>> basement. I also successfully posted to port 119 without SSL/TLS 
>> using Pan.
>
> When running in daemon mode, nnrpd needs to be stopped and started
> again in order to see the changes you do in inn.conf.
> It is a separate process (compared with nnrpd spawned by innd).
>
> "ctlinnd xexec all" won't work with nnrpd in daemon mode too.


Good to know. Thanks.


> I am glad to see that your issue is now solved.


Me too, and a big thanks for your help.

Now for Cleanfeed, which should be fairly easy using the older filter 
and local files for reference.

For now, I suppose the Cleanfeed on the original INN 2.4.5 server 
(optima5, the nnrpdposthost) where n102 "IHAVEs" posts, is doing the 
filtering of messages before streaming them back to the 2.5.2 server. So 
I'm covered.

I'm also running Apache2 on the new server, and have good daily reports 
accumulating.

I like the odd/even background colorization introduced in INN 2.5.x, and 
have stolen Ray's "Green Banana" color for the css file (thanks Ray!): ;-)


--- <pathhttp>innreport.css-salmon
+++ <pathhttp>innreport.css-greenbar
@@ -1,5 +1,5 @@
 tr.ir-oddRow td,
 td.ir-primaryKey {
-   background-color:#F8E0E0;
+   background-color:#D0F5A9;
 }


Then in innreport.conf I uncommented:


html_css_url    "innreport.css";


>> I notice there is additional space between the References: header 
>> items now. Better RFC compliance I presume.
>
> Interesting.
> Gnus (used by Russ) wraps the References: header (one message-ID per 
> line)
> whereas Thunderbird refolds it, keeping extra tabulations.
>
> Both of these References: headers are RFC-compliant.
>
> INN does not modify that header.  It takes what the news client sends.
> Note that we should do some magic on certain occasions (like the new 
> mailpost
> shipped with INN 2.5.2 that changes the References: header when it is 
> too long).


It is no trouble for me. I just noticed it looked different.

Some years ago, there was a newsreader (maybe Mozilla/Netscape 
Communicator or Outlook Express) which would use the References: M-IDs 
as clickable links for reading an earlier article in a thread. Sometimes 
these links were just shown as a numeral for clicking.

I haven't seen these links in newsreaders for a long time, and don't 
know if they are still provided in newsreaders. If so, someone should 
check their newsreader on an INN 2.5.2 server to be sure the extra space 
between the M-IDs won't break those readers' ability to load the linked 
messages.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Posting to an xrefslave server
#82964
Author: Julien ÉLIE
Date: Fri, 09 Apr 2010 08:12
38 lines
3105 bytes
Hi John,

> I also had to create seven /etc/rc0.d - /etc/rc6.d soft symlinks, although three 
> is likely all the Debian run control levels would use.

Which is easily done via:
    update-rc.d inn2 defaults

:)


> For now, I suppose the Cleanfeed on the original INN 2.4.5 server (optima5, the 
> nnrpdposthost) where n102 "IHAVEs" posts, is doing the filtering of messages 
> before streaming them back to the 2.5.2 server.

Yes.


> I haven't seen these links in newsreaders for a long time, and don't know if they 
> are still provided in newsreaders. If so, someone should check their newsreader on 
> an INN 2.5.2 server to be sure the extra space between the M-IDs won't break those 
> readers' ability to load the linked messages.

It is not related to INN 2.5.2.
The extra-space issue is related to Thunderbird, your news reader.  If
Joshua is reading us, maybe he could confirm the behaviour on latest
versions of Thunderbird.

It happens every time you answer a message whose References: header is
wrapped upon several lines.
See for instance <news:hf1stj$l1f$1@optima5.xanadu-bbs.net> you wrote
on December, 1st 2009, answering to Russ.

-- 
Julien ÉLIE

« Dulce et decorum est pro patria mori. » (Horace)
Re: Posting to an xrefslave server
#82965
Author: Joshua Cranmer
Date: Fri, 09 Apr 2010 13:22
23 lines
2713 bytes
On 04/09/2010 04:12 AM, Julien ÉLIE wrote:
>> I haven't seen these links in newsreaders for a long time, and don't
>> know if they are still provided in newsreaders. If so, someone should
>> check their newsreader on an INN 2.5.2 server to be sure the extra
>> space between the M-IDs won't break those readers' ability to load the
>> linked messages.
>
> It is not related to INN 2.5.2.
> The extra-space issue is related to Thunderbird, your news reader. If
> Joshua is reading us, maybe he could confirm the behaviour on latest
> versions of Thunderbird.

Reading the composition source code, the References header emitted by 
Thunderbird is the References header of the original message, with CRLFs 
stripped, plus ' <message id>'. Asides from stripping CRLFs (i.e., 
continuations), we don't reprocess the References header at all.

The parser for display is also pretty liberally accepting: it 
essentially just looks for things that match "<[^>]*>" ...

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth
Re: Posting to an xrefslave server
#82966
Author: Julien ÉLIE
Date: Fri, 09 Apr 2010 21:18
28 lines
3038 bytes
Hi Joshua,

> Reading the composition source code, the References header emitted by Thunderbird 
> is the References header of the original message, with CRLFs stripped, plus ' 
> <message id>'. Asides from stripping CRLFs (i.e., continuations), we don't 
> reprocess the References header at all.

OK, that seems fine.  I do not see any text mentioning another thing
to do when unfolding headers.  RFC 5536 and RFC 5322 only speak about
CRLF.  They do not ask to remove leading WSP as far as I understand.

Note that there is also trimming to do, according to Section 3.4.4
of RFC 5537 :

   If the resulting References header field would, after unfolding,
   exceed 998 characters in length (including its field name but not the
   final CRLF), it MUST be trimmed (and otherwise MAY be trimmed).
   Trimming means removing any number of message identifiers from its
   content, except that the first message identifier and the last two
   MUST NOT be removed.

-- 
Julien ÉLIE

« -- Ouvre l'oil, et le bon !
  -- L'autre, je peux pas encore l'ouvrir, je risque pas de me tromper ! »
  (Astérix) 
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