Article View: news.software.nntp
Article #82855Re: nnrpd -S option invalid
From: John F. Morse
Date: Fri, 05 Mar 2010 18:53
Date: Fri, 05 Mar 2010 18:53
134 lines
6561 bytes
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?
Technical Details
Message-ID:
<hmrjuf$ksd$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mailReferences:
<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> <hmrgm2$aej$1@remote5bge0.ripco.com>Show Full Headers
Complete Article Headers
Message-ID: <hmrjuf$ksd$1@optima5.xanadu-bbs.net> Subject: Re: nnrpd -S option invalid Date: Fri, 05 Mar 2010 12:53:03 -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> <hmrgm2$aej$1@remote5bge0.ripco.com> 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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!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: 134 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 1267815183 21389 192.168.89.210 (5 Mar 2010 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Fri, 5 Mar 2010 18:53:03 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <hmrgm2$aej$1@remote5bge0.ripco.com> X-Enigmail-Version: 0.96.0