🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Tim Fardell Thu, 05 May 2011 16:24
INN - What error is returned to the user when there is a syntax error in readers.conf?
#84024
Author: Tim Fardell
Date: Thu, 05 May 2011 16:24
9 lines
1498 bytes
Probably a silly question, but what error is returned to the
connecting client when INN encounters a syntax error in readers.conf? 

The reason for the problem is logged in news.notice, but this doesn't
tell me what the user "sees" when this happens. 

Thanks. 
-- 
Please remove all-your-clothes before replying. 
Re: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84025
Author: John F. Morse
Date: Thu, 05 May 2011 16:33
19 lines
1829 bytes
Tim Fardell wrote:
> Probably a silly question, but what error is returned to the
> connecting client when INN encounters a syntax error in readers.conf? 
>
> The reason for the problem is logged in news.notice, but this doesn't
> tell me what the user "sees" when this happens. 
>
> Thanks. 
>   


Perhaps it would be faster, and more accurate, for you to log in 
yourself, and see what error you receive?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84026
Author: Tim Fardell
Date: Thu, 05 May 2011 16:38
22 lines
2075 bytes
On Thu, 05 May 2011 11:33:29 -0500, "John F. Morse"
<john@example.invalid> wrote:

>Tim Fardell wrote:
>> Probably a silly question, but what error is returned to the
>> connecting client when INN encounters a syntax error in readers.conf? 
>>
>> The reason for the problem is logged in news.notice, but this doesn't
>> tell me what the user "sees" when this happens. 
>>
>> Thanks. 
>
>Perhaps it would be faster, and more accurate, for you to log in 
>yourself, and see what error you receive?

More accurate, possibly. Faster, unlikely as I won't have access to
the server again for a while. 

Plus it's a live server and I don't want to deliberately muff up the
configuration just to find that out. 
-- 
Please remove all-your-clothes before replying. 
Re: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84027
Author: John F. Morse
Date: Thu, 05 May 2011 16:44
41 lines
2690 bytes
Tim Fardell wrote:
> On Thu, 05 May 2011 11:33:29 -0500, "John F. Morse"
> <john@example.invalid> wrote:
>   
>> Tim Fardell wrote:
>>     
>>> Probably a silly question, but what error is returned to the
>>> connecting client when INN encounters a syntax error in readers.conf? 
>>>
>>> The reason for the problem is logged in news.notice, but this doesn't
>>> tell me what the user "sees" when this happens. 
>>>
>>> Thanks. 
>>>       
>> Perhaps it would be faster, and more accurate, for you to log in 
>> yourself, and see what error you receive?
>>     
>
> More accurate, possibly. Faster, unlikely as I won't have access to
> the server again for a while. 
>
> Plus it's a live server and I don't want to deliberately muff up the
> configuration just to find that out. 
>   

Well, if it is a "live" server, why can't you simply access it?

Try using telnet. That is not going to make any changes to any 
configurations.

Since you stated the problem is in readers.conf, then you can use any 
newsreader. It will show what a user "sees" whereas a telnet session can 
show a lot more than a user might see.

Posting the news.notice error could be a big help.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84028
Author: Tim Fardell
Date: Thu, 05 May 2011 16:53
56 lines
3446 bytes
On Thu, 05 May 2011 11:44:23 -0500, "John F. Morse"
<john@example.invalid> wrote:

>Tim Fardell wrote:
>> On Thu, 05 May 2011 11:33:29 -0500, "John F. Morse"
>> <john@example.invalid> wrote:
>>   
>>> Tim Fardell wrote:
>>>     
>>>> Probably a silly question, but what error is returned to the
>>>> connecting client when INN encounters a syntax error in readers.conf? 
>>>>
>>>> The reason for the problem is logged in news.notice, but this doesn't
>>>> tell me what the user "sees" when this happens. 
>>>>
>>>> Thanks. 
>>>>       
>>> Perhaps it would be faster, and more accurate, for you to log in 
>>> yourself, and see what error you receive?
>>>     
>>
>> More accurate, possibly. Faster, unlikely as I won't have access to
>> the server again for a while. 
>>
>> Plus it's a live server and I don't want to deliberately muff up the
>> configuration just to find that out. 
>>   
>
>Well, if it is a "live" server, why can't you simply access it?

It's an internal server on a company's internal network - not
accessible from the Internet. 

>Try using telnet. That is not going to make any changes to any 
>configurations.
>
>Since you stated the problem is in readers.conf, then you can use any 
>newsreader. It will show what a user "sees" whereas a telnet session can 
>show a lot more than a user might see.
>
>Posting the news.notice error could be a big help.

Thanks for the advice, but I have already corrected the mistake in
readers.conf, so the server it no longer erroring - I'm just
interested to know what users hitting the error would have seen while
the problem existed. 

As mentioned, I don't have access to the server now, but the log
message was very good at explaining what the problem was and allowed
me to fix it promptly, but didn't tell me what error was returned to
the client. 

It was something along the lines of "Syntax error in readers.conf:
Unexpected token: <my-mistake>" or words to that effect. 
-- 
Please remove all-your-clothes before replying. 
Re: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84029
Author: Russ Allbery
Date: Thu, 05 May 2011 17:00
16 lines
2012 bytes
Tim Fardell <tim.fardell.all-your-clothes@virgin.net> writes:

> Thanks for the advice, but I have already corrected the mistake in
> readers.conf, so the server it no longer erroring - I'm just interested
> to know what users hitting the error would have seen while the problem
> existed.

I think nnrpd will refuse to start when there's a syntax error in
readers.conf, so they probably got abruptly closed connections without an
error message or something like that.

-- 
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: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84030
Author: Julien ÉLIE
Date: Thu, 05 May 2011 18:02
34 lines
2628 bytes
Hi Russ,

> I think nnrpd will refuse to start when there's a syntax error in
> readers.conf, so they probably got abruptly closed connections without an
> error message or something like that.

It wouldn't be RFC-compliant :-)
If the socket is open (SYN+ACK), I believe nnrpd should send something
before closing the connection.

With INN 2.5.0 and above, it is:

400 NNTP server unavailable.  Try later!

Before INN 2.5.0, it was a 503 error code.



Just tested:

19:55 news@trigo ~% telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
200 news.trigofacile.com InterNetNews server INN 2.6.0 (20110212 prerelease) ready (transit mode)
MODE READER
400 NNTP server unavailable.  Try later!
Connection closed by foreign host.

-- 
Julien ÉLIE

« Si Dieu n'est pas marié, pourquoi parle-t-on de sa grande
  Clémence ? » (Raymond Devos)
Re: INN - What error is returned to the user when there is a syntax error in readers.conf?
#84041
Author: Tim Fardell
Date: Tue, 10 May 2011 22:39
23 lines
2193 bytes
On Thu, 05 May 2011 20:02:17 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Russ,
>
>> I think nnrpd will refuse to start when there's a syntax error in
>> readers.conf, so they probably got abruptly closed connections without an
>> error message or something like that.
>
>It wouldn't be RFC-compliant :-)
>If the socket is open (SYN+ACK), I believe nnrpd should send something
>before closing the connection.
>
>With INN 2.5.0 and above, it is:
>
>400 NNTP server unavailable.  Try later!
>
>Before INN 2.5.0, it was a 503 error code.

Thanks everyone - sounds fine, very happy with that behaviour :-)

-- 
Please remove all-your-clothes before replying. 
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