Thread View: news.software.nntp
5 messages
5 total messages
Started by Tim Fardell
Tue, 13 Mar 2012 19:29
Mistake in newsfeeds caused INN to crash
Author: Tim Fardell
Date: Tue, 13 Mar 2012 19:29
Date: Tue, 13 Mar 2012 19:29
23 lines
1816 bytes
1816 bytes
Good evening all.
I just added a new feed to 'newsfeeds' but I made an error in the
config. What I accidentally configured was:
news.example.com:\
:localhierarchy*,control*:\
:Tm:innfeed!
Spot the obvious mistake :-)
Anyway, when I did 'ctlinnd reload newsfeeds' the server crashed.
Ctlinnd seemed to be taking ages, so I broke out of it, and found that
the server was no longer running, and I had to manually restart it
(after correcting the mistake in newsfeeds).
Can anyone explain why this apparently small mistake had such drastic
consequences?
Thanks!
--
Please remove all-your-clothes before replying.
Re: Mistake in newsfeeds caused INN to crash
Author: D. Stussy
Date: Tue, 13 Mar 2012 20:40
Date: Tue, 13 Mar 2012 20:40
32 lines
2441 bytes
2441 bytes
"Tim Fardell" <tim.fardell.all-your-clothes@virgin.net> wrote in message news:uk7vl7d8l4i0rj7iv2fifhjiurn6kl1ar1@4ax.com... > Good evening all. > > I just added a new feed to 'newsfeeds' but I made an error in the > config. What I accidentally configured was: > > news.example.com:\ > :localhierarchy*,control*:\ > :Tm:innfeed! > > Spot the obvious mistake :-) The null group list in the 2nd field didn't do it. It must either be in the flag parsing (3rd field) or the 4th field (or 4th & 5th, depending on how it was actually parsed). > Anyway, when I did 'ctlinnd reload newsfeeds' the server crashed. This is why one should do a "ctlinnd checkfile" first. > Ctlinnd seemed to be taking ages, so I broke out of it, and found that > the server was no longer running, and I had to manually restart it > (after correcting the mistake in newsfeeds). > > Can anyone explain why this apparently small mistake had such drastic > consequences? Without looking at the source, no. However, I agree that badly formed data should not crash the program.
Re: Mistake in newsfeeds caused INN to crash
Author: Julien ÉLIE
Date: Fri, 16 Mar 2012 22:20
Date: Fri, 16 Mar 2012 22:20
86 lines
3792 bytes
3792 bytes
Hi Tim,
> I just added a new feed to 'newsfeeds' but I made an error in the
> config. What I accidentally configured was:
>
> news.example.com:\
> :localhierarchy*,control*:\
> :Tm:innfeed!
>
> Anyway, when I did 'ctlinnd reload newsfeeds' the server crashed.
We can add a check of the syntax of the newsfeeds file when trying
to reload "all", "active" and "newsfeeds".
It would give:
% ctlinnd reload newsfeeds ''
ctlinnd: Found 1 errors -- see syslog
zsh: exit 1 ctlinnd reload newsfeeds ''
% cat /var/log/news/news.err
Mar 16 22:59:24 news innd: news.example.com bad_newsfeeds unknown field 3 flag
The problem is that it fixes the first problem (":" at the end
of the first line will be detected) but if you only have the second
problem (":" at the end of the second line), it will still not be
detected.
news.example.com\
:localhierarchy*,control*\
:Tm:::::::innfeed!
will also trigger problems off...
=> Mar 16 23:09:40 news innd: news.example.com funnel_bad
For this fix, we would need the (long-waited-for) new inn.conf parser
for the newsfeeds file...
Anyway, here is a patch for the first issue:
--- innd/cc.c (révision 9397)
+++ innd/cc.c (copie de travail)
@@ -1315,6 +1315,7 @@
CCreload(char *av[])
{
const char *p;
+ const char *error;
#ifdef DO_PERL
static char BADPERLRELOAD[] = "1 Failed to define filter_art" ;
@@ -1327,6 +1328,9 @@
p = av[0];
if (*p == '\0' || strcmp(p, "all") == 0) {
+ /* Check the syntax of the newsfeeds file before reloading. */
+ if ((error = CCcheckfile(NULL)) != NULL)
+ return error;
SITEflushall(false);
if (Mode == OMrunning)
InndHisClose();
@@ -1348,7 +1352,10 @@
p = "all";
}
else if (strcmp(p, "active") == 0 || strcmp(p, "newsfeeds") == 0) {
- SITEflushall(false);
+ /* Check the syntax of the newsfeeds file before reloading. */
+ if ((error = CCcheckfile(NULL)) != NULL)
+ return error;
+ SITEflushall(false);
ICDwrite();
ICDsetup(true);
}
--
Julien ÉLIE
« Mais écoutez ce qu'on vous dit, au lieu de taper comme un
sourd ! » (Astérix)
Re: Mistake in newsfeeds caused INN to crash
Author: Julien ÉLIE
Date: Fri, 16 Mar 2012 22:23
Date: Fri, 16 Mar 2012 22:23
37 lines
2183 bytes
2183 bytes
Hi Dieter,
>> Anyway, when I did 'ctlinnd reload newsfeeds' the server crashed.
>
> This is why one should do a "ctlinnd checkfile" first.
This command does not catch everything.
See this example:
news.example.com\
:localhierarchy*,control*\
:Tm:::::::innfeed!
% inncheck
/home/news/etc/newsfeeds:30: undefined multiplex `:::::::innfeed!'
% ctlinnd reload newsfeeds ''
Ok
"inncheck" is a useful command to run, especially its new improved 2.5.3
version by Florian Schlichting.
> I agree that badly formed data should not crash the program.
I also agree.
--
Julien ÉLIE
« Mais écoutez ce qu'on vous dit, au lieu de taper comme un
sourd ! » (Astérix)
Re: Mistake in newsfeeds caused INN to crash
Author: activeinvesting
Date: Sat, 31 Mar 2012 16:55
Date: Sat, 31 Mar 2012 16:55
158 lines
8460 bytes
8460 bytes
On Tuesday, March 13, 2012 12:29:25 PM UTC-7, Tim Fardell wrote: > Good evening all. > > I just added a new feed to 'newsfeeds' but I made an error in the > config. What I accidentally configured was: > > news.example.com:\ > :localhierarchy*,control*:\ > :Tm:innfeed! > > Spot the obvious mistake :-) > > Anyway, when I did 'ctlinnd reload newsfeeds' the server crashed. > > Ctlinnd seemed to be taking ages, so I broke out of it, and found that > the server was no longer running, and I had to manually restart it > (after correcting the mistake in newsfeeds). > > Can anyone explain why this apparently small mistake had such drastic > consequences? > > Thanks! > -- > Please remove all-your-clothes before replying. Hi, Dear Friend, The $6 Money Making Method You could make thousands of dollars within weeks With only an investment of $6.00 >>>HERE IS HOW IT WORKS<<< The system works, if you will just try it! But you must follow the directions EXACTLY and in less than three months you could receive up to $800,000.00 Here are a few reasons a person might give for not trying the program: Some people think that they can never make a lot of money with anything this simple. Some are afraid they will be ridiculed for trying. Some dream of large sums of money, but do nothing to actually achieve it. Some are just plain lazy. Some are afraid of losing this small investing. They think this program is design to beat them out of a dollar. For a simple investment of a couple of hours and just $6, it is 100% worth it, here's how! - Revealed to you in step-by-step detail. Make Money with your Paypal account as shown on Oprah! SUGGESTION: Read this entire message carefully! It's legal, and your investment is only $6.00. This program remains successful because of the honesty and integrity of the participants. Please continue its success by carefully adhering to the instructions. Here are the 3 easy steps to success: REQUIREMENTS: You must have a verified PayPal account. If you do not have an account, take a few minutes to join FREE: www.paypal.com. It is 100% secure and is used by millions of people worldwide. When creating your Paypal account make sure you use the same Email address as your user name in the list below so people can send money to your account. STEP 1 Once you have a Paypal account running; Immediately use Paypal to pay $1 to EACH of the 6 Email Addresses provided because you pay people with an email address in Paypal. FOLLOW THESE EASY STEPS: 1. Log in to PayPal. Go to SEND MONEY tab. 2. Type in Recipients name: (Email address). Category: "SERVICE". AMOUNT: $ 1.00 (USD) 3. Next Screen: Scroll down and enter the following: Subject: “EMAIL LIST", and on the message field enter “PLEASE ADD ME TO YOUR E-MAIL LIST” IMPORTANT: YOU HAVE TO ADD THE ABOVE MESSAGE “THAT’S WHAT MAKES THIS SYSTEM LEGAL!!!! 4. CHECK PAYMENT DETAIL - Select "NO SHIPPING ADDRESS REQUIRED" 5. Send Money. Send $1.00 to EACH of these Email addresses: 1.) djcris5@yahoo.com 2.) sutherngurlbme@yahoo.com 3.) inspuration45@yahoo.com 4.) superx@frontier.com 5.) shirleyong8107@yahoo.com 6.) activeinvesting@aol.com STEP 2: Now, AFTER paying $1.00 to each of the email addresses above, take the #1 Email Address off the list, move the other Email Addresses up (6 becomes 5, 5 becomes 4, etc.) and add Your Email Address as number 6 on the list. STEP 3: Keep this message as close to the original as possible and email your message to as many people you can. Remember, the more you post and email the more money you make! Post your amended article to at least 200 newsgroups or message boards. Keep in mind that there are tens of thousands of groups online! All you need is 200, but remember the more you post the more money you make - as well as everyone else on the list! I've began to see money roll in before I even hit 100 posts, but try to hit around 200 to allow maximum exposure. Use Netscape, Internet Explorer, Firefox, Safari, or whatever your internet browser is to search for various news groups, on-line forums, message boards, bulletin boards, chat sites, discussions, discussion groups, on-line communities, etc. For example? Log on to any search engine like yahoo.com or google.com and type in a subject like 'MILLIONAIRE MESSAGE BOARD', 'MONEY MAKING DISCUSSIONS', 'MONEY MAKING FORUMS', or 'BUSINESS MESSAGE BOARD', etc. You will find thousands and thousands of message boards. Click them one by one and you will find the option to post a new message. Fill in the subject which will be the header that everyone sees as they scroll through the list of postings in a particular group, and post the article with the NEW list of email addresses included. THAT'S IT!!! All you have to do is jump to different newsgroups and post away. After you get the hang of it, it will take about 30 seconds for each newsgroup. Use Netscape or Internet Explorer and try searching for various newsgroups (on-line forums, message boards, chat sites, discussions.) Log on any search engine like yahoo.com, google.com, altavista.com, excite.com, etc., then search with the subject "millionaire message board; or; money making message board; or; employment message board; or making discussions; or ''money making forum; or; business message board; etc. You will find thousands & thousands of message boards. Click on them one by one and you will find the option 'post a new message'. Then Post this article as a 'new message' by highlighting the text of this letter and selecting copy then paste from the edit menu. Fill in the Subject, this will be the header that everyone sees as they scroll through the list of postings in a particular group, click the post message button. You're done with your first one! It only takes about 60 seconds to complete postings on message boards after you catch on. remember. is only 6.00 thats nothing.to make this kind of money. REMEMBER, THE MORE NEWSGROUPS YOU POST IN, THE MORE MONEY YOU WILL MAKE!! GOOD LUCK!!!! God Bless "Pay It Forward" You can expect the following: When you send 200, 15 people will send you $1.00 each $ 15.00 Those 15 people send 200, and 225 will send you $1.00 each $225.00 Those 225 people send 200, and 3,375 other send you $3,375.00 Those 3,375 people send 200, and 50,625 people send you $50,625.00 Those 50,625 people send 200, and 759,375 people send you $759,375.00
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