🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73702

Re: Canceling c.cancel

#73702
From: John F. Morse
Date: Tue, 13 Jun 2006 00:37
152 lines
6183 bytes
Jeffrey M. Vinocur wrote:

>In article <_Vfjg.173401$Fs1.135369@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>Russ Allbery wrote:
>>
>>    
>>
>>>If you look with ps, is innd running with the -C flag?  
>>>      
>>>
>>news     12537  0.0  3.2  7916 4160 ?        Ss   09:10   0:00 
>>/usr/lib/news/bin/innd -p 3 -C
>>
>>But why is it still canceling?
>>    
>>
>
>That's very strange, and I don't have an explanation.
>
>  
>
>>I hope ctlinnd cancel <Message-ID> would still work (if the -C option 
>>starts working) so that I will have some method to cancel an article 
>>should the need arise.
>>    
>>
>
>Yes, you can still cancel messages through ctlinnd.
>  
>


That is good to hear.


>>But the ps aux shows it was -- at least -- the option 
>>part of the command which started the process.
>>
>>But it doesn't show if it really is running -- only part of the command.
>>    
>>
>
>I don't understand these comments.
>  
>


 From what I've read, ps aux will show all processes, and the commands 
that started them.

I took this to mean that ps aux doesn't show whether a specific command 
option was acted upon.

IOW, this particular line (output of ps aux):

 news     12537  0.0  3.2  7916 4160 ?        Ss   09:10   0:01 
/usr/lib/news/bin/innd -p 3 -C

Indicates innd was started with the -p 3 -C options, but not necessarily 
that they did anything.

Usually an error message or code is given when something fails to work 
as specified in a command.


>>If innd failed to act upon it, which it seems to have failed because 
>>cancels are still happening, then it is something internal to innd. I 
>>know of no other way to test it than cancel an article, and then look 
>>and see if it didn't cancel the article.
>>    
>>
>
>I agree...ho hum.  Not quite sure how to debug this.  I mean, I
>just took a look at the code, and it's extremely unambiguous.  I
>don't see any way that a cancel message could be processed when
>-C has been given.
>
>(Are you running Cleanfeed?  If so, that might be a way to dodge
>the issue entirely.)
>  
>


No Cleanfeed. It is a standard, stock binary INN installation, using 
apt-get under Debian Sarge. It's been running flawlessly since last 
September.

As of this moment:

news@optima5:/var/log/news$ uptime
 19:18:03 up 203 days, 17:01,  3 users,  load average: 0.00, 0.00, 0.00

(203 days ago I shut down the computer to physically move it to a 
different server rack.)

I would certainly prefer INN handle this control.cancel blocking, than 
using an outboard application which is still beta after several years.

We need to isolate the trouble first so we will have an idea where to look.

If you (or anyone else) can verify that -C is broken in INN 2.4.3, then 
the objective would be to fix it, which is beyond my capabilities. 
However, if it works for other people, then it is something wrong with 
my installation or build, and I need to try and find the cause.

I have several spare computers with various Linux distros, and can 
certainly try something on those computers. It only costs me some time 
to install and configure INN, which I can prioritize away from such 
things a mowing the grass, ....


>>>No, you have to stop and restart innd with the full set of correct
>>>options.
>>>      
>>>
>>I take this to mean innd cannot have an option changed (added or 
>>toggled) while it is running. It only receives options when starting up, 
>>either from the terminal or from inn.conf.
>>    
>>
>
>Right...
>
>I mean, INN is very configurable, and most of its options can be
>changed while it is running.  However, the commandline options,
>and the contents of inn.conf, are deemed to be things that no one
>would want to change / would be difficult or meaningless to
>change while INN is running.  Probably a lot of the restrictions
>could be lifted, but it would be a lot of effort for small gains,
>and we're not exactly overflowing with spare programmer cycles
>for the INN project.
>


Understood and agree. I was just checking with those who are blessed 
with more experience. ;-)

I was thinking on the lines of running processes, like top(1), which can 
be modified dynamically.

However, after thinking about this, toggling -C on-the-fly might not be 
meaningless if needed when some jerk is observed canceling everything. 
At least the cancel operations could be halted without disallowing 
everybody else access to the server. In an ideal situation, entering 
something like his IP to block his access would be a dream. But I guess 
that's why there are software firewalls. ;-)

-- 
John
Technical Details
Message-ID: <7Nnjg.175630$Fs1.173434@bgtnsc05-news.ops.worldnet.att.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <sIFig.162909$Fs1.92381@bgtnsc05-news.ops.worldnet.att.net> <agfjg.18942$mF2.12329@bgtnsc04-news.ops.worldnet.att.net> <87pshe4dz1.fsf@windlord.stanford.edu> <_Vfjg.173401$Fs1.135369@bgtnsc05-news.ops.worldnet.att.net> <e6kjfh$kgk$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <7Nnjg.175630$Fs1.173434@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: Canceling c.cancel
Date: Tue, 13 Jun 2006 00:37:23 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <sIFig.162909$Fs1.92381@bgtnsc05-news.ops.worldnet.att.net> <agfjg.18942$mF2.12329@bgtnsc04-news.ops.worldnet.att.net> <87pshe4dz1.fsf@windlord.stanford.edu> <_Vfjg.173401$Fs1.135369@bgtnsc05-news.ops.worldnet.att.net> <e6kjfh$kgk$1@puck.litech.org>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <e6kjfh$kgk$1@puck.litech.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 152
NNTP-Posting-Host: 1922fd1564af20a243f39b3e77287c1d
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1150159043
NNTP-Posting-Date: Tue, 13 Jun 2006 00:37:23 GMT