🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82870

Re: nnrpd -S option invalid

#82870
From: 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?
Technical Details
Message-ID: <hmrpsi$mfs$1@optima5.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail
References: <hmokmn$pti$1@optima5.xanadu-bbs.net> <hmomfa$sk$1@solani.org> <hmoqg2$rk4$1@optima5.xanadu-bbs.net> <85ocj4rn7b.fsf@banana.shacknet.nu> <hmotpk$si9$1@optima5.xanadu-bbs.net> <hmr58k$gob$1@optima5.xanadu-bbs.net> <85sk8ed2v7.fsf@banana.shacknet.nu>

Show Full Headers
Complete Article Headers
Message-ID: <hmrpsi$mfs$1@optima5.xanadu-bbs.net>
Subject: Re: nnrpd -S option invalid
Date: Fri, 05 Mar 2010 14:34:26 -0600
From: "John F. Morse" <john@example.invalid>
References: <hmokmn$pti$1@optima5.xanadu-bbs.net> <hmomfa$sk$1@solani.org> <hmoqg2$rk4$1@optima5.xanadu-bbs.net> <85ocj4rn7b.fsf@banana.shacknet.nu> <hmotpk$si9$1@optima5.xanadu-bbs.net> <hmr58k$gob$1@optima5.xanadu-bbs.net> <85sk8ed2v7.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 110
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: optima5.xanadu-bbs.net 1267821266 23036 192.168.89.210 (5 Mar 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Fri, 5 Mar 2010 20:34:26 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
In-Reply-To: <85sk8ed2v7.fsf@banana.shacknet.nu>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 5300