🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
20 messages
20 total messages Started by John F. Morse Thu, 04 Mar 2010 15:47
nnrpd -S option invalid
#82843
Author: John F. Morse
Date: Thu, 04 Mar 2010 15:47
30 lines
2066 bytes
Why?:

news@squeeze:/etc/news$ nnrpd -D -c ./readers.ssl.conf -p 563 -S
nnrpd: invalid option -- 'S'
Usage error.


-S  If specified, nnrpd will start a negotiation for a TLS session as 
soon as
           connected.  To use this flag, --with-openssl must have been 
specified at
           configure time.  For more information on running nnrpd with 
TLS support, see "TLS
           SUPPORT".

Could it be "--with-openssl" was not specified for the Debian testing 
(Squeeze) package?

I downloaded the debian-testing-i386-CD-26.iso and then pulled 
inn2_2.5.1-1_i386.deb out of the iso, and used GDebi to install it for 
the INN 2.5.1-1 system (which is running without problems).

If I examine this Debian package to see if openssl was specified, for 
what should I be looking?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82844
Author: Benjamin Gufler
Date: Thu, 04 Mar 2010 16:17
12 lines
1855 bytes
On 2010-03-04 16:47, John F. Morse wrote:
> Could it be "--with-openssl" was not specified for the Debian testing
> (Squeeze) package?

>From http://packages.debian.org/squeeze/i386/inn2/filelist:
[...]
/usr/lib/news/bin/nnrpd
/usr/lib/news/bin/nnrpd-ssl
[...]

There are two nnrpd-binaries.
Re: nnrpd -S option invalid
#82845
Author: John F. Morse
Date: Thu, 04 Mar 2010 17:26
54 lines
2546 bytes
Hi Benjamin,

Benjamin Gufler wrote:
> On 2010-03-04 16:47, John F. Morse wrote:
>   
>> Could it be "--with-openssl" was not specified for the Debian testing
>> (Squeeze) package?
>>     
>
> From http://packages.debian.org/squeeze/i386/inn2/filelist:
>   

The colon broke the URL.  ;-) 

http://packages.debian.org/squeeze/i386/inn2/filelist


> [...]
> /usr/lib/news/bin/nnrpd
> /usr/lib/news/bin/nnrpd-ssl
> [...]
>
> There are two nnrpd-binaries.
>   


Yes, I have both. Thanks for pointing that out to me.

I guess the docs need to show nnrpd-ssl as the executable instead of nnrpd?

news@squeeze:/etc/news$ nnrpd-ssl -D -c ./readers-ssl.conf -p 563 -S

 From syslog:

Mar  4 11:01:38 squeeze nnrpd-ssl[15146]: cannot write nnrpd-563.pid No 
such file or directory

Looks like it tries to launch then bails out.

Since the port is below 1024, I'll try it as sudo and with full pathnames:

john@squeeze:/usr/lib/news/bin$ sudo /usr/lib/news/bin/nnrpd-ssl -D -c 
/etc/news/readers-ssl.conf -p 563 -S

Mar  4 11:23:02 squeeze nnrpd-ssl[15623]: cannot write nnrpd-563.pid No 
such file or directory

Ideas?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82846
Author: Ray Banana
Date: Thu, 04 Mar 2010 17:50
26 lines
2445 bytes
Thus spake "John F. Morse" <john@example.invalid>
 
> Mar  4 11:01:38 squeeze nnrpd-ssl[15146]: cannot write nnrpd-563.pid
> No such file or directory
> Looks like it tries to launch then bails out.

Can't create its pid file.

> Since the port is below 1024, I'll try it as sudo and with full pathnames:

> john@squeeze:/usr/lib/news/bin$ sudo /usr/lib/news/bin/nnrpd-ssl -D -c 
> /etc/news/readers-ssl.conf -p 563 -S

> Mar  4 11:23:02 squeeze nnrpd-ssl[15623]: cannot write nnrpd-563.pid
> No such file or directory
> Ideas?

Please check inn.conf for  the pathrun: varibale. On Debian, it should
point to /var/run/news, which should be owned by user news. 

>From your log messages, I conclude that pathrun points to a nonexistent
directory.  

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: nnrpd -S option invalid
#82847
Author: John F. Morse
Date: Thu, 04 Mar 2010 18:22
71 lines
3594 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <john@example.invalid>
>  
>   
>> Mar  4 11:01:38 squeeze nnrpd-ssl[15146]: cannot write nnrpd-563.pid
>> No such file or directory
>> Looks like it tries to launch then bails out.
>>     
>
> Can't create its pid file.
>
>   
>> Since the port is below 1024, I'll try it as sudo and with full pathnames:
>>     
>> john@squeeze:/usr/lib/news/bin$ sudo /usr/lib/news/bin/nnrpd-ssl -D -c 
>> /etc/news/readers-ssl.conf -p 563 -S
>>     
>> Mar  4 11:23:02 squeeze nnrpd-ssl[15623]: cannot write nnrpd-563.pid
>> No such file or directory
>> Ideas?
>>     
>
> Please check inn.conf for  the pathrun: varibale. On Debian, it should
> point to /var/run/news, which should be owned by user news. 
>
> From your log messages, I conclude that pathrun points to a nonexistent
> directory.


Hi, Ray.

Everything looks good here.

# Paths

patharchive:            /var/spool/news/archive
patharticles:           /var/spool/news/articles
pathbin:                /usr/lib/news/bin
pathcontrol:            /usr/lib/news/bin/control
pathdb:                 /var/lib/news
pathetc:                /etc/news
pathfilter:             /etc/news/filter
pathhttp:               /var/www/squeeze
pathincoming:           /var/spool/news/incoming
pathlog:                /var/log/news
pathoutgoing:           /var/spool/news/outgoing
pathoverview:           /var/spool/news/overview
pathrun:                /var/run/news
pathspool:              /var/spool/news
pathtmp:                /var/spool/news/incoming/tmp


john@squeeze:/var/run/news$ ls -al
total 21
drwxrwxr-x  2 news news  248 2010-03-04 12:10 .
drwxr-xr-x 15 root root 1008 2010-03-01 08:38 ..
-rw-rw-r--  1 news news    5 2010-03-01 08:39 cnfsstat.pid
srwxrwxr-x  1 news news    0 2010-03-01 08:38 control
-rw-rw-r--  1 news news    5 2010-03-01 08:38 innd.pid
-rw-rw-r--  1 news news    5 2010-03-04 01:38 innfeed.pid
-rw-rw-r--  1 news news    5 2010-03-01 08:39 innwatch.pid
-rw-r--r--  1 news news   11 2010-03-01 08:39 LOCK.innwatch
srwxrwxr-x  1 news news    0 2010-03-01 08:38 nntpin

Your turn. ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82851
Author: John F. Morse
Date: Fri, 05 Mar 2010 14:42
72 lines
3949 bytes
John F. Morse wrote:
> Ray Banana wrote:
>> Thus spake "John F. Morse" <john@example.invalid> 
>>> Mar  4 11:01:38 squeeze nnrpd-ssl[15146]: cannot write nnrpd-563.pid
>>> No such file or directory
>>> Looks like it tries to launch then bails out. 
>>
>> Can't create its pid file.
>>  
>>> Since the port is below 1024, I'll try it as sudo and with full 
>>> pathnames:
>>>     john@squeeze:/usr/lib/news/bin$ sudo /usr/lib/news/bin/nnrpd-ssl 
>>> -D -c /etc/news/readers-ssl.conf -p 563 -S
>>>     Mar  4 11:23:02 squeeze nnrpd-ssl[15623]: cannot write 
>>> nnrpd-563.pid
>>> No such file or directory
>>> Ideas?  
>>
>> Please check inn.conf for  the pathrun: varibale. On Debian, it should
>> point to /var/run/news, which should be owned by user news.
>> From your log messages, I conclude that pathrun points to a nonexistent
>> directory.
>
> Hi, Ray.
>
> Everything looks good here.
>
> # Paths
>
> patharchive:            /var/spool/news/archive
> patharticles:           /var/spool/news/articles
> pathbin:                /usr/lib/news/bin
> pathcontrol:            /usr/lib/news/bin/control
> pathdb:                 /var/lib/news
> pathetc:                /etc/news
> pathfilter:             /etc/news/filter
> pathhttp:               /var/www/squeeze
> pathincoming:           /var/spool/news/incoming
> pathlog:                /var/log/news
> pathoutgoing:           /var/spool/news/outgoing
> pathoverview:           /var/spool/news/overview
> pathrun:                /var/run/news
> pathspool:              /var/spool/news
> pathtmp:                /var/spool/news/incoming/tmp
>
>
> john@squeeze:/var/run/news$ ls -al
> total 21
> drwxrwxr-x  2 news news  248 2010-03-04 12:10 .
> drwxr-xr-x 15 root root 1008 2010-03-01 08:38 ..
> -rw-rw-r--  1 news news    5 2010-03-01 08:39 cnfsstat.pid
> srwxrwxr-x  1 news news    0 2010-03-01 08:38 control
> -rw-rw-r--  1 news news    5 2010-03-01 08:38 innd.pid
> -rw-rw-r--  1 news news    5 2010-03-04 01:38 innfeed.pid
> -rw-rw-r--  1 news news    5 2010-03-01 08:39 innwatch.pid
> -rw-r--r--  1 news news   11 2010-03-01 08:39 LOCK.innwatch
> srwxrwxr-x  1 news news    0 2010-03-01 08:38 nntpin


When I wrote "Everything looks good here" above, I may have implied that 
the trouble was fixed.

It isn't, and I still cannot find why SSL/TLS fails with nnrpd despite 
the apparently-correct permissions.

Any other ideas?


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82850
Author: Bruce Esquibel
Date: Fri, 05 Mar 2010 17:57
40 lines
2793 bytes
John F. Morse <john@example.invalid> wrote:

> When I wrote "Everything looks good here" above, I may have implied that 
> the trouble was fixed.

> It isn't, and I still cannot find why SSL/TLS fails with nnrpd despite 
> the apparently-correct permissions.

> Any other ideas?


Besides going back to the retards that put the package together, this really
isn't a problem with INN that anyone can help with.

I don't know what tools you have but like on Solaris, if you truss the
program it will show all the places and files a program is trying to open or
write to. That would give a substantial clue where the pid is trying to be
written to.

The sudo attempt you made shows the problem isn't permissions (directories
or files owned by news) but more likely a missing directory. Even root
cannot write to a directory if it doesn't already exist.

Unless there was a substantial change in the 2.5.x branch, nnrpd-ssl isn't
part of the distribution, if you compile it yourself. Once INN is made aware
you have ssl libraries, a single nnrpd is created, used for both standard
and encrypted connections.

Only rough guess is the nnrpd-ssl came from somewhere else or was compiled
differently where it's looking for like /var/run/news or /var/spool/news/run
or any other of the billions of combinations. It's supposed to read the
pathrun from inn.conf but obviously if root is getting a "can't write", they
did something else in the binary with the path.

Maybe it's not even reading inn.conf and trying to write everything under /.

Sky's the limit.

-bruce
bje@ripco.com
Re: nnrpd -S option invalid
#82852
Author: Tony
Date: Fri, 05 Mar 2010 18:07
16 lines
2322 bytes
In news.software.nntp, Bruce Esquibel <bje@ripco.com> wrote:

>Only rough guess is the nnrpd-ssl came from somewhere else or was compiled
>differently where it's looking for like /var/run/news or /var/spool/news/run
>or any other of the billions of combinations. It's supposed to read the
>pathrun from inn.conf but obviously if root is getting a "can't write", they
>did something else in the binary with the path.

nnrpd-ssl is part of the Debian distribution for INN on Stable.

-- 
Tony Evans
Saving trees and wasting electrons since 1993
blog  -> http://perceptionistruth.com/
books -> http://www.bookthing.co.uk/
[ anything below this line wasn't written by me ]
Re: nnrpd -S option invalid
#82853
Author: Tony
Date: Fri, 05 Mar 2010 18:16
36 lines
2579 bytes
In news.software.nntp, "John F. Morse" <john@example.invalid> wrote:

>Ideas?

Here's how I set it up.

/etc/inetd.conf

nntps stream tcp nowait news:news /usr/lib/news/bin/nnrpd-ssl nnrpd-ssl -S

/etc/news/sasl.conf

tls_cert_file:          /etc/news/cert.pem
tls_key_file:           /etc/news/key.pem
tls_ca_path:            /etc/news

That was it, then just connecting to port 563 works.

matrix:/var/run/news# ls -la
total 32
drwxrwxr-x  2 news news 4096 Mar  5 18:05 .
drwxr-xr-x 13 root root 4096 Mar  5 03:44 ..
-rw-r--r--  1 news news    6 Feb  3 22:38 LOCK.innwatch
srwxrwxr-x  1 news news    0 Feb  3 22:37 control
-rw-rw-r--  1 news news    6 Feb  3 22:37 innd.pid
-rw-rw-r--  1 news news    6 Mar  3 21:16 innfeed.pid
-rw-rw-r--  1 news news    6 Feb  3 22:38 innwatch.pid
-rw-rw-r--  1 news news   29 Jan 27 11:28 innwatch.time
-rw-r--r--  1 news news    6 Feb  4 00:13 nnrpd-563.pid
srwxrwxr-x  1 news news    0 Feb  3 22:37 nntpin
-- 
Tony Evans
Saving trees and wasting electrons since 1993
blog  -> http://perceptionistruth.com/
books -> http://www.bookthing.co.uk/
[ anything below this line wasn't written by me ]
Re: nnrpd -S option invalid
#82854
Author: Ray Banana
Date: Fri, 05 Mar 2010 18:45
54 lines
3733 bytes
Thus spake "John F. Morse" <john@example.invalid>
 
> When I wrote "Everything looks good here" above, I may have implied
> that the trouble was fixed.

Actually, that's what I gathered from your previous reply ;-)

> It isn't, and I still cannot find why SSL/TLS fails with nnrpd despite
> the apparently-correct permissions.
> Any other ideas?

So far, I did a fresh install of inn2_2.5.1-1_i386.deb on a Sid system
(sorry, no Squeeze available, but the inn2 packages in Squeeze and Sid
are currently the same). I can confirm that

1. inn2_2.5.1-1_i386.deb doesn't install a default inn.conf and hence
   install fails

2. If I manually copy a inn.conf.dpkg-dist from another system to
   /etc/news/ and re-run the installation, it will succeed and start
   innd.

3. if I uncomment the line 

     # su news -c '/usr/lib/news/bin/nnrpd-ssl -D -p 563 -S'

    in /etc/init.d/inn2 it will attempt to start nnrpd-ssl, which fails
    with "nnrpd-ssl[5047]: cannot write nnrpd-563.pid Permission
    denied". pathrun points to /var/run/news, which is owned by user
    news and is populated with 

    -rw-r--r--  1 news news   11  5. Mar 19:15 LOCK.innwatch
    -rw-rw-r--  1 news news    5  5. Mar 19:15 innwatch.pid
    srwxrwxr-x  1 news news    0  5. Mar 19:25 nntpin
    -rw-rw-r--  1 news news    5  5. Mar 19:25 innd.pid
    srwxrwxr-x  1 news news    0  5. Mar 19:25 control




4. if I run the above command through strace, I get a segfault:

   kernel: [ 2499.059495] nnrpd-ssl[6252]: segfault at 20666f01 ip
   0806948a sp bfebfb50 error 4 in nnrpd-ssl[8048000+63000]    

My conclusion so far is that inn2_2.5.1-1_i386.deb is seriously
broken. Downloading the source package and looking at the build scripts
might shed more light on this problem, unfortunately I'm quite busy at
the moment so I will not be able to do much testing for the next couple
of weeks. 

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: nnrpd -S option invalid
#82855
Author: John F. Morse
Date: Fri, 05 Mar 2010 18:53
134 lines
6561 bytes
Bruce Esquibel wrote:
> John F. Morse <john@example.invalid> wrote:
>   
>> When I wrote "Everything looks good here" above, I may have implied that 
>> the trouble was fixed.
>>     
>> It isn't, and I still cannot find why SSL/TLS fails with nnrpd despite 
>> the apparently-correct permissions.
>>     
>> Any other ideas?
>>     
>
>
> Besides going back to the retards that put the package together, this really
> isn't a problem with INN that anyone can help with.
>
> I don't know what tools you have but like on Solaris, if you truss the
> program it will show all the places and files a program is trying to open or
> write to. That would give a substantial clue where the pid is trying to be
> written to.
>
> The sudo attempt you made shows the problem isn't permissions (directories
> or files owned by news) but more likely a missing directory. Even root
> cannot write to a directory if it doesn't already exist.
>
> Unless there was a substantial change in the 2.5.x branch, nnrpd-ssl isn't
> part of the distribution, if you compile it yourself. Once INN is made aware
> you have ssl libraries, a single nnrpd is created, used for both standard
> and encrypted connections.
>
> Only rough guess is the nnrpd-ssl came from somewhere else or was compiled
> differently where it's looking for like /var/run/news or /var/spool/news/run
> or any other of the billions of combinations. It's supposed to read the
> pathrun from inn.conf but obviously if root is getting a "can't write", they
> did something else in the binary with the path.
>
> Maybe it's not even reading inn.conf and trying to write everything under /.
>
> Sky's the limit.
>
> -bruce
> bje@ripco.com
>   

Hi Bruce.

I have:

john@squeeze:/usr/lib/news/bin$ ls -al nnrpd*
-rwxr-xr-x 1 root root 395272 2009-10-26 20:21 nnrpd
-rwxr-xr-x 1 root root 408008 2009-10-26 20:21 nnrpd-ssl

The ssl version is slightly larger.

The commands I were trying are:

john@squeeze:/usr/lib/news/bin$ sudo /usr/lib/news/bin/nnrpd-ssl -D -c 
/etc/news/readers-ssl.conf -p 563 -S

news@squeeze:/usr/lib/news/bin$ /usr/lib/news/bin/nnrpd-ssl -D -c 
/etc/news/readers-ssl.conf -p 563 -S

Both show the same syslog error:

Mar  5 12:17:22 squeeze nnrpd-ssl[9550]: cannot write nnrpd-563.pid No 
such file or directory

Also logged in news.err:

news@squeeze:/var/log/news$ cat news.err
Mar  5 05:51:05 squeeze nnrpd-ssl[2473]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 05:53:40 squeeze nnrpd-ssl[2514]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 05:57:15 squeeze nnrpd-ssl[2531]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 06:27:22 squeeze nnrpd-ssl[3092]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 06:54:40 squeeze nnrpd-ssl[3571]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 07:00:12 squeeze nnrpd-ssl[3623]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 12:16:26 squeeze nnrpd-ssl[9507]: cannot write nnrpd-563.pid No 
such file or directory
Mar  5 12:17:22 squeeze nnrpd-ssl[9550]: cannot write nnrpd-563.pid No 
such file or directory

I touched the file in /var/run/news but it obviously isn't seeing it:

news@squeeze:/var/run/news$ ls -al
total 21
drwxrwxr-x  2 news news  280 2010-03-05 12:20 .
drwxr-xr-x 15 root root 1008 2010-03-01 08:38 ..
-rw-rw-r--  1 news news    5 2010-03-01 08:39 cnfsstat.pid
srwxrwxr-x  1 news news    0 2010-03-05 06:59 control
-rw-rw-r--  1 news news    5 2010-03-05 06:59 innd.pid
-rw-rw-r--  1 news news    5 2010-03-05 06:59 innfeed.pid
-rw-rw-r--  1 news news    5 2010-03-01 08:39 innwatch.pid
-rw-r--r--  1 news news   11 2010-03-01 08:39 LOCK.innwatch
-rw-rw----  1 news news    0 2010-03-05 05:53 nnrpd-563.pid
srwxrwxr-x  1 news news    0 2010-03-05 06:59 nntpin

It's not anywhere else:

john@squeeze:/usr/lib/news/bin$ sudo updatedb
john@squeeze:/usr/lib/news/bin$ locate nnrpd-563.pid
/var/run/news/nnrpd-563.pid

I considered maybe flipping the two filenames so that the nnrpd-ssl was 
nnrpd but that would still likely give the same error since it is still 
the same file that is trying to write the pid file somewhere.

I don't find truss available in the DEB-APT. However Wikipedia gives a 
clue that it is a Unix operating system program to trace system calls 
with their arguments and signals. However the Truss_(Unix) link 
redirects to the following page which provides no additional clues:

http://en.wikipedia.org/wiki/Truss_(Unix)

I found two trace utilities that might be useful: ltrace and strace 
which I have installed. I'll examine the ton of output they have 
generated and see if either can produce a clue. I will need to pipe them 
through a pager or redirect the output to a textfile.

Maybe Julien will have some idea?

Thanks for looking at this. My problems in the past are usually some 
stupid typo error because my eyes are too old for this stuff. ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82856
Author: John F. Morse
Date: Fri, 05 Mar 2010 19:18
34 lines
2715 bytes
Tony wrote:
> In news.software.nntp, Bruce Esquibel <bje@ripco.com> wrote:
>
>   
>> Only rough guess is the nnrpd-ssl came from somewhere else or was compiled
>> differently where it's looking for like /var/run/news or /var/spool/news/run
>> or any other of the billions of combinations. It's supposed to read the
>> pathrun from inn.conf but obviously if root is getting a "can't write", they
>> did something else in the binary with the path.
>>     
>
> nnrpd-ssl is part of the Debian distribution for INN on Stable.
>   

Yes, here it is installed on a working Lenny server (/usr/lib/news/bin):

-r-xr-xr-x 1 news news 375848 2008-12-14 17:51 nnrpd
-rwxr-xr-x 1 root root 390568 2008-12-14 17:51 nnrpd-ssl

As Benjamin indicated, it is included in Debian Testing (Squeeze) as well:

http://packages.debian.org/squeeze/i386/inn2/filelist

Here it is installed on a working Squeeze (testing) server 
(/usr/lib/news/bin)

-rwxr-xr-x 1 root root 395272 2009-10-26 20:21 nnrpd
-rwxr-xr-x 1 root root 408008 2009-10-26 20:21 nnrpd-ssl


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82857
Author: John F. Morse
Date: Fri, 05 Mar 2010 19:25
45 lines
2557 bytes
Tony wrote:
> In news.software.nntp, "John F. Morse" <john@example.invalid> wrote:
>
>   
>> Ideas?
>>     
>
> Here's how I set it up.
>
> /etc/inetd.conf
>
> nntps stream tcp nowait news:news /usr/lib/news/bin/nnrpd-ssl nnrpd-ssl -S
>
> /etc/news/sasl.conf
>
> tls_cert_file:          /etc/news/cert.pem
> tls_key_file:           /etc/news/key.pem
> tls_ca_path:            /etc/news
>
> That was it, then just connecting to port 563 works.
>
> matrix:/var/run/news# ls -la
> total 32
> drwxrwxr-x  2 news news 4096 Mar  5 18:05 .
> drwxr-xr-x 13 root root 4096 Mar  5 03:44 ..
> -rw-r--r--  1 news news    6 Feb  3 22:38 LOCK.innwatch
> srwxrwxr-x  1 news news    0 Feb  3 22:37 control
> -rw-rw-r--  1 news news    6 Feb  3 22:37 innd.pid
> -rw-rw-r--  1 news news    6 Mar  3 21:16 innfeed.pid
> -rw-rw-r--  1 news news    6 Feb  3 22:38 innwatch.pid
> -rw-rw-r--  1 news news   29 Jan 27 11:28 innwatch.time
> -rw-r--r--  1 news news    6 Feb  4 00:13 nnrpd-563.pid
> srwxrwxr-x  1 news news    0 Feb  3 22:37 nntpin
>   

Which release version of INN is this, Tony?

My INN 2.5.1 has the three tls_ file configurations inside inn.conf and 
I have no sasl.conf file.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82868
Author: Tony
Date: Fri, 05 Mar 2010 20:22
15 lines
2021 bytes
In news.software.nntp, "John F. Morse" <john@example.invalid> wrote:

>Which release version of INN is this, Tony?
>
>My INN 2.5.1 has the three tls_ file configurations inside inn.conf and 
>I have no sasl.conf file.

My apologies, I noticed your version of Debian / INN after I posted.  It's
Debian stable, INN 2.4.5
-- 
Tony Evans
Saving trees and wasting electrons since 1993
blog  -> http://perceptionistruth.com/
books -> http://www.bookthing.co.uk/
[ anything below this line wasn't written by me ]
Re: nnrpd -S option invalid
#82870
Author: John F. Morse
Date: Fri, 05 Mar 2010 20:34
110 lines
5468 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <john@example.invalid>
>  
>   
>> When I wrote "Everything looks good here" above, I may have implied
>> that the trouble was fixed.
>>     
>
> Actually, that's what I gathered from your previous reply ;-)
>   
>> It isn't, and I still cannot find why SSL/TLS fails with nnrpd despite
>> the apparently-correct permissions.
>> Any other ideas?
>>     
>
> So far, I did a fresh install of inn2_2.5.1-1_i386.deb on a Sid system
> (sorry, no Squeeze available, but the inn2 packages in Squeeze and Sid
> are currently the same). I can confirm that
>
> 1. inn2_2.5.1-1_i386.deb doesn't install a default inn.conf and hence
>    install fails
>   


Mine works OK (except for SSL/TLS into nnrpd).


> 2. If I manually copy a inn.conf.dpkg-dist from another system to
>    /etc/news/ and re-run the installation, it will succeed and start
>    innd.
>
> 3. if I uncomment the line 
>
>      # su news -c '/usr/lib/news/bin/nnrpd-ssl -D -p 563 -S'
>
>     in /etc/init.d/inn2 it will attempt to start nnrpd-ssl, which fails
>     with "nnrpd-ssl[5047]: cannot write nnrpd-563.pid Permission
>     denied". pathrun points to /var/run/news, which is owned by user
>     news and is populated with 
>
>     -rw-r--r--  1 news news   11  5. Mar 19:15 LOCK.innwatch
>     -rw-rw-r--  1 news news    5  5. Mar 19:15 innwatch.pid
>     srwxrwxr-x  1 news news    0  5. Mar 19:25 nntpin
>     -rw-rw-r--  1 news news    5  5. Mar 19:25 innd.pid
>     srwxrwxr-x  1 news news    0  5. Mar 19:25 control
>   


After doing this and "/etc/init.d/inn2 restart" there was nothing 
showing in the syslog tail, and no "ps aux" PID listed for nnrpd nor 
nnrpd-ssl.


> 4. if I run the above command through strace, I get a segfault:
>
>    kernel: [ 2499.059495] nnrpd-ssl[6252]: segfault at 20666f01 ip
>    0806948a sp bfebfb50 error 4 in nnrpd-ssl[8048000+63000]    
>
> My conclusion so far is that inn2_2.5.1-1_i386.deb is seriously
> broken. Downloading the source package and looking at the build scripts
> might shed more light on this problem, unfortunately I'm quite busy at
> the moment so I will not be able to do much testing for the next couple
> of weeks.
>   


Something is broken. ;-)

I don't get the segfault though. The strace produces 346 lines, and the 
only thing I see (with my limited knowledge) are lines with 
"/etc/id.so...." with "-1 ENOENT (No such file or directory)" which may 
or may not be problems.

I only have the following two /etc/ld* files:

news@n102:~$ ls -al /etc/ld*
-rw-r--r-- 1 root root 61567 2010-03-05 12:41 /etc/ld.so.cache
-rw-r--r-- 1 root root    34 2010-02-11 15:56 /etc/ld.so.conf

Here are the first 10 lines of the strace output:

execve("/usr/lib/news/bin/nnrpd-ssl", ["/usr/lib/news/bin/nnrpd-ssl", 
"-D", "-c", "/etc/news/readers-ssl.conf", "-p", "563", "-S"], [/* 16 
vars */]) = 0
brk(0)                                  = 0x84f6000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7813000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=61567, ...}) = 0
mmap2(NULL, 61567, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7803000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)

Nowhere in the strace does "nnrpd" appear.

I have the source (inn-2.5.1.tar.gz from ISC), and all it's done for me 
so far is make me go blind. ;-)

The inn2_2.5.1-1_i386.deb package is little help since nnrpd is a binary.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82867
Author: John F. Morse
Date: Fri, 05 Mar 2010 20:40
23 lines
2229 bytes
Tony wrote:
> In news.software.nntp, "John F. Morse" <john@example.invalid> wrote:
>   
>> Which release version of INN is this, Tony?
>>
>> My INN 2.5.1 has the three tls_ file configurations inside inn.conf and 
>> I have no sasl.conf file.
>>     
>
> My apologies, I noticed your version of Debian / INN after I posted.  It's
> Debian stable, INN 2.4.5
>   

Ah, yes, I see this on my three INN 2.4.5-5 servers under Lenny. I'm not 
using SSL/TLS for nnrpd on them though (two are transit only servers).

No problem, and thanks for chiming in.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82860
Author: Ray Banana
Date: Sat, 06 Mar 2010 08:59
30 lines
2909 bytes
Thus spake "John F. Morse" <john@example.invalid>
 
>> My conclusion so far is that inn2_2.5.1-1_i386.deb is seriously
>> broken. Downloading the source package and looking at the build scripts
>> might shed more light on this problem, unfortunately I'm quite busy at
>> the moment so I will not be able to do much testing for the next couple
>> of weeks.
> Something is broken. ;-)

nnrpd-ssl seems to have been built with an empty RUNDIR:

[pid 25384] open("./nnrpd-563.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) =
-1 EACCES (Permission denied)

as compared to the strace output from an nnrp compiled from the sources
with a manual "configure --with-run-dir=/var/run/news". 

[pid 30012] open("/var/run/news/nnrpd-563.pid",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6  

> I have the source (inn-2.5.1.tar.gz from ISC), and all it's done for
> me so far is make me go blind. ;-)
> The inn2_2.5.1-1_i386.deb package is little help since nnrpd is a binary.

I was actually referring to the deb-src package containing the Debian
build scripts and patches. 

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: nnrpd -S option invalid
#82869
Author: John F. Morse
Date: Sat, 06 Mar 2010 14:40
57 lines
3452 bytes
Ray Banana wrote:
> Thus spake "John F. Morse" <john@example.invalid>
>  
>   
>>> My conclusion so far is that inn2_2.5.1-1_i386.deb is seriously
>>> broken. Downloading the source package and looking at the build scripts
>>> might shed more light on this problem, unfortunately I'm quite busy at
>>> the moment so I will not be able to do much testing for the next couple
>>> of weeks.
>>>       
>> Something is broken. ;-)
>>     
>
> nnrpd-ssl seems to have been built with an empty RUNDIR:
>
> [pid 25384] open("./nnrpd-563.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) =
> -1 EACCES (Permission denied)
>
> as compared to the strace output from an nnrp compiled from the sources
> with a manual "configure --with-run-dir=/var/run/news". 
>
> [pid 30012] open("/var/run/news/nnrpd-563.pid",
> O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6  
>
>   
>> I have the source (inn-2.5.1.tar.gz from ISC), and all it's done for
>> me so far is make me go blind. ;-)
>> The inn2_2.5.1-1_i386.deb package is little help since nnrpd is a binary.
>>     
>
> I was actually referring to the deb-src package containing the Debian
> build scripts and patches.


This?: 
http://ftp.de.debian.org/debian/pool/main/i/inn2/inn2_2.5.1.orig.tar.gz

Do you find the creation of the empty RUNDIR in that source? If so, 
which file?

I did create (touch) the file, but it is still not seen.

In http://ftp.de.debian.org/debian/pool/main/i/inn2/inn2_2.5.1-1.diff.gz

Take a look at line 115, 1250 and 1760-1765.

Maybe a clue there, such as replacing the nnrpd with the nnrpd-ssl file 
and renaming it?

I still think that wouldn't help because that nnrpd-ssl is ran with the 
"/usr/lib/news/bin/nnrpd-ssl" and can't find the .pid file.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: nnrpd -S option invalid
#82872
Author: Ray Banana
Date: Sat, 06 Mar 2010 16:33
47 lines
3624 bytes
Thus spake "John F. Morse" <john@example.invalid>
 
>> I was actually referring to the deb-src package containing the Debian
>> build scripts and patches.
> This?:
> http://ftp.de.debian.org/debian/pool/main/i/inn2/inn2_2.5.1.orig.tar.gz
> Do you find the creation of the empty RUNDIR in that source? If so,
> which file?

The Debian modifications are in the .diff file you mention below.

> I did create (touch) the file, but it is still not seen.

Mind the "./" in "./nnrpd-xxx.pid" ;-)
If you do a  "touch /nnrpd-563.pid && chown news:news /nnrpd-563.pid"
prior to invoking 

su news -c '/usr/lib/news/bin/nnrpd-ssl -D -p 563 -S'

it will work, but that's an ugly workaround. Apart from that, this is
not the only problem with paths in nnrpd-ssl. Look where it's looking
for its default readers.conf:

nnrpd-ssl[2899]: stdin cannot open /var/log/news/readers.conf: No such file or directory

> In http://ftp.de.debian.org/debian/pool/main/i/inn2/inn2_2.5.1-1.diff.gz
> Take a look at line 115, 1250 and 1760-1765.

None of them is relevant for the current problem with nnrpd-ssl. 
The cause seems to be buried somewhere in the symlinking shenanigans
prior to the second make run.

> Maybe a clue there, such as replacing the nnrpd with the nnrpd-ssl
> file and renaming it?

Then nnrpd would be broken, too. Not really an improvement.

> I still think that wouldn't help because that nnrpd-ssl is ran with
> the "/usr/lib/news/bin/nnrpd-ssl" and can't find the .pid file.

/usr/lib/news/bin/nnrpd is OK, but doesn't have SSL support. Something
seems to go wrong when nnrpd is built again with SSL enabled and the
resulting executable is renamed to nnrpd-ssl.

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: nnrpd -S option invalid
#82882
Author: Julien ÉLIE
Date: Sun, 07 Mar 2010 18:15
53 lines
3431 bytes
Hi Ray,

> So far, I did a fresh install of inn2_2.5.1-1_i386.deb on a Sid system
> (sorry, no Squeeze available, but the inn2 packages in Squeeze and Sid
> are currently the same). I can confirm that
>
> 1. inn2_2.5.1-1_i386.deb doesn't install a default inn.conf and hence
>   install fails

inn.conf is installed by inn2-inews_2.5.1-1_alpha.deb (on which INN2 depends).
It already was the case with INN 2.4.x on Etch.



> 3. if I uncomment the line
>
>     # su news -c '/usr/lib/news/bin/nnrpd-ssl -D -p 563 -S'
>
>    in /etc/init.d/inn2 it will attempt to start nnrpd-ssl, which fails
>    with "nnrpd-ssl[5047]: cannot write nnrpd-563.pid Permission
>    denied". pathrun points to /var/run/news, which is owned by user
>    news and is populated with
>
>    -rw-r--r--  1 news news   11  5. Mar 19:15 LOCK.innwatch
>    -rw-rw-r--  1 news news    5  5. Mar 19:15 innwatch.pid
>    srwxrwxr-x  1 news news    0  5. Mar 19:25 nntpin
>    -rw-rw-r--  1 news news    5  5. Mar 19:25 innd.pid
>    srwxrwxr-x  1 news news    0  5. Mar 19:25 control
>
>
>
>
> 4. if I run the above command through strace, I get a segfault:
>
>   kernel: [ 2499.059495] nnrpd-ssl[6252]: segfault at 20666f01 ip
>   0806948a sp bfebfb50 error 4 in nnrpd-ssl[8048000+63000]
>
> My conclusion so far is that inn2_2.5.1-1_i386.deb is seriously
> broken. Downloading the source package and looking at the build scripts
> might shed more light on this problem, unfortunately I'm quite busy at
> the moment so I will not be able to do much testing for the next couple
> of weeks.

Very strange.
I have just forwarded your news article to Marco.

-- 
Julien ÉLIE

« Loving unconditional means forgiving and learning to live
  with his imperfections.  Because in the end
  you'll realize that it is what you love the most. » 
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