Thread View: news.software.nntp
64 messages
64 total messages
Page 1 of 2
Started by Russ Allbery
Tue, 10 Mar 2009 04:56
Page 1 of 2 • 64 total messages
[ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Tue, 10 Mar 2009 04:56
Date: Tue, 10 Mar 2009 04:56
234 lines
13057 bytes
13057 bytes
Internet Systems Consortium is pleased to announce that a release
candidate version of a new major release of INN is available at:
ftp://ftp.isc.org/isc/inn/testing/inn-2.5.0rc1.tar.gz
The MD5 checksum of this release candidate is:
a86f112f207a0e2158520e1e64102929
A PGP signature is available in the same directory. Due to the extensive
changes between INN 2.4 and INN 2.5, no patch is available.
INN 2.5.0 is almost entirely compatible with INN 2.4, and most INN 2.4
users will be able to upgrade with a simple "make update". A few checks
explained in the upgrade changes below should also be made.
All of the applicable bug fixes from the INN 2.4 STABLE series, including
the upcoming 2.4.6 release, are also included in INN 2.5.
Many thanks to Julien ÉLIE for preparing this release.
Upgrading from 2.4 to 2.5
The following upgrade process is still under construction and not
complete. There may be additional things to watch out for not listed
here; if you run across any, please let <inn-workers@lists.isc.org> know
about them.
The following changes require your full attention because a manual
intervention may be needed:
* In order to process control messages, controlchan now needs the
"MIME::Parser" module. Packages are available from most
distributions, or you can install the module directly from CPAN
("MIME-tools" in modules/by-module/MIME/, for instance on
ftp.perl.org).
Perl 5.8.0 or later is recommended for INN. If you are using an
earlier version, you will also need the "Encode" module for correct
processing of control messages. (It is included with Perl itself in
5.8.0 and later.)
* You should use the new control.ctl.local file shipped with INN in
*pathetc* and, at the same time, update your control.ctl and
moderators files. Also make sure that your active.times, distrib.pats
and newsgroups files are properly encoded in UTF-8, as it is strongly
recommended by RFC 3977.
* The innreport configuration file has slightly changed. The new
innreport.conf file shipped with INN should be used and your possible
changes backported to this new version.
* The $SPOOLBASE variable has been renamed to $SPOOLDIR in innshellvars
in order to be more consistent. It impacts shell scripts only. If
you import innshellvars and use that variable in your scripts, you
will have to rename it.
* gpgverify is no longer included in INN, pgpverify now has better
support for GnuPG and should be used instead.
* The auth_smb authenticator program to check passwords with an SMB
authentication is no longer included in INN. It was a stripped-down
version of pam_smbpass, wasn't maintained, and likely had security
problems. To authenticate to an SMB server such as Samba, use PAM and
ckpasswd's PAM support instead.
The parameters used by nnrpd to provide TLS support are now *tlscafile*,
*tlscapath*, *tlscertfile* and *tlskeyfile* in inn.conf. The sasl.conf
file used for that in previous versions of INN is obsolete. innupgrade
takes care of the change during "make update".
The *nntpactsync* parameter has been renamed to *incominglogfrequency*
in inn.conf; innupgrade handles this renaming during the update.
In newsfeeds, innfeed should be run directly rather than through
startinnfeed. innupgrade will attempt to take care of this modification
during "make update".
When starting innd by hand, innd can just be run directly rather than
using inndstart. If you get error messages about resetting the file
descriptor limits, you may need to increase the file descriptor limits.
See the sample init script in contrib for an example of how to do this.
If you are upgrading from a version prior to INN 2.4, see also
"Upgrading from 2.3 to 2.4".
Major changes from 2.4 to 2.5
* Ken Murchison has contributed SASL authentication support for nnrpd,
implementing the AUTHINFO SASL section of RFC 4643. If the
--with-sasl option is given to "configure", nnrpd will be able to
authenticate clients via secure SASL mechanisms.
* Julien Elie has implemented in nnrpd the new version of the NNTP
protocol described in RFC 3977, RFC 4642 and RFC 4643. Consequently,
nnrpd now recognizes the CAPABILITIES command, the HDR and LIST
HEADERS commands, the second optional argument to specify a range of
articles to LISTGROUP, the OVER command, as well as the ":bytes" and
":lines" metadata items.
* Heath Kehoe has added the ability to compress overview data before it
is stored in ovdb. It significantly improves the performance of this
storage method and reduces the time spent by expireover. See the new
--with-zlib option to "configure" and the ovdb(5) man page.
* Alexander Bartolich has greatly improved innreport and especially its
XHTML output (a XSL transformation is also provided, if needed, in
innreport-filter.xslt, in the contrib directory).
* inndstart and startinnfeed are no longer part of INN and are no longer
used. Instead, a separate setuid root helper program written by Russ
Allbery is used to bind to the news ports (and does only that), and is
run by innd and nnrpd when necessary. This means that INN may not be
able to increase file descriptor limits for itself the way that it
could before. If you get error messages about resetting the file
descriptor limits, you may need to increase the file descriptor limits
as root before running rc.news as the news user. See the sample init
script in contrib for an example of how to do this. More information
on file descriptor limits can be found in INSTALL.
* INN's IPv6 support was largely rewritten by Russ Allbery. IPv4 and
IPv6 are now handled through the same code wherever possible, the new
IPv6-aware APIs are used everywhere possible, and replacement
functions are provided for systems that don't have them yet. The
network code is now much more centralized, eliminating lots of
duplicate code and adding better IPv6 support to some utilities.
* INN now uses autoconf 2.59 or later for configuration. As a result,
some "configure" options have changed slightly and more of the
standard --*dir options should be supported in lieu of the old
INN-specific options. See "configure --help" for the available
options.
* Thanks to Kirill Berezin, the buffindexed overview method now supports
buffers larger than 2 GB. It is not necessary to compile INN with
large file support to use such large buffers with buffindexed.
Buffindexed is now also more robust with mmaped files and uses more
optimized data placement.
* tinyleaf, a miniature IHAVE-only leaf server written by Russ Allbery,
is now included. See the tinyleaf(8) man page for more information.
* controlchan recognizes the new application/news-groupinfo entity
described in USEPRO and can handle character set conversions of
newsgroup descriptions. The "MIME::Parser" and "Encode" modules are
used. Processing control messages has been greatly improved,
especially checkgroups: the active and newsgroups files are now
properly updated when they are processed.
A new control.ctl.local file has also been added in *pathetc*. Rules
set in that file override rules in control.ctl, allowing
administrators to specify local rules for some control messages
without modifying the control.ctl configuration file that comes with
INN. It also specifies encodings to use for the newsgroups file. By
default, UTF-8 will be used for newsgroup descriptions, as strongly
recommended by RFC 3977.
* The Perl and Python *filter_mode* hooks are now called when innd is
shutting down via either "ctlinnd shutdown" or "ctlinnd xexec" with a
new mode value of "shutdown". This will allow the Perl hooks to save
filter data across innd restarts without requiring that the news
administrator throttle the server first. (Python already had a
separate close hook that is also called.)
* The legacy innshellvars.pl script has been replaced with a real INN
Perl module "INN::Config" for Perl programs. The location of Perl
modules can be set with the --with-libperl-dir option to "configure".
All Perl scripts shipped with INN have been converted to use that
module. You may want to consider using "INN::Config" in your Perl
scripts, though innshellvars.pl is still provided with INN.
* Support for embedded Tcl filters in innd has been removed. It hasn't
worked for some time and causes innd crashes if compiled in (even if
not used). If someone wants to step forward and maintain it, we
recommend starting from scratch and emulating the Perl and Python
filters.
* If *strippath* is set in readers.conf, the whole user-supplied Path:
header will now be stripped. Previously, the final component of the
user-supplied Path: would still be retained.
* news2mail can now set the envelope-from address of the mails it sends.
A third optional part in news2mail.cf entries has been added by
D. Stussy to achieve that.
* The -g option to nnrpd is no longer supported. If you are verifying
passwords against the system password database, see the ckpasswd(8)
man page, and in particular the -s option. (A much better idea would
be to just use PAM, which ckpasswd supports.)
* Fixed a bug in "ctlinnd renumber" which was resetting the low and high
water marks of empty newsgroups in the active file. This command now
makes the low water mark one more than the real high water mark. The
answers to LIST ACTIVE, GROUP and LISTGROUP have also been fixed to do
that.
* Support for bzip2-compressed batches (with bunbatch) has been added.
* Support for *runasuser* and *runasgroup* parameters in inn.conf allows
to set the news user and the news group under which the news server
runs. Thanks to Ivan Shmakov for this feature.
New other options have been added to configuration files: *ignore* in
incoming.conf, *logstats* and *nnrpdflags* in inn.conf, and
*log-time-format* in innfeed.conf.
The --with-http-dir option has also been added to "configure" to set
*pathhttp* in inn.conf.
* Support for Berkeley DB versions prior to 4.3 has been dropped. You
will have to use at least Berkeley DB 4.4; the recommended version is
4.7.
* INN now builds entirely free of warnings from GCC with fairly
aggressive warning options enabled. This involved lots of cleanup of
const strings, signed versus unsigned type handling, correcting printf
formats, and other changes that fixed obscure bugs and made INN's code
more robust. Russ Allbery has also done considerable cleanup work on
some of INN's internals, simplifying, refactoring, and removing
duplicate code.
* INN's test suite is now much more comprehensive and tests some
high-level functions as well as more of the portability and utility
function layer.
* A lot of work has been done on documentation: improvements of existing
documents, new documentation, and proof-reading. Sample configuration
files are also more detailed.
INN is discussed on <inn-workers@lists.isc.org>. Please send any bug
reports or patches to that list.
Russ Allbery
rra@isc.org
Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Tue, 28 Apr 2009 19:48
Date: Tue, 28 Apr 2009 19:48
58 lines
3746 bytes
3746 bytes
Hi,
> Internet Systems Consortium is pleased to announce that a release
> candidate version of a new major release of INN is available at:
>
> ftp://ftp.isc.org/isc/inn/testing/inn-2.5.0rc1.tar.gz
It is now:
ftp://ftp.isc.org/isc/inn/testing/inn-2.5.0rc2.tar.gz
A second release candidate for INN 2.5.0 has just been released.
Probably the last release candidate before INN 2.5.0.
So if you find out any problem, please report them now. Thanks!
Changes:
** Full changes since INN 2.4.6:
http://www.eyrie.org/~eagle/software/inn/docs/news.html
In case you update from INN 2.4.x, you should look at the above link.
Since INN 2.5.0rc1, we added:
* Checkgroups control messages are now differently handled by
controlchan: all matching lines in control.ctl will be used for a
given checkgroups and a doit action will really be executed (adding,
removing and changing the status of newsgroups). You should make sure
that your local configuration does not rely on the previous behaviour
of only mailing changes, without actually performing them.
* The overview.fmt file is no longer used by INN. Two new parameters
have been added to inn.conf: *extraoverviewadvertised* and
*extraoverviewhidden*. Although innupgrade takes care of the change
during "make update", you should make sure that your overview database
is consistent with all the fields declared in overview.fmt because
they will all be advertised, and "Xref:full" forced as the eighth
overview field. See the inn.conf(5) man page for more information
about these parameters.
* New control.ctl.local sample file.
* A few bug fixes.
Have a nice day,
--
Julien ÉLIE
<< As-tu jamais fait un rêve, Neo, dont tu avais l'impression
qu'il était réel ? Qu'est-ce qui se passerait si tu ne te réveillais jamais
de ce rêve, Neo ? Comment reconnaîtrais-tu le monde réel
du monde imaginaire ? >> (Morpheus, _Matrix_)
Re: INN 2.5.0 release candidate available
Author: D. Stussy
Date: Fri, 01 May 2009 06:44
Date: Fri, 01 May 2009 06:44
65 lines
3831 bytes
3831 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:75mc7qF195jsaU1@mid.individual.net... > > Internet Systems Consortium is pleased to announce that a release > > candidate version of a new major release of INN is available at: > > ftp://ftp.isc.org/isc/inn/testing/inn-2.5.0rc2.tar.gz > > A second release candidate for INN 2.5.0 has just been released. I didn't see any major problems. I've successfully compiled it. However, while reviewing the controlling data files in the "samples" directory, I noted some things (documentation issues): incoming.conf: Line 95 - definition of "hostname". It probably should be changed to say "ip-address literal" instead of "dotted quad ip-address" as IPv6 address literals are valid too. control.ctl.local: RE: The "encoding" entries for the global hierarchies (not "localencoding") - should those be in this file, or moved to the main control.ctl file? I think that they should be moved as descriptions are usually globally the same across all participating servers for multi-server-carried groups. localgroups: Not totally clear, but I assume that it is formatted just as file "<pathdb>/newsgroups". newsfeeds(.in): 1) Under the "ME" feed entry - exclude: I have noted that if one defines patterns in "<pathetc>/distrib.pats" for various distributions, distributions from LOCAL postings received via the nnrpd program that affirmatively match the exclude string are also rejected. The way it is currently written implies that it only rejects articles with distributions matching the exclude string from external feeds. One usually doesn't think of locally originated postings via nnrpd as "incoming feeds." I think a rewrite is in order. For the first example "ME" entry, say "..., reject all incoming articles (including locally posted articles) with a distribution of ...." - parenthetical phrase added. Perhaps the warning should be duplicated in distrib.pats. 2) For funnel programs, clarify whether the use of the "A" flags on the funnel targets are effective or not. For example, given: innfeed!:!*:Af,Tc,Wnm*:<news-bin>/innfeed Will that reject all messages funnelled to innfeed that were rejected by the filter, or does it do nothing by itself (meaning that each individual funnel entry must specify the flag if it's to be operative)? Moderators: I have noted the following additional entries in my server's copy of the file that are missing from the version in the tar archive: de.*:%s@moderators.dana.de france.*:%s@usenet-france.news.eu.org grisbi.*:%s@listes.grisbi.org hr.*:%s@moderators.iskon.hr muenster.*:%s@news.muenster.org Maybe I have stale entries? 5 comments in total.
Re: INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Fri, 01 May 2009 08:49
Date: Fri, 01 May 2009 08:49
99 lines
5281 bytes
5281 bytes
Hi D. Stussy",
>> Internet Systems Consortium is pleased to announce that a release
>> candidate version of a new major release of INN is available at:
>>
>> ftp://ftp.isc.org/isc/inn/testing/inn-2.5.0rc2.tar.gz
>>
>> A second release candidate for INN 2.5.0 has just been released.
>
> incoming.conf:
> Line 95 - definition of "hostname". It probably should be changed to say
> "ip-address literal" instead of "dotted quad ip-address" as IPv6 address
> literals are valid too.
OK, fixed.
And in the innd man page, I added a crossreference between -6 and -I.
> control.ctl.local:
> RE: The "encoding" entries for the global hierarchies (not
> "localencoding") - should those be in this file, or moved to the main
> control.ctl file? I think that they should be moved as descriptions are
> usually globally the same across all participating servers for
> multi-server-carried groups.
Yes, they should be moved into control.ctl. But this file currently
does not have encoding entries.
Maybe I will manually edit the control.ctl shipped with INN to merge
these encodings before the final release.
> localgroups:
> Not totally clear, but I assume that it is formatted just as file
> "<pathdb>/newsgroups".
## See the docheckgroups man page for more information.
http://www.eyrie.org/~eagle/software/inn/docs/docheckgroups.html
docheckgroups will only check the presence of newsgroups which match
include-pattern (an egrep expression like ^comp\..*$ for newsgroups
starting with comp.) and which do not match exclude-pattern (also an
egrep expression) except for newsgroups mentioned in the pathetc/localgroups
file. This file is also formatted like the newsgroups(5) file and should
contain local newsgroups which would otherwise be mentioned for removal.
> newsfeeds(.in):
> 1) Under the "ME" feed entry - exclude: I have noted that if one defines
> patterns in "<pathetc>/distrib.pats" for various distributions,
> distributions from LOCAL postings received via the nnrpd program that
> affirmatively match the exclude string are also rejected. The way it is
> currently written implies that it only rejects articles with distributions
> matching the exclude string from external feeds. One usually doesn't think
> of locally originated postings via nnrpd as "incoming feeds." I think a
> rewrite is in order. For the first example "ME" entry, say "..., reject
> all incoming articles (including locally posted articles) with a
> distribution of ...." - parenthetical phrase added. Perhaps the warning
> should be duplicated in distrib.pats.
OK, fixed.
> 2) For funnel programs, clarify whether the use of the "A" flags on the
> funnel targets are effective or not. For example, given:
>
> innfeed!:!*:Af,Tc,Wnm*:<news-bin>/innfeed
>
> Will that reject all messages funnelled to innfeed that were rejected by
> the filter, or does it do nothing by itself (meaning that each individual
> funnel entry must specify the flag if it's to be operative)?
I assume you already have the answer, don't you? :)
"A" flags do not seem to be effective at the level of a funnel.
> Moderators:
> I have noted the following additional entries in my server's copy of the
> file that are missing from the version in the tar archive:
> de.*:%s@moderators.dana.de
> france.*:%s@usenet-france.news.eu.org
> grisbi.*:%s@listes.grisbi.org
> hr.*:%s@moderators.iskon.hr
> muenster.*:%s@news.muenster.org
I thought we already spoke about that in news.admin.hierarchies last year.
We ended up adding aioe.*, perl.* and si.* information for moderated newsgroups
because these entries are correctly maintained on moderators.isc.org.
Thanks again for your comments on documentation.
--
Julien ÉLIE
« -- Nous parlerons quand l'interprète dormira.
[Bong !]
-- Il dort. On peut parler. » (Astérix)
Re: INN 2.5.0 release candidate available
Author: D. Stussy
Date: Fri, 01 May 2009 19:54
Date: Fri, 01 May 2009 19:54
99 lines
5177 bytes
5177 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gted7j$uot$1@news.trigofacile.com... > >> ... > >> A second release candidate for INN 2.5.0 has just been released. > > ... > > control.ctl.local: > > RE: The "encoding" entries for the global hierarchies (not > > "localencoding") - should those be in this file, or moved to the main > > control.ctl file? I think that they should be moved as descriptions are > > usually globally the same across all participating servers for > > multi-server-carried groups. > > Yes, they should be moved into control.ctl. But this file currently > does not have encoding entries. > Maybe I will manually edit the control.ctl shipped with INN to merge > these encodings before the final release. Or Mr. Allbery can bump up the version of his control file generator and account for this? Is there a [future] plan to automatically distribute updates to "control.ctl" (now that we have a local override file) via NNTP on a regular (monthly/quarterly) basis? Although present, perhaps combined entries for certain things are in order: newgroup:group-admin@isc.org:alt.*|bin.*|free.*|oesterreich.*:drop newgroup:tale@*uu.net:alt.*|bin.*|free.*|oesterreich.*:drop Yes, I have implied a "bin.*" hierarchy! (Same rules as the unregulated hierarchies above, but discussion of this is elsewhere). ;-) > > localgroups: > > Not totally clear, but I assume that it is formatted just as file > > "<pathdb>/newsgroups". > > ## See the docheckgroups man page for more information. > > http://www.eyrie.org/~eagle/software/inn/docs/docheckgroups.html > > docheckgroups will only check the presence of newsgroups which match > include-pattern (an egrep expression like ^comp\..*$ for newsgroups > starting with comp.) and which do not match exclude-pattern (also an > egrep expression) except for newsgroups mentioned in the pathetc/localgroups > file. This file is also formatted like the newsgroups(5) file and should > contain local newsgroups which would otherwise be mentioned for removal. Noted, but the "localgroups" file itself should probably say something too. > > 2) For funnel programs, clarify whether the use of the "A" flags on the > > funnel targets are effective or not. For example, given: > > > > innfeed!:!*:Af,Tc,Wnm*:<news-bin>/innfeed > > > > Will that reject all messages funnelled to innfeed that were rejected by > > the filter, or does it do nothing by itself (meaning that each individual > > funnel entry must specify the flag if it's to be operative)? > > I assume you already have the answer, don't you? :) > "A" flags do not seem to be effective at the level of a funnel. Actually, I never checked since I reject filtered messages as they come in (thus I don't store them into my spool). The following flags could be useful at the funnel-target level: CcdefOo. "p" is (most likely) NOT useful (anyone specify an exclude list on funnel-targets?). Another example where it would be useful: mailgate!:!*:Ac,Tc,Wn*:<news-bin>/news2mail Blocks control messages from the news-to-mail gateway. Otherwise, every one of its funnel entries will have to list "Ac" among its flags. If one is gating alot of lists, this can get rather long. > > Moderators: > > ... > > de.*:%s@moderators.dana.de > > france.*:%s@usenet-france.news.eu.org > > grisbi.*:%s@listes.grisbi.org > > hr.*:%s@moderators.iskon.hr > > muenster.*:%s@news.muenster.org > > I thought we already spoke about that in news.admin.hierarchies last year. > We ended up adding aioe.*, perl.* and si.* information for moderated newsgroups > because these entries are correctly maintained on moderators.isc.org. Yes, we did. However, as not all hierarchies that I have made it into the file, I'd though I should list the 5 I have that aren't there -- to at least alert you that they are missing. Whether they should be there is a different question. ;-)
Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Sun, 03 May 2009 03:07
Date: Sun, 03 May 2009 03:07
16 lines
1585 bytes
1585 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:75mc7qF195jsaU1@mid.individual.net...
> A second release candidate for INN 2.5.0 has just been released.
<newsbin>/mailpost script (about line 474):
sub mailArtAndDie {
my ($msg) = @_ ;
+ syslog "err", "$msg";
print STDERR $msg,"\n" if -t STDERR ;
Let's log the error to the syslog in case the e-mail version of the error
isn't sent.
Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Sun, 03 May 2009 22:04
Date: Sun, 03 May 2009 22:04
23 lines
1882 bytes
1882 bytes
Hi D. Stussy;
> sub mailArtAndDie {
> my ($msg) = @_ ;
>
> + syslog "err", "$msg";
> print STDERR $msg,"\n" if -t STDERR ;
>
> Let's log the error to the syslog in case the e-mail version of the error
> isn't sent.
I have just committed:
syslog("err", "$msg\n") if $debugging && $use_syslog;
Thanks,
--
Julien ÉLIE
« Un ami fidèle qui parle très bien votre langue et toutes
les langues vivantes : le latin, le grec, le celte, etc. » (Astérix)
Re: INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Sun, 03 May 2009 22:14
Date: Sun, 03 May 2009 22:14
32 lines
2420 bytes
2420 bytes
Hi D. Stussy, > Is there a [future] plan to automatically distribute updates to > "control.ctl" (now that we have a local override file) via NNTP on a > regular (monthly/quarterly) basis? Note that only INN has this local override file. And the quickest way to update control.ctl, if you want to, is to "wget" it out of cron :) >>> localgroups: >>> Not totally clear, but I assume that it is formatted just as file >>> "<pathdb>/newsgroups". > > Noted, but the "localgroups" file itself should probably say something too. Done. > Yes, we did. However, as not all hierarchies that I have made it into the > file, I'd though I should list the 5 I have that aren't there -- to at > least alert you that they are missing. Whether they should be there is a > different question. ;-) :) -- Julien ÉLIE « Mais pourquoi courent-ils si vite ? Pour gagner du temps ! Comme le temps, c'est de l'argent... plus ils courent vite, plus ils en gagnent. » (Raymond Devos)
Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Sun, 03 May 2009 23:20
Date: Sun, 03 May 2009 23:20
32 lines
2314 bytes
2314 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gtl4ia$656$1@news.trigofacile.com...
> > sub mailArtAndDie {
> > my ($msg) = @_ ;
> >
> > + syslog "err", "$msg";
> > print STDERR $msg,"\n" if -t STDERR ;
> >
> > Let's log the error to the syslog in case the e-mail version of the
error
> > isn't sent.
>
> I have just committed:
>
> syslog("err", "$msg\n") if $debugging && $use_syslog;
>
> Thanks,
OK. Close enough - although I'd prefer "if (debugging OR use_syslog)". I
think this is the one place that should get into the syslog regardless of
the state of the debugging flag - as this is the reason why the script is
aborting, not the logging of an intermediate step along the way (as the
other calls to syslog are). I feel that the syslog should log the outcome:
Delivery into the newsspool (currently, no message) or aborting (the code
above).
syslog("err", "$msg\n") if $debugging || $use_syslog;
Lastly, I wasn't certain if the newline was needed for syslog(). Other
calls don't have it.
Re: Suggestion for mailpost
Author: Julien ÉLIE
Date: Mon, 04 May 2009 06:30
Date: Mon, 04 May 2009 06:30
27 lines
2212 bytes
2212 bytes
Hi D. Stussy,
>> I have just committed:
>>
>> syslog("err", "$msg\n") if $debugging && $use_syslog;
>>
>> Thanks,
>
> OK. Close enough - although I'd prefer "if (debugging OR use_syslog)". I
> think this is the one place that should get into the syslog regardless of
> the state of the debugging flag
Then it is "if $use_syslog" only :)
> Lastly, I wasn't certain if the newline was needed for syslog(). Other
> calls don't have it.
4 have it; 2 do not have it (at least in INN 2.4.6).
I think we should remove "\n", as you say.
--
Julien ÉLIE
« Mais pourquoi courent-ils si vite ? Pour gagner du temps ! Comme le temps,
c'est de l'argent... plus ils courent vite, plus ils en gagnent. » (Raymond Devos)
Re: Suggestion for mailpost
Author: D. Stussy
Date: Mon, 04 May 2009 06:48
Date: Mon, 04 May 2009 06:48
14 lines
1619 bytes
1619 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gtm26e$29u$1@news.trigofacile.com... > ... > Then it is "if $use_syslog" only :) > > > Lastly, I wasn't certain if the newline was needed for syslog(). Other > > calls don't have it. > > 4 have it; 2 do not have it (at least in INN 2.4.6). > I think we should remove "\n", as you say. I'm happy with that.
Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Mon, 04 May 2009 07:35
Date: Mon, 04 May 2009 07:35
6 lines
1477 bytes
1477 bytes
Although I like the alternate-line shading, one difference in appearance of generated reports is that the tables are left-justified instead of centered. I think they looked better centered. Maybe we could have an alternate .css file supplied with the installation (that centers tables)?
Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Mon, 04 May 2009 07:35
Date: Mon, 04 May 2009 07:35
6 lines
1599 bytes
1599 bytes
Although I like the alternate-line shading, one difference in appearance of generated reports is that the tables are left-justified instead of centered. I think they looked better centered. Maybe we could have an alternate .css file supplied with the installation (that centers tables)?
Re: Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Alexander Bartolich
Date: Mon, 04 May 2009 13:48
Date: Mon, 04 May 2009 13:48
10 lines
1808 bytes
1808 bytes
D. Stussy schrieb: > Although I like the alternate-line shading, one difference in appearance of > generated reports is that the tables are left-justified instead of > centered. I think they looked better centered. Maybe we could have an > alternate .css file supplied with the installation (that centers tables)? The tables *are* centered. IE 6 just does not display them correctly. -- seq 100 | sed 's/.*/Romani Ite Domum./'
Re: Suggestion for mailpost
Author: Russ Allbery
Date: Mon, 04 May 2009 18:24
Date: Mon, 04 May 2009 18:24
13 lines
1674 bytes
1674 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> 4 have it; 2 do not have it (at least in INN 2.4.6).
> I think we should remove "\n", as you say.
We should remove it. syslog will just turn it into an unprintable
character.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Mon, 04 May 2009 18:25
Date: Mon, 04 May 2009 18:25
19 lines
1912 bytes
1912 bytes
Alexander Bartolich <alexander.bartolich@gmx.at> writes:
> D. Stussy schrieb:
>> Although I like the alternate-line shading, one difference in
>> appearance of generated reports is that the tables are left-justified
>> instead of centered. I think they looked better centered. Maybe we
>> could have an alternate .css file supplied with the installation
>> (that centers tables)?
> The tables *are* centered. IE 6 just does not display them correctly.
IE6 is pretty spectacularly broken in general. It's very difficult to
support with any serious use of CSS.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Suggestion for mailpost
Author: John F. Morse
Date: Tue, 05 May 2009 00:08
Date: Tue, 05 May 2009 00:08
29 lines
2279 bytes
2279 bytes
Russ Allbery wrote: > Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes: > > >> 4 have it; 2 do not have it (at least in INN 2.4.6). >> I think we should remove "\n", as you say. >> > > We should remove it. syslog will just turn it into an unprintable > character. > Since you guys are discussing syslog, perhaps you can help me with a syslog problem I have been diagnosing for the past two weeks? I don't know if it is associated with INN or not. None of my various tests have proven anything. I'll sum this up in a new thread later tonight and see if there might be someone with a similar problem -- and a solution. -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Suggestion for mailpost
Author: Russ Allbery
Date: Tue, 05 May 2009 00:18
Date: Tue, 05 May 2009 00:18
16 lines
1857 bytes
1857 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:
> Since you guys are discussing syslog, perhaps you can help me with a
> syslog problem I have been diagnosing for the past two weeks?
>
> I don't know if it is associated with INN or not. None of my various
> tests have proven anything.
I assume you've already followed the instructions in INSTALL for how to
set up syslog?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Tue, 05 May 2009 00:47
Date: Tue, 05 May 2009 00:47
23 lines
2245 bytes
2245 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87r5z47mjp.fsf@windlord.stanford.edu... > Alexander Bartolich <alexander.bartolich@gmx.at> writes: > > D. Stussy schrieb: > >> Although I like the alternate-line shading, one difference in > >> appearance of generated reports is that the tables are left-justified > >> instead of centered. I think they looked better centered. Maybe we > >> could have an alternate .css file supplied with the installation > >> (that centers tables)? > > > The tables *are* centered. IE 6 just does not display them correctly. > > IE6 is pretty spectacularly broken in general. It's very difficult to > support with any serious use of CSS. Any thought of throwing in an "align=center" into the <table ...> definitions, or an all-encompassing <center> ... </center> directive around the majority of the <body>? IE6 makes a good test platform: When IE6 can do it correctly, be assured that others can too. ;-)
Re: Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Tue, 05 May 2009 01:24
Date: Tue, 05 May 2009 01:24
13 lines
1645 bytes
1645 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> IE6 makes a good test platform: When IE6 can do it correctly, be assured
> that others can too. ;-)
The stupid workarounds that you have to use for IE6 can break other
browsers.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Suggestion for mailpost
Author: John F. Morse
Date: Tue, 05 May 2009 08:22
Date: Tue, 05 May 2009 08:22
509 lines
18615 bytes
18615 bytes
Russ Allbery wrote:
> "John F. Morse" <xanadu.bbs@example.invalid> writes:
>
>
>> Since you guys are discussing syslog, perhaps you can help me with a
>> syslog problem I have been diagnosing for the past two weeks?
>>
>> I don't know if it is associated with INN or not. None of my various
>> tests have proven anything.
>>
>
> I assume you've already followed the instructions in INSTALL for how to
> set up syslog?
>
The DEB-APT did all the work (I did not compile). But I have compared
configs for any differences.
The syslog.conf is posted below. If you see something amiss, please holler.
BTW, the particulars and peculiarities are as follows:
Optima5 is the computer that is failing to restart syslog after nightly
rotation. It appears syslogd gets restarted, but nothing is logged.
Optima5 is the PC I'm experiencing this weird problem with. It is
running INN 2.4.4 fine, with tradspool and cnfs, and peering with
Optima7, the online server, which has INN 2.4.3 on Debian Sarge.
Optima5 is identical to Optima2, a test machine I used for comparison,
except Optima5 has a 40 GB hard drive (clipped to 32 GB), while Optima2
has a 4.3 GB hard drive. And Optima5 has INN 2.4.4 while Optima2 does
not yet have INN installed.
They both have Ubuntu 8.04 LTS Server Edition, and the only additional
added packages on both are openssh-server and ntp.
Both are current with updates and upgrades.
The syslog works fine on Optima2, including rotation. A tail of syslog
(tail -F -n 1000 /var/log/syslog) works fine, day after day. I get the
usual "...has been replaced; following end of new file" messages.
Again, Optima2 has no INN, and was used only to compare logging
configurations and options during this trouble.
The syslog on Optima5 will rotate, but then it never restarts at 0638
daily. Here is what the area looks like right now:
-rw-r----- 1 syslog adm 0 2009-05-04 06:38 syslog
-rw-r----- 1 root adm 187770 2009-05-05 00:45 syslog.0
-rw-r----- 1 root adm 9021 2009-05-03 13:15 syslog.1.gz
I can kill the syslogd by PID, then relaunch it, and it works until the
next morning.
I have tried chown syslog to root:adm (like it is on Optima7, the Sarge
box with older INN 2.4.3, which, BTW, is working fine), but in the
morning, I find it has reset back to syslog:adm as the owner and group,
and the filesize is zero as shown above. (Syslog.0 seems to be working
OK. Perhaps it is where INN's news.notice is getting logging data?)
This morning the INN news.notice kept on running (it rotated properly):
-rw-r--r-- 1 news news 14625 2009-05-05 02:52 news.notice
Right now I also see:
news@optima5:/var/log/news$ ps aux | grep syslogd
news 12734 0.0 0.2 2912 740 pts/4 S+ 02:32 0:00 grep
syslogd
root 25999 0.0 0.2 1672 588 ? Ss May02 0:03 syslogd
Syslogd hasn't made a entry or been restarted since May02, almost three
days ago.
A few days ago news.notice would stop displaying any new logging at the
same time the syslog failed to rotate and not restart. I presumed
because it had no new syslog data to log and display.
If you remember a couple of weeks ago, when this was a brand new system,
news.notice was not working, so I rebooted the system. Then news.notice
started displaying when tailed.
INN itself is working fine on Optima5, including log rotation, but only
this syslog dieing around 0638 every morning is keeping me from putting
this server into production service.
Last week I was tailing news.notice and syslog, so I stopped tailing
syslog to see if tailing news.notice might be a cause. Still syslog
wouldn't restart after logs were rotated.
I have issued (as user news):
ctlinnd throttle
rc.news stop
And then I let Optima5 run all night without INN running -- but syslogd
still failed to restart (this is with INN out of the picture -- not
running anyway). Kind of takes the blame off of INN.
I've compared all relevant configuration files between Optima5 and
Optima2, and even what is similar from Optima7, and can't find out what
is keeping syslogd from restarting and actually logging after the
logrotate runs.
Here's that syslog.conf, but I don't think there are any errors in it.
The only oddity between it and Optima2 is the hyphen in the news.notice
pathname (which Optima7 does have). That shouldn't affect syslogd from
logging other system data. The hyphen is in Optima7's syslog.conf, but
not in Optima5's.
john@optima5:/etc$ cat syslog.conf
# /etc/syslog.conf Configuration file for syslogd.
#
# For more information see syslog.conf(5)
# manpage.
#
# First some standard logfiles. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
#
# Logging for the mail system. Split it up so that
# it is easy to write scripts to parse these files.
#
mail.info -/var/log/mail.info
mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err
# Logging for INN news system
#
news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice -/var/log/news/news.notice
#
# Some `catch-all' logfiles.
#
*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
#
# Emergencies are sent to everybody logged in.
#
*.emerg *
#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
# news.=crit;news.=err;news.=notice;\
# *.=debug;*.=info;\
# *.=notice;*.=warn /dev/tty8
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
#
# $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# busy site..
#
daemon.*;mail.*;\
news.crit;news.err;news.notice;\
*.=debug;*.=info;\
*.=notice;*.=warn |/dev/xconsole
And (after killing syslogd PID) this might help:
john@optima5:/var/log$ sudo syslogd -d
Allocated parts table for 1024 file descriptors.
Starting.
Called init.
Called allocate_log, nlogs = -1.
cfline(auth,authpriv.* /var/log/auth.log)
symbolic name: * ==> 255
symbolic name: auth ==> 32
symbolic name: authpriv ==> 80
leading char in action: /
filename: /var/log/auth.log
Called allocate_log, nlogs = 0.
cfline(*.*;auth,authpriv.none -/var/log/syslog)
symbolic name: * ==> 255
symbolic name: none ==> 16
symbolic name: auth ==> 32
symbolic name: authpriv ==> 80
leading char in action: /
filename: /var/log/syslog
Called allocate_log, nlogs = 1.
cfline(daemon.* -/var/log/daemon.log)
symbolic name: * ==> 255
symbolic name: daemon ==> 24
leading char in action: /
filename: /var/log/daemon.log
Called allocate_log, nlogs = 2.
cfline(kern.* -/var/log/kern.log)
symbolic name: * ==> 255
symbolic name: kern ==> 0
leading char in action: /
filename: /var/log/kern.log
Called allocate_log, nlogs = 3.
cfline(lpr.* -/var/log/lpr.log)
symbolic name: * ==> 255
symbolic name: lpr ==> 48
leading char in action: /
filename: /var/log/lpr.log
Called allocate_log, nlogs = 4.
cfline(mail.* -/var/log/mail.log)
symbolic name: * ==> 255
symbolic name: mail ==> 16
leading char in action: /
filename: /var/log/mail.log
Called allocate_log, nlogs = 5.
cfline(user.* -/var/log/user.log)
symbolic name: * ==> 255
symbolic name: user ==> 8
leading char in action: /
filename: /var/log/user.log
Called allocate_log, nlogs = 6.
cfline(mail.info -/var/log/mail.info)
symbolic name: info ==> 6
symbolic name: mail ==> 16
leading char in action: /
filename: /var/log/mail.info
Called allocate_log, nlogs = 7.
cfline(mail.warn -/var/log/mail.warn)
symbolic name: warn ==> 4
symbolic name: mail ==> 16
leading char in action: /
filename: /var/log/mail.warn
Called allocate_log, nlogs = 8.
cfline(mail.err /var/log/mail.err)
symbolic name: err ==> 3
symbolic name: mail ==> 16
leading char in action: /
filename: /var/log/mail.err
Called allocate_log, nlogs = 9.
cfline(news.crit /var/log/news/news.crit)
symbolic name: crit ==> 2
symbolic name: news ==> 56
leading char in action: /
filename: /var/log/news/news.crit
Called allocate_log, nlogs = 10.
cfline(news.err /var/log/news/news.err)
symbolic name: err ==> 3
symbolic name: news ==> 56
leading char in action: /
filename: /var/log/news/news.err
Called allocate_log, nlogs = 11.
cfline(news.notice -/var/log/news/news.notice)
symbolic name: notice ==> 5
symbolic name: news ==> 56
leading char in action: /
filename: /var/log/news/news.notice
Called allocate_log, nlogs = 12.
cfline(*.=debug;auth,authpriv.none;news.none;mail.none -/var/log/debug)
symbolic name: debug ==> 7
symbolic name: none ==> 16
symbolic name: auth ==> 32
symbolic name: authpriv ==> 80
symbolic name: none ==> 16
symbolic name: news ==> 56
symbolic name: none ==> 16
symbolic name: mail ==> 16
leading char in action: /
filename: /var/log/debug
Called allocate_log, nlogs = 13.
cfline(*.=info;*.=notice;*.=warn;auth,authpriv.none;cron,daemon.none;mail,news.none
-/var/log/messages)
symbolic name: info ==> 6
symbolic name: notice ==> 5
symbolic name: warn ==> 4
symbolic name: none ==> 16
symbolic name: auth ==> 32
symbolic name: authpriv ==> 80
symbolic name: none ==> 16
symbolic name: cron ==> 72
symbolic name: daemon ==> 24
symbolic name: none ==> 16
symbolic name: mail ==> 16
symbolic name: news ==> 56
leading char in action: /
filename: /var/log/messages
Called allocate_log, nlogs = 14.
cfline(*.emerg *)
symbolic name: emerg ==> 0
leading char in action: *
write-all
Called allocate_log, nlogs = 15.
cfline(daemon.*;mail.*;news.crit;news.err;news.notice;*.=debug;*.=info;*.=notice;*.=warn
|/dev/xconsole)
symbolic name: * ==> 255
symbolic name: daemon ==> 24
symbolic name: * ==> 255
symbolic name: mail ==> 16
symbolic name: crit ==> 2
symbolic name: news ==> 56
symbolic name: err ==> 3
symbolic name: news ==> 56
symbolic name: notice ==> 5
symbolic name: news ==> 56
symbolic name: debug ==> 7
symbolic name: info ==> 6
symbolic name: notice ==> 5
symbolic name: warn ==> 4
leading char in action: |
filename: |/dev/xconsole
Opened UNIX socket `/dev/log'.
0: X X X X FF X X X X X FF X X X X X X X X X X X
X X X FILE: /var/log/auth.log
1: FF FF FF FF X FF FF FF FF FF X FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FILE: /var/log/syslog
2: X X X FF X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/daemon.log
3: FF X X X X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/kern.log
4: X X X X X X FF X X X X X X X X X X X X X X X
X X X FILE: /var/log/lpr.log
5: X X FF X X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/mail.log
6: X FF X X X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/user.log
7: X X 7F X X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/mail.info
8: X X 1F X X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/mail.warn
9: X X F X X X X X X X X X X X X X X X X X X X
X X X FILE: /var/log/mail.err
10: X X X X X X X 7 X X X X X X X X X X X X X X
X X X FILE: /var/log/news/news.crit
11: X X X X X X X F X X X X X X X X X X X X X X
X X X FILE: /var/log/news/news.err
12: X X X X X X X 3F X X X X X X X X X X X X X X
X X X FILE: /var/log/news/news.notice
13: 80 80 X 80 X 80 80 X 80 80 X 80 80 80 80 80 80 80 80 80 80 80 80
80 80 FILE: /var/log/debug
14: 70 70 X X X 70 70 X 70 X X 70 70 70 70 70 70 70 70 70 70 70 70
70 70 FILE: /var/log/messages
15: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 WALL:
16: F0 F0 FF FF F0 F0 F0 FF F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0 F0
F0 F0 PIPE: |/dev/xconsole
logmsg: syslog.info<46>, flags 4, from optima5, msg syslogd
1.5.0#1ubuntu1: restart.
Called fprintlog, logging to FILE /var/log/syslog
Called fprintlog, logging to FILE /var/log/messages
Called fprintlog, logging to PIPE |/dev/xconsole
syslogd: restarted.
Debugging disabled, SIGUSR1 to turn on debugging.
And it is now running (because it was restarted above):
-rw-r----- 1 syslog adm 1381 2009-05-05 02:51 syslog
Since I have the ssh terminal up, let me provide you with a few more
configuration files' data:
------------------------------------------------------------------------
john@optima5:/etc$ cat logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be configured here
------------------------------------------------------------------------
john@optima5:/etc$ cat crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.monthly )
#
------------------------------------------------------------------------
john@optima5:/etc/cron.daily$ cat logrotate
#!/bin/sh
test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
------------------------------------------------------------------------
john@optima5:/etc/cron.daily$ cat sysklogd
#! /bin/sh
# sysklogd Cron script to rotate system log files daily.
#
# If you want to rotate other logfiles daily, edit
# this script. An easy way is to add files manually,
# to add -a (for all log files) to syslogd-listfiles and
# add some grep stuff, or use the -s pattern argument to
# specify files that must not be listed.
#
# This is a configration file. You are invited to edit
# it and maintain it on your own. You'll have to do
# that if you don't like the default policy
# wrt. rotating logfiles (i.e. with large logfiles
# weekly and daily rotation may interfere). If you edit
# this file and don't let dpkg upgrade it, you have full
# control over it. Please read the manpage to
# syslogd-listfiles.
#
# Written by Martin Schulze <joey@debian.org>.
# $Id: cron.daily,v 1.14 2007-05-28 16:33:34 joey Exp $
test -x /usr/sbin/syslogd-listfiles || exit 0
test -x /sbin/syslogd || exit 0
test -f /usr/share/sysklogd/dummy || exit 0
USER=$(ps -C syslogd -o user= | head -n 1)
[ -z "${USER}" ] && USER="root" || true
set -e
cd /var/log
logs=$(syslogd-listfiles)
test -n "$logs" || exit 0
for LOG in $logs
do
if [ -s $LOG ]; then
savelog -g adm -m 640 -u ${USER} -c 7 $LOG >/dev/null
fi
done
# Restart syslogd
#
/etc/init.d/sysklogd reload-or-restart > /dev/null
------------------------------------------------------------------------
Ideas?
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: Innreport results - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Tue, 05 May 2009 17:39
Date: Tue, 05 May 2009 17:39
20 lines
2201 bytes
2201 bytes
Hi Russ, >> IE6 makes a good test platform: When IE6 can do it correctly, be assured >> that others can too. ;-) > > The stupid workarounds that you have to use for IE6 can break other > browsers. Unfortunately. I have noticed that IE7 behaves more like Firefox 3 for CSS rendering. So does IE8. Incidentally, I am pleasantly impressed to see how fast IE8 is on pages with a lot of JavaScript. IE8 is of course not perfect but at least it is far better than IE6! -- Julien ÉLIE « Il y a des sciences bonnes dont l'existence est nécessaire et dont la culture est inutile. Telles sont les mathématiques. » (Joseph Joubert)
Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Wed, 06 May 2009 18:43
Date: Wed, 06 May 2009 18:43
22 lines
2319 bytes
2319 bytes
I have two issues with innfeed. One is simple, while the other isn't. 1) Logging of "ME config: no definition for required key ..." messages. Since Innfeed runs without some of the "required" variables being set (which all have reasonable defaults), then they really aren't required. These log entries are more of a nuisance than informative. 2) I have 31 peers configured, but sometimes the innfeed.status says I have only 30. The dropped peer isn't first nor last in the file (but defined in the middle). Usually, sending a HUP signal to have innfeed re-read its configuration causes the peer to re-appear in the status output. As the peer in question is a rather busy news provider (Giganews), I suspect that a DNS timeout is the cause, especially since one of the records has a TTL of only 3600 and therefore is re-fetched frequently. (They use peer-specific names that are CNAMEd to a label that is a host record.) All my peers should be listed all the time as I have a global setting of "initial-connections: 1". Therefore, would a DNS timeout explain the behavior? I have asked the peer to increase their TTL in the DNS, but they haven't done so.
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Wed, 06 May 2009 19:15
Date: Wed, 06 May 2009 19:15
37 lines
3151 bytes
3151 bytes
Hi D. Stussy, > 1) Logging of "ME config: no definition for required key ..." messages. > Since Innfeed runs without some of the "required" variables being set > (which all have reasonable defaults), then they really aren't required. > These log entries are more of a nuisance than informative. I do not have such logs in my news.err file. Is it really relative to your ME line? What is your ME line? > 2) I have 31 peers configured, but sometimes the innfeed.status says I > have only 30. The dropped peer isn't first nor last in the file (but > defined in the middle). Usually, sending a HUP signal to have innfeed > re-read its configuration causes the peer to re-appear in the status > output. As the peer in question is a rather busy news provider (Giganews), > I suspect that a DNS timeout is the cause, especially since one of the > records has a TTL of only 3600 and therefore is re-fetched frequently. > (They use peer-specific names that are CNAMEd to a label that is a host > record.) All my peers should be listed all the time as I have a global > setting of "initial-connections: 1". Which does not prevent innfeed from disconnecting if the channel becomes inactive. (Though I do not see well why it would become inactive with Giganews; I believe you have lots of articles to feed.) DNS timeout? Yet, innfeed still knows the IP where to send news. Do you see in news.notice when (and why?) the Giganews channel is closed. -- Julien ÉLIE « Payload: Format drives D, E, F, G, H and I, deletes files: all files on the C drive. Causes system instability: the system may not function properly anymore after the payload has executed. » (Symantec Security Response, nominé pour l'euphémisme de l'année)
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Thu, 07 May 2009 07:24
Date: Thu, 07 May 2009 07:24
107 lines
5629 bytes
5629 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gtsnpe$n4u$1@news.trigofacile.com...
> > 1) Logging of "ME config: no definition for required key ..."
messages.
> > Since Innfeed runs without some of the "required" variables being set
> > (which all have reasonable defaults), then they really aren't required.
> > These log entries are more of a nuisance than informative.
>
> I do not have such logs in my news.err file.
> Is it really relative to your ME line? What is your ME line?
I don't know why "ME" is on the line as that has nothing to do with innfeed
(or innfeed.conf) but only "newsfeeds" which is handled by innd, not
innfeed.
Here's a copy of the full output:
May 6 01:37:51 (none) innfeed[18701]: ME config: no definition for required
key response-timeout
May 6 01:37:58 (none) innfeed[18701]: ME config: no definition for required
key close-period
May 6 01:38:08 (none) innfeed[18701]: ME config: no definition for required
key max-queue-size
May 6 01:38:17 (none) innfeed[18701]: ME config: no definition for required
key streaming
May 6 01:38:23 (none) innfeed[18701]: ME config: no definition for required
key drop-deferred
May 6 01:38:56 (none) innfeed[18701]: ME config: no definition for required
key min-queue-connection
May 6 01:39:11 (none) innfeed[18701]: ME config: no definition for required
key no-check-high
May 6 01:39:20 (none) innfeed[18701]: ME config: no definition for required
key no-check-low
May 6 01:39:25 (none) innfeed[18701]: ME config: no definition for required
key no-check-filter
May 6 01:39:33 (none) innfeed[18701]: ME config: no definition for required
key port-number
May 6 01:39:45 (none) innfeed[18701]: ME config: no definition for required
key backlog-limit
May 6 01:40:35 (none) innfeed[18701]: ME config: must define at least one
of backlog-factor and backlog-limit-high. Adding backlog-factor: 1.100000
May 6 01:41:29 (none) innfeed[18701]: ME config: no definition for required
key dynamic-backlog-filter
May 6 01:42:04 (none) innfeed[18701]: ME config: no definition for required
key dynamic-backlog-low
May 6 01:42:14 (none) innfeed[18701]: ME config: no definition for required
key dynamic-backlog-high
It obviously runs fine without setting these in innfeed.conf.
> > 2) I have 31 peers configured, but sometimes the innfeed.status says I
> > have only 30. The dropped peer isn't first nor last in the file (but
> > defined in the middle). Usually, sending a HUP signal to have innfeed
> > re-read its configuration causes the peer to re-appear in the status
> > output. As the peer in question is a rather busy news provider
(Giganews),
> > I suspect that a DNS timeout is the cause, especially since one of the
> > records has a TTL of only 3600 and therefore is re-fetched frequently.
> > (They use peer-specific names that are CNAMEd to a label that is a host
> > record.) All my peers should be listed all the time as I have a global
> > setting of "initial-connections: 1".
>
> Which does not prevent innfeed from disconnecting if the channel becomes
inactive.
> (Though I do not see well why it would become inactive with Giganews; I
believe
> you have lots of articles to feed.)
I receive more from Giganews than I send to them.
> DNS timeout? Yet, innfeed still knows the IP where to send news.
When this happens, it does NOT know where to feed, nor does it even list
the feed. Innfeed thinks there is no feed.
> Do you see in news.notice when (and why?) the Giganews channel is closed.
I haven't looked at the log files. The problem is that I cannot predict
when this is happening, so I don't know what to scan for (or when, other
than 12 hour ranges).
URL: http://news.snarked.org/inn_feeds :
innfeed from INN 2.5.0 (rc2 version)
...
Updated: Thu May 07 00:07:53 2009
(peers: 31 active-cxns: 48 sleeping-cxns: 1 idle-cxns: 1)
When it happens, the peer count drops to 30. It's always giganews that
disappears - and I don't mean just its IP address(es). The ENTIRE entry
disappears.
innfeed.conf contents (other peers deleted):
gen-html: true
use-mmap: true
stats-period: 900
dynamic-method: 1
max-connections: 1
article-timeout: 3600
initial-connections: 1
bindaddress: ...
bindaddress6: "..."
...
peer nntp.giganews.com {
ip-name: snarked.nntp.giganews.com
max-connections: 8
}
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Thu, 07 May 2009 08:09
Date: Thu, 07 May 2009 08:09
46 lines
2872 bytes
2872 bytes
Hi D. Stussy, > May 6 01:37:51 (none) innfeed[18701]: ME config: no definition for required > key response-timeout > > It obviously runs fine without setting these in innfeed.conf. Isn't it said in the innfeed.conf sample that: ## ## Defaults for all peers. These must all exist at ## global scope. Any of them can be redefined ## inside a peer or group definition. ## response-timeout: 300 Why wouldn't you want not to list it in innfeed.conf? I believe the log is here to point out a possible problem in your configuration; maybe default values are not the values you want. Would it be OK if the log is in news.notice instead of news.err? I believe it would bother you less -- but they would appear in innreport so you would not be happy with that either! I do not know why the log is done this way (if I make the parameter not required, it will still be logged that a missing value has been added!). > Updated: Thu May 07 00:07:53 2009 > (peers: 31 active-cxns: 48 sleeping-cxns: 1 idle-cxns: 1) > > When it happens, the peer count drops to 30. It's always giganews that > disappears - and I don't mean just its IP address(es). The ENTIRE entry > disappears. The entire entry disappear when there is no active innfeed connection to it. -- Julien ÉLIE « Le carré est un triangle qui a réussi, ou une circonférence qui a mal tourné. » (Pierre Dac)
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Thu, 07 May 2009 18:51
Date: Thu, 07 May 2009 18:51
83 lines
4653 bytes
4653 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gtu54v$2qv$1@news.trigofacile.com... > > May 6 01:37:51 (none) innfeed[18701]: ME config: no definition for required > > key response-timeout > > > > It obviously runs fine without setting these in innfeed.conf. > > Isn't it said in the innfeed.conf sample that: > > ## > ## Defaults for all peers. These must all exist at > ## global scope. Any of them can be redefined > ## inside a peer or group definition. > ## > > response-timeout: 300 > > Why wouldn't you want not to list it in innfeed.conf? > I believe the log is here to point out a possible problem in your configuration; > maybe default values are not the values you want. > > Would it be OK if the log is in news.notice instead of news.err? > I believe it would bother you less -- but they would appear in innreport so > you would not be happy with that either! > > I do not know why the log is done this way (if I make the parameter not required, > it will still be logged that a missing value has been added!). Yes, it does say that. However, it's not true. Innfeed continues with reasonable defaults. I am of the habit of not writing configuration files that include default values, so by habit, I omit them. Obviously, since it runs, they are NOT required. ;-) (If it were truly required, innfeed would abort if they were absent from the configuration.) > > Updated: Thu May 07 00:07:53 2009 > > (peers: 31 active-cxns: 48 sleeping-cxns: 1 idle-cxns: 1) > > > > When it happens, the peer count drops to 30. It's always giganews that > > disappears - and I don't mean just its IP address(es). The ENTIRE entry > > disappears. > > The entire entry disappear when there is no active innfeed connection to it. Upon further inspection, I found this message: /news/log/news.notice:May 7 02:20:08 (none) innfeed[3459]: nntp.giganews.com:0 connection vanishing (appears only in innfeed/host.c - line 2053: hostCxnGone(), called by hostClose() and delConnection() ) However, the problem is that innfeed FAILS TO RECREATE an entry for it later on when it has data (articles) to send. There are no .lock or .output files in /news/innfeed (its spooling directory). Instead, it drops the articles. Only the sending to innfeed of the HUP signal (thus re-reading its configuration) restores the entry. A week ago, I received a message from giganews asking whether I had ceased the peering! Apparently, it stayed down for a couple of days. With "initial-connections = 1", I usually have at least one connection to every peer (even if idle) all the time (unless they are down or paused). With 50k+ of articles per day queued and attempted to send (offered), the connection should stay up (including idle for up to an hour) as that averages 1.7 seconds between articles. hostClose(), called by configHosts(), implies that the removal is because the host was deleted from the configuration. It was NOT. hostCxnGone() is also called by delConnection(), which seems to be called from many places in connection.c. I had this problem with inn 2.4.6 also. Therefore, it's not a 2.5.0rc2 change. I have set up a cron-job to send the signal every 4 hours (on the 59th minute) to get around this problem for the time being.
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Thu, 07 May 2009 21:13
Date: Thu, 07 May 2009 21:13
46 lines
3539 bytes
3539 bytes
Hi D. Stussy, >> I do not know why the log is done this way (if I make the parameter not >> required, it will still be logged that a missing value has been added!). > > Yes, it does say that. However, it's not true. Innfeed continues with > reasonable defaults. I am of the habit of not writing configuration files > that include default values, so by habit, I omit them. Obviously, since it > runs, they are NOT required. ;-) > > (If it were truly required, innfeed would abort if they were absent from > the configuration.) I will have a look at it and try to improve the current system. > /news/log/news.notice:May 7 02:20:08 (none) innfeed[3459]: > nntp.giganews.com:0 connection vanishing > > However, the problem is that innfeed FAILS TO RECREATE an entry for it > later on when it has data (articles) to send. There are no .lock or > .output files in /news/innfeed (its spooling directory). Instead, it drops > the articles. Only the sending to innfeed of the HUP signal (thus > re-reading its configuration) restores the entry. A week ago, I received a > message from giganews asking whether I had ceased the peering! Apparently, > it stayed down for a couple of days. With "initial-connections = 1", I > usually have at least one connection to every peer (even if idle) all the > time (unless they are down or paused). Would it be possible to spy (with tcpdump) the exchanges between Giganews and your news server? Just to know the last commands before the disconnection and who initiates it (FIN ACK). > I had this problem with inn 2.4.6 also. Therefore, it's not a 2.5.0rc2 > change. I have set up a cron-job to send the signal every 4 hours (on the > 59th minute) to get around this problem for the time being. That sounds like an innfeed bug. -- Julien ÉLIE « The best preparation for tomorrow is to do today's work superbly well. » (William Osler)
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Thu, 07 May 2009 22:07
Date: Thu, 07 May 2009 22:07
65 lines
4069 bytes
4069 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gtvj3c$ejs$1@news.trigofacile.com... > >> I do not know why the log is done this way (if I make the parameter not > >> required, it will still be logged that a missing value has been added!). > > > > Yes, it does say that. However, it's not true. Innfeed continues with > > reasonable defaults. I am of the habit of not writing configuration files > > that include default values, so by habit, I omit them. Obviously, since it > > runs, they are NOT required. ;-) > > > > (If it were truly required, innfeed would abort if they were absent from > > the configuration.) > > I will have a look at it and try to improve the current system. > > > > /news/log/news.notice:May 7 02:20:08 (none) innfeed[3459]: > > nntp.giganews.com:0 connection vanishing > > > > However, the problem is that innfeed FAILS TO RECREATE an entry for it > > later on when it has data (articles) to send. There are no .lock or > > .output files in /news/innfeed (its spooling directory). Instead, it drops > > the articles. Only the sending to innfeed of the HUP signal (thus > > re-reading its configuration) restores the entry. A week ago, I received a > > message from giganews asking whether I had ceased the peering! Apparently, > > it stayed down for a couple of days. With "initial-connections = 1", I > > usually have at least one connection to every peer (even if idle) all the > > time (unless they are down or paused). > > Would it be possible to spy (with tcpdump) the exchanges between Giganews > and your news server? Just to know the last commands before the disconnection > and who initiates it (FIN ACK). I don't have the appropriate kernel option(s) compiled in to do that on the production server. However, I'm not certain it matters as it appears to be dropping the peer from its internal configuration structure, not just the connection. This doesn't seem to happen with other peers at all. I thought it was a DNS problem at first because I know that INN has a habit of reloading addresses from the DNS when the TTL expires and they have a low TTL value and a higher RTT time than many of my other peers. Giganews is not listed first nor last - it's number 20 of 31. However, I can ask what their timeout settings are.... > > I had this problem with inn 2.4.6 also. Therefore, it's not a 2.5.0rc2 > > change. I have set up a cron-job to send the signal every 4 hours (on the > > 59th minute) to get around this problem for the time being. > > That sounds like an innfeed bug. That's why I brought to attention here. I'm wondering if anyone else has experienced anything strange.
IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Fri, 08 May 2009 20:22
Date: Fri, 08 May 2009 20:22
49 lines
3716 bytes
3716 bytes
1) Here's another change I found regarding INN 2.5.0 vs 2.4 and earlier:
Although part of this is in the ChangeLog file, it's buried almost next to
last, and is MISSING from the "NEWS" file in the source code tar archive.
There were some changes to IPv6. One change that got me last night when I
rebooted was this:
"nnrpd -b ::" no longer works. It now requires "nnrpd -6 ::" AND "nnrpd -b
0.0.0.0". Although my [Linux] kernel supports IPv4-mapped addresses into
IPv6 - meaning I only needed one process under 2.4.6, it turned out that
the new nnrpd IPv6 interface doesn't support it*, so TWO processes must be
started. However, note that in "/var/run", their process-id files will
COLLIDE as they would both specify the same port and thus the latter one
overwrites the earlier one's file. As "-6" and "-b" cannot co-exist, the
use of these options should modify the "<pathrun>/nnrpd-%d.pid" filename,
perhaps "nnrpd-%c-%d.pid" (where %c is "4"(b) or "6"). Maybe "-b" should
be changed to "-4"?
* - I found out when I tried to run just the -6 version and then tried to
connect via IPv4 only. The 2.5.0 process listening on ::0 didn't respond
to IPv4 addresses, when the 2.4.6 version did.
>From NEWS:
* INN's IPv6 support was largely rewritten by Russ Allbery. IPv4 and
IPv6 are now handled through the same code wherever possible, the new
IPv6-aware APIs are used everywhere possible, and replacement
functions are provided for systems that don't have them yet. The
network code is now much more centralized, eliminating lots of
duplicate code and adding better IPv6 support to some utilities.
Add (something like): "NNRPD daemons may need to adjust their calling
parameters or run a separate IPv4 instance."
----
2) My news.daily runs for 3 hours, with 2.8 hours performing expireover.
However, it runs at normal priority. I had one peer complain about
connection timeouts while expireover was running*. Perhaps news.daily
should nice itself? I added an "renice +99 $$" to the top of my copy of
the script for now, but perhaps there should be a 4th inn.conf value (to
join the other 3 nice* values defined) for the script (e.g. "nicedaily") -
making a "renice $nicedaily $$" line at the top of the script (which may be
inside an if [...] clause).
* - My system load is usually less than 1, but when expireover runs, it
shoots up to over 12, and I've seen 16 recorded in my logs.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Fri, 08 May 2009 21:42
Date: Fri, 08 May 2009 21:42
69 lines
4272 bytes
4272 bytes
Hi D. Stussy,
> "nnrpd -b ::" no longer works. It now requires "nnrpd -6 ::" AND "nnrpd -b
> 0.0.0.0". Although my [Linux] kernel supports IPv4-mapped addresses into
> IPv6 - meaning I only needed one process under 2.4.6, it turned out that
> the new nnrpd IPv6 interface doesn't support it*, so TWO processes must be
> started.
http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html
-6 address
The -6 parameter instructs nnrpd to bind to the specified IPv6 address when
started as a standalone daemon using the -D flag. This has to be a valid
IPv6 address belonging to an interface of the local host. It can also
be ::0, saying to bind to all IPv6 addresses.
Only one of -6 or -b may be specified. By default, nnrpd in daemon mode
listens to only IPv4 addresses. With this option, it will listen to the
specified IPv6 addresses instead. On some systems, a value of ::0 will
cause it to listen to all IPv4 addresses as well, but on other systems,
two copies of nnrpd, one with -6 and one without it, will have to be
run to accept both IPv6 and IPv4 connections.
> However, note that in "/var/run", their process-id files will
> COLLIDE as they would both specify the same port and thus the latter one
> overwrites the earlier one's file. As "-6" and "-b" cannot co-exist, the
> use of these options should modify the "<pathrun>/nnrpd-%d.pid" filename,
> perhaps "nnrpd-%c-%d.pid" (where %c is "4"(b) or "6").
Oh, you're right. I will try to see whether it is doable.
It also reminds me of your problem with nnrpd-xxx.pid with different
TLS certificates on the same port!
By the way, did you try "Subject Alternative Names" in TLS certificates?
> From NEWS:
>
> * INN's IPv6 support was largely rewritten by Russ Allbery. IPv4 and
> IPv6 are now handled through the same code wherever possible, the new
> IPv6-aware APIs are used everywhere possible, and replacement
> functions are provided for systems that don't have them yet. The
> network code is now much more centralized, eliminating lots of
> duplicate code and adding better IPv6 support to some utilities.
>
> Add (something like): "NNRPD daemons may need to adjust their calling
> parameters or run a separate IPv4 instance."
I will try to add something like that.
> 2) My news.daily runs for 3 hours, with 2.8 hours performing expireover.
> However, it runs at normal priority. I had one peer complain about
> connection timeouts while expireover was running*. Perhaps news.daily
> should nice itself? I added an "renice +99 $$" to the top of my copy of
> the script for now
And how long does news.daily run with this renice?
--
Julien ÉLIE
« Le travail est l'opium du peuple et
je ne veux pas mourir drogué. » (Boris Vian)
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Fri, 08 May 2009 21:54
Date: Fri, 08 May 2009 21:54
25 lines
2420 bytes
2420 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> "nnrpd -b ::" no longer works. It now requires "nnrpd -6 ::" AND
> "nnrpd -b 0.0.0.0".
Yeah, that's because nnrpd doesn't support listening on multiple sockets
and supporting IPv4-mapped addresses is just too weird. We cleaned up a
lot of IPv6 code by doing things this way.
The right solution here is to keep moving forward and add support to
nnrpd for listening to multiple sockets, allow both -b and -6 to be
given at the same time, and provide a way to trigger network_bind_all(),
which is the behavior you really want but which may return multiple
sockets. It's not a particularly hard change, but it requires a
slightly more complex listening loop in nnrpd.c that selects on multiple
file descriptors for incoming connections similar to what innd does.
Out of curiosity, why do you run nnrpd as a daemon rather than using
xinetd or inetd, which will also handle IPv6 for you?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Fri, 08 May 2009 22:13
Date: Fri, 08 May 2009 22:13
83 lines
4581 bytes
4581 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gu2959$3ra$1@news.trigofacile.com... > > "nnrpd -b ::" no longer works. It now requires "nnrpd -6 ::" AND "nnrpd -b > > 0.0.0.0". Although my [Linux] kernel supports IPv4-mapped addresses into > > IPv6 - meaning I only needed one process under 2.4.6, it turned out that > > the new nnrpd IPv6 interface doesn't support it*, so TWO processes must be > > started. > > http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html > > -6 address > > The -6 parameter instructs nnrpd to bind to the specified IPv6 address when > started as a standalone daemon using the -D flag. This has to be a valid > IPv6 address belonging to an interface of the local host. It can also > be ::0, saying to bind to all IPv6 addresses. > > Only one of -6 or -b may be specified. By default, nnrpd in daemon mode > listens to only IPv4 addresses. With this option, it will listen to the > specified IPv6 addresses instead. On some systems, a value of ::0 will > cause it to listen to all IPv4 addresses as well, but on other systems, > two copies of nnrpd, one with -6 and one without it, will have to be > run to accept both IPv6 and IPv4 connections. ...But people who are upgrading will look in any "changes" or "news" named files first. I obviously found it, but didn't adjust my system configuration files beforehand because I wasn't alerted of the change until something "broke." > > However, note that in "/var/run", their process-id files will > > COLLIDE as they would both specify the same port and thus the latter one > > overwrites the earlier one's file. As "-6" and "-b" cannot co-exist, the > > use of these options should modify the "<pathrun>/nnrpd-%d.pid" filename, > > perhaps "nnrpd-%c-%d.pid" (where %c is "4"(b) or "6"). > > Oh, you're right. I will try to see whether it is doable. > > It also reminds me of your problem with nnrpd-xxx.pid with different > TLS certificates on the same port! > By the way, did you try "Subject Alternative Names" in TLS certificates? No. I haven't looked at that. In the case of the virtual hosting situation I was thinking of, the instances would be under different domain names, so if you were thinking of a "wildcard" certificate, I don't think one may wildcard the TLD. I gave up on the idea for the moment, but may return to it later. > > 2) My news.daily runs for 3 hours, with 2.8 hours performing expireover. > > However, it runs at normal priority. I had one peer complain about > > connection timeouts while expireover was running*. Perhaps news.daily > > should nice itself? I added an "renice +99 $$" to the top of my copy of > > the script for now > > And how long does news.daily run with this renice? I don't know yet. I made this change today and my next scheduled "daily" maintenance is in 9 hours. ----------- Russ Allbery wrote: > Out of curiosity, why do you run nnrpd as a daemon rather than using > xinetd or inetd, which will also handle IPv6 for you? I don't use inetd. I found it more efficient to invoke the individual server daemons directly. Less memory trashing and less startup overhead. It also eliminates a "single point of failure" nexus.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: John F. Morse
Date: Fri, 08 May 2009 23:43
Date: Fri, 08 May 2009 23:43
35 lines
2775 bytes
2775 bytes
Russ Allbery wrote:
> Out of curiosity, why do you run nnrpd as a daemon rather than using
> xinetd or inetd, which will also handle IPv6 for you?
Isn't it required when innd is configured in inn.conf to run on port
433, and you want nnrpd to listen for readers on port 119?
From: http://www.eyrie.org/~eagle/software/inn/docs-2.4/nnrpd.html
-D
If specified, this parameter causes nnrpd to operate as a daemon.
That is, it detaches itself and runs in the background, forking a
process for every connection. By default nnrpd listens on the NNTP
port (119), so either innd(8) has to be started on another port or
nnrpd -p parameter. Note that with this parameter, nnrpd continues
running until killed. This means that it reads /inn.conf/ once on
startup and never again until restarted. nnrpd should therefore be
restarted if inn.conf is changed.
When started in daemon mode, nnrpd will write its PID into a file in
the /pathrun/ directory. The file will be named /nnrpd-%d.pid/,
where |%d| is replaced with the port that nnrpd is configured to
listen on (119 unless the -p option is given).
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Fri, 08 May 2009 23:56
Date: Fri, 08 May 2009 23:56
17 lines
1898 bytes
1898 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:
> Russ Allbery wrote:
>> Out of curiosity, why do you run nnrpd as a daemon rather than using
>> xinetd or inetd, which will also handle IPv6 for you?
> Isn't it required when innd is configured in inn.conf to run on port
> 433, and you want nnrpd to listen for readers on port 119?
That's when you can't rely on innd to run it, but you can run it via
inetd or xinetd. You don't have to run nnrpd as a daemon.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: John F. Morse
Date: Sat, 09 May 2009 00:52
Date: Sat, 09 May 2009 00:52
32 lines
2470 bytes
2470 bytes
Russ Allbery wrote: > "John F. Morse" <xanadu.bbs@example.invalid> writes: > >> Russ Allbery wrote: >> > > >>> Out of curiosity, why do you run nnrpd as a daemon rather than using >>> xinetd or inetd, which will also handle IPv6 for you? >>> > > >> Isn't it required when innd is configured in inn.conf to run on port >> 433, and you want nnrpd to listen for readers on port 119? >> > > That's when you can't rely on innd to run it, but you can run it via > inetd or xinetd. You don't have to run nnrpd as a daemon. > How do you tell nnrpd to listen on port 119? IOW, how can I set up a server to reboot in a configuration using port 119 for readers and port 433 for peers, should a rare power outage outlast the UPS ability? -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Sat, 09 May 2009 01:29
Date: Sat, 09 May 2009 01:29
21 lines
2112 bytes
2112 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:
> Russ Allbery wrote:
>> That's when you can't rely on innd to run it, but you can run it via
>> inetd or xinetd. You don't have to run nnrpd as a daemon.
> How do you tell nnrpd to listen on port 119?
It's the default.
> IOW, how can I set up a server to reboot in a configuration using port
> 119 for readers and port 433 for peers, should a rare power outage
> outlast the UPS ability?
http://www.eyrie.org/~eagle/faqs/inn.html#S6.12
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: John F. Morse
Date: Sat, 09 May 2009 02:03
Date: Sat, 09 May 2009 02:03
41 lines
2655 bytes
2655 bytes
Russ Allbery wrote: > "John F. Morse" <xanadu.bbs@example.invalid> writes: > >> Russ Allbery wrote: >> >>> That's when you can't rely on innd to run it, but you can run it via >>> inetd or xinetd. You don't have to run nnrpd as a daemon. >>> >> How do you tell nnrpd to listen on port 119? >> > > It's the default. > Not after changing "port:" in inn.conf to 433. Even if "nnrpdpostport:" remains at 119. What is the purpose of nnrpdpostport if it has no effect? >> IOW, how can I set up a server to reboot in a configuration using port >> 119 for readers and port 433 for peers, should a rare power outage >> outlast the UPS ability? >> > > http://www.eyrie.org/~eagle/faqs/inn.html#S6.12 I've read that many times Russ, but it doesn't tell me how to add nnrpd to inetd, et al. Is that procedure documented somewhere? -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Sat, 09 May 2009 02:21
Date: Sat, 09 May 2009 02:21
35 lines
2605 bytes
2605 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:
> Russ Allbery wrote:
>>> How do you tell nnrpd to listen on port 119?
>> It's the default.
> Not after changing "port:" in inn.conf to 433. Even if
> "nnrpdpostport:" remains at 119.
Oh, okay, then you need to pass the command-line parameter to nnrpd that
tells it to listen to port 119. Sorry, I didn't think about that.
> What is the purpose of nnrpdpostport if it has no effect?
It does. It does what it says it does in the inn.conf documentation,
which doesn't have anything to do with what port nnrpd listens on. :)
> I've read that many times Russ, but it doesn't tell me how to add
> nnrpd to inetd, et al.
>
> Is that procedure documented somewhere?
Uh... well, you do it just like you would for any other service that you
want to add to inetd.
nntp stream tcp nowait root /path/to/nnrpd nnrpd <options>
inetd has its own documentation and man pages.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Russ Allbery
Date: Sat, 09 May 2009 02:24
Date: Sat, 09 May 2009 02:24
13 lines
1888 bytes
1888 bytes
Russ Allbery <rra@stanford.edu> writes:
> Oh, okay, then you need to pass the command-line parameter to nnrpd
> that tells it to listen to port 119. Sorry, I didn't think about
> that.
Specifically, -p 119.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Sat, 09 May 2009 19:11
Date: Sat, 09 May 2009 19:11
46 lines
3006 bytes
3006 bytes
Hi D. Stussy,
> /news/log/news.notice:May 7 02:20:08 (none) innfeed[3459]:
> nntp.giganews.com:0 connection vanishing
I believe you have just before this line something like
"maxConnections was 1 now 0".
Do you confirm?
* Could you please try with another dynamic method for Giganews?
I see you are using "dynamic method: 1"; could you try the third
one ("dynamic method: 3") and check whether the problem is still
present?
* Another track:
Index: innfeed/host.c
===================================================================
--- innfeed/host.c (révision 8451)
+++ innfeed/host.c (copie de travail)
@@ -589,7 +589,8 @@
* just changing "dynamic-method" requires this call
* to be made
*/
- hostAlterMaxConnections(h, absMaxCxns, h->maxConnections, false);
+ hostAlterMaxConnections(h, h->params->absMaxConnections,
+ h->params->absMaxConnections, false);
for ( i = 0 ; i < MAXCONLIMIT(h->params->absMaxConnections) ; i++ )
if (h->connections[i] != NULL)
It is in hostReconfigure() and I do not understand why these values
are used. It should be the same values here. h->maxConnections
is something different than absMaxConnections!
I do not know whether it is the source of your problem.
Something seems to drop your max number connections as far as
I understand.
--
Julien ÉLIE
« Cette obscure clarté qui tombe des étoiles. » (Pierre Corneille)
Re: INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Sat, 09 May 2009 19:12
Date: Sat, 09 May 2009 19:12
22 lines
2081 bytes
2081 bytes
Hi D. Stussy, > 2) For funnel programs, clarify whether the use of the "A" flags on the > funnel targets are effective or not. For example, given: > > innfeed!:!*:Af,Tc,Wnm*:<news-bin>/innfeed > > Will that reject all messages funnelled to innfeed that were rejected by > the filter, or does it do nothing by itself (meaning that each individual > funnel entry must specify the flag if it's to be operative)? I have just mentioned it in the newsfeed man page. "A" flags are not taken into account on funnel targets. I believe you will have noticed a recent discussion here about "Af"... -- Julien ÉLIE « Certains hommes aiment tellement leur femme que, pour ne pas les user, ils usent celle des amis. »
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Sat, 09 May 2009 19:18
Date: Sat, 09 May 2009 19:18
22 lines
2353 bytes
2353 bytes
Hi D. Stussy, >> Yes, it does say that. However, it's not true. Innfeed continues with >> reasonable defaults. I am of the habit of not writing configuration files >> that include default values, so by habit, I omit them. Obviously, since it >> runs, they are NOT required. ;-) >> >> (If it were truly required, innfeed would abort if they were absent from >> the configuration.) > > I will have a look at it and try to improve the current system. I will not do anything about that right now. What innfeed.conf needs is a rewrite to use Russ' configuration parser (like inn.conf). It will then be far better and we will define what is required or not. -- Julien ÉLIE « Certains hommes aiment tellement leur femme que, pour ne pas les user, ils usent celle des amis. »
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Sat, 09 May 2009 19:20
Date: Sat, 09 May 2009 19:20
20 lines
2246 bytes
2246 bytes
>> /news/log/news.notice:May 7 02:20:08 (none) innfeed[3459]: >> nntp.giganews.com:0 connection vanishing > > I believe you have just before this line something like > "maxConnections was 1 now 0". > Do you confirm? Well, maybe not. "nntp.giganews.com:0" indicates it is the first connection that has vanished. But then, if Giganews is deleted, it means there is no other connections... Weird. -- Julien ÉLIE « -- Avez-vous été attaqués par une force supérieure en nombre ? -- Supérieure en nombre... -- ...On ne peut pas dire ! -- ...Ils étaient un... -- ...Et pas bien gros avec ça ! » (Astérix)
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Sat, 09 May 2009 22:09
Date: Sat, 09 May 2009 22:09
35 lines
2565 bytes
2565 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gu2959$3ra$1@news.trigofacile.com...
> ...
> > 2) My news.daily runs for 3 hours, with 2.8 hours performing
expireover.
> > However, it runs at normal priority. I had one peer complain about
> > connection timeouts while expireover was running*. Perhaps news.daily
> > should nice itself? I added an "renice +99 $$" to the top of my copy
of
> > the script for now
>
> And how long does news.daily run with this renice?
With it "niced" back to +20 (the kernel maximum, although I specified +99):
expire begin Sat May 9 00:03:09 PDT 2009: (-v1)
Article lines processed 15290139
Articles retained 15288483
Entries expired 1656
Articles dropped 0
expire end Sat May 9 00:13:35 PDT 2009
all done Sat May 9 00:13:35 PDT 2009
expireover start Sat May 9 00:13:35 PDT 2009
expireover end Sat May 9 03:07:37 PDT 2009
-----
Expire took 50% longer: 10.5 minutes instead of 7
Expireover took the same time, but only had 1656 articles to remove instead
of 2400 (the previous day). 2.9 hours vs. 2.8. Perhaps indicative of a
similar slowdown, but not too bad.
I'm waiting to hear from the peer that complained to see if he noticed any
timeouts during the process.
Re: Innfeed - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Sat, 09 May 2009 22:15
Date: Sat, 09 May 2009 22:15
22 lines
2322 bytes
2322 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gu4l71$qte$1@news.trigofacile.com... > >> /news/log/news.notice:May 7 02:20:08 (none) innfeed[3459]: > >> nntp.giganews.com:0 connection vanishing > > > > I believe you have just before this line something like > > "maxConnections was 1 now 0". > > Do you confirm? > > Well, maybe not. "nntp.giganews.com:0" indicates it is the first > connection that has vanished. But then, if Giganews is deleted, > it means there is no other connections... Weird. It did have other connections, but those were removed before. Connection #0 seems to be the one started by force (initial connections =1) and therefore remains the longest. The others come and go as needed (and seem to be killed first when not needed). I'll consider/try method 3 sometime next week. I want to see if the renicing of news.daily does anything long term first.
Re: INN 2.5.0 release candidate available
Author: D. Stussy
Date: Sat, 09 May 2009 22:17
Date: Sat, 09 May 2009 22:17
24 lines
2139 bytes
2139 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gu4koq$qjs$1@news.trigofacile.com... > > 2) For funnel programs, clarify whether the use of the "A" flags on the > > funnel targets are effective or not. For example, given: > > > > innfeed!:!*:Af,Tc,Wnm*:<news-bin>/innfeed > > > > Will that reject all messages funnelled to innfeed that were rejected by > > the filter, or does it do nothing by itself (meaning that each individual > > funnel entry must specify the flag if it's to be operative)? > > I have just mentioned it in the newsfeed man page. > "A" flags are not taken into account on funnel targets. > > I believe you will have noticed a recent discussion here about "Af"... Yes, I saw that. I do note that if this were changed, some of the "A" flags would be useful. However, I haven't examined the source code to see if that's an easy change.
Re: "nicety" of news.daily (and dropped connections)
Author: D. Stussy
Date: Tue, 12 May 2009 03:19
Date: Tue, 12 May 2009 03:19
178 lines
9883 bytes
9883 bytes
"D. Stussy" <spam@bde-arc.ampr.org> wrote in message news:gu4uum$7rm$1@aux.snarked.org... > I'm waiting to hear from the peer that complained to see if he noticed any > timeouts during the process. Even with "news.daily" at the maximum nice value (least important priority), my peer is still noticing timeouts: --------------------- May 11 03:13:11 news2 innfeed[28656]: news.snarked.org:0 cxnsleep message-id invalid message-id in reponse code 431: Expiring May 11 03:19:08 news2 innfeed[28656]: news.snarked.org:0 cxnsleep non-responsive connection May 11 03:19:55 news2 innfeed[28656]: news.snarked.org final seconds 401 offered 210 accepted 1 refused 48 rejected 0 missing 0 accsize 1666 rejsize 0 spooled 301 on_close 0 unspooled 0 deferred 61/1.2 requeued 100 queue 120.2/200:21,10,11,8,9,41 May 11 03:19:55 news2 innfeed[28656]: news.snarked.org spooling no active connections May 11 03:23:25 news2 innfeed[28656]: news.snarked.org:2 cxnsleep connect: Connection timed out May 11 03:24:25 news2 innfeed[28656]: news.snarked.org:2 connect: Network is unreachable May 11 03:24:47 news2 innfeed[28656]: news.snarked.org:0 cxnsleep non-responsive connection May 11 03:25:26 news2 innfeed[28656]: news.snarked.org:1 cxnsleep non-responsive connection May 11 03:25:59 news2 innfeed[28656]: news.snarked.org:0 connected May 11 03:25:59 news2 innfeed[28656]: news.snarked.org remote MODE STREAM May 11 03:25:59 news2 innfeed[28656]: news.snarked.org final seconds 364 spooled 633 on_close 200 sleeping 433 May 11 03:26:38 news2 innfeed[28656]: news.snarked.org:2 connected May 11 03:26:38 news2 innfeed[28656]: news.snarked.org:1 connected May 11 03:26:58 news2 innfeed[28656]: news.snarked.org:3 cxnsleep non-responsive connection May 11 03:34:11 news2 innd: news.snarked.org:106 cant read: Connection reset by peer May 11 03:34:11 news2 innd: news.snarked.org:106 readclose May 11 03:34:11 news2 innd: news.snarked.org:106 closed seconds 308 accepted 0 refused 6 rejected 0 duplicate 0 accepted size 0 duplicate size 0 rejected size 0 So from the log it looks like your having trouble keeping up during the expire process, and are not responsive at times. => I'm running 2.5.0rc2, ... So am I, but it just appears to be overloaded. --------------------- Comments for the newsgroup: "invalid message-id in reponse code 431: Expiring" - Is something getting out of sync? NNTP Protocol error? "News2" sees this happening only when "news" is running its daily cleanup (0300-0600 in "news2"'s timezone). This does not happen when "news" is not expiring its overview. The system load on "news" exceeds 12 when a nominal value is less than 2. Corresponding log from snarked to glorb: --------------------- May 11 00:00:31 (none) innd: news-out.glorb.com:252 readclose May 11 00:00:31 (none) innd: news-out.glorb.com:252 closed seconds 2871 accepted 292 refused 2588 rejected 466 duplicate 6 accepted size 937056 duplicate size 111879 rejected size 6942113 May 11 00:00:31 (none) innd: news-out.glorb.com:361 NCmode "mode stream" received May 11 00:00:31 (none) innd: news-out.glorb.com:384 NCmode "mode stream" received May 11 00:00:32 (none) innd: news-out.glorb.com:271 readclose May 11 00:00:32 (none) innd: news-out.glorb.com:271 closed seconds 537 accepted 0 refused 6 rejected 1 duplicate 0 accepted size 0 duplicate size 0 rejected size 1233 May 11 00:01:00 (none) innfeed[19141]: news.glorb.com hostChkCxns - maxConnections was 1 now 2 May 11 00:01:00 (none) innfeed[19141]: news.glorb.com:1 connected May 11 00:01:00 (none) innd: news-out.glorb.com connected 264 streaming allowed May 11 00:01:00 (none) innd: news-out.glorb.com connected 265 streaming allowed May 11 00:01:00 (none) innd: news-out.glorb.com:264 NCmode "mode stream" received May 11 00:01:00 (none) innd: news-out.glorb.com:265 NCmode "mode stream" received May 11 00:01:13 (none) innfeed[19141]: news.glorb.com:0 cxnsleep message-id invalid message-id in reponse code 431: Flushing May 11 00:01:13 (none) innfeed[19141]: news.glorb.com:0 final seconds 43 offered 88 accepted 0 refused 86 rejected 0 accsize 0 rejsize 0 May 11 00:01:43 (none) innfeed[19141]: news.glorb.com:0 connected May 11 00:02:00 (none) innfeed[19141]: news.glorb.com hostChkCxns - maxConnections was 2 now 1 May 11 00:02:00 (none) innfeed[19141]: news.glorb.com:1 connection vanishing May 11 00:08:22 (none) innd: news-out.glorb.com:384 closed seconds 472 accepted 32 refused 22 rejected 0 duplicate 0 accepted size 299454 duplicate size 0 rejected size 0 May 11 00:09:20 (none) innd: news-out.glorb.com:361 closed seconds 530 accepted 47 refused 85 rejected 1 duplicate 0 accepted size 282599 duplicate size 0 rejected size 1227 May 11 00:10:05 (none) innd: news-out.glorb.com:265 closed seconds 545 accepted 0 refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0 rejected size 0 May 11 00:13:23 (none) innd: news-out.glorb.com connected 218 streaming allowed May 11 00:13:23 (none) innd: news-out.glorb.com connected 226 streaming allowed May 11 00:13:23 (none) innd: news-out.glorb.com connected 234 streaming allowed May 11 00:13:23 (none) innd: news-out.glorb.com:264 readclose May 11 00:13:23 (none) innd: news-out.glorb.com:264 closed seconds 743 accepted 64 refused 581 rejected 10 duplicate 7 accepted size 159786 duplicate size 12031 rejected size 28319 May 11 00:13:25 (none) innd: news-out.glorb.com:218 NCmode "mode stream" received May 11 00:13:25 (none) innd: news-out.glorb.com:226 NCmode "mode stream" received May 11 00:13:26 (none) innd: news-out.glorb.com:234 NCmode "mode stream" received May 11 00:13:51 (none) innd: news-out.glorb.com connected 357 streaming allowed May 11 00:13:51 (none) innd: news-out.glorb.com:357 NCmode "mode stream" received May 11 00:16:01 (none) innfeed[19141]: news.glorb.com checkpoint seconds 905 offered 721 accepted 0 refused 679 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 40/0.2 requeued 1 queue 0.0/10:99,1,0,0,0,0 May 11 00:25:44 (none) innd: news-out.glorb.com:357 readclose May 11 00:25:44 (none) innd: news-out.glorb.com:357 closed seconds 713 accepted 2 refused 13 rejected 1 duplicate 1 accepted size 26170 duplicate size 13045 rejected size 13045 May 11 00:25:49 (none) innd: news-out.glorb.com:218 readclose May 11 00:25:49 (none) innd: news-out.glorb.com:218 closed seconds 741 accepted 1 refused 23 rejected 10 duplicate 10 accepted size 13310 duplicate size 25492 rejected size 25492 May 11 00:25:51 (none) innd: news-out.glorb.com:226 readclose May 11 00:25:51 (none) innd: news-out.glorb.com:226 closed seconds 741 accepted 2 refused 22 rejected 2 duplicate 1 accepted size 14816 duplicate size 13111 rejected size 26939 May 11 00:25:51 (none) innd: news-out.glorb.com:234 readclose May 11 00:25:51 (none) innd: news-out.glorb.com:234 closed seconds 741 accepted 13 refused 2 rejected 4 duplicate 0 accepted size 35971 duplicate size 0 rejected size 6544 May 11 00:26:00 (none) innd: news-out.glorb.com connected 23 streaming allowed May 11 00:26:10 (none) innd: news-out.glorb.com:23 NCmode "mode stream" received May 11 00:26:47 (none) innd: news-out.glorb.com connected 233 streaming allowed May 11 00:26:48 (none) innd: news-out.glorb.com connected 234 streaming allowed May 11 00:26:49 (none) innd: news-out.glorb.com:233 NCmode "mode stream" received May 11 00:26:49 (none) innd: news-out.glorb.com:234 NCmode "mode stream" received May 11 00:28:18 (none) innd: news-out.glorb.com connected 271 streaming allowed May 11 00:28:38 (none) innd: news-out.glorb.com:271 NCmode "mode stream" received May 11 00:29:14 (none) innfeed[19141]: news.glorb.com hostChkCxns - maxConnections was 1 now 2 May 11 00:29:27 (none) innfeed[19141]: news.glorb.com:1 connected May 11 00:31:19 (none) innfeed[19141]: news.glorb.com checkpoint seconds 1815 offered 1229 accepted 0 refused 1181 rejected 1 missing 0 accsize 0 rejsize 3697 spooled 14 on_close 0 unspooled 0 deferred 40/0.0 requeued 1 queue 0.2/10:95,3,2,0,1,0 May 11 00:34:22 (none) innfeed[19141]: news.glorb.com hostChkCxns - maxConnections was 2 now 1 May 11 00:34:22 (none) innfeed[19141]: news.glorb.com:1 final seconds 292 offered 6 accepted 0 refused 1 rejected 0 accsize 0 rejsize 0 May 11 00:34:22 (none) innfeed[19141]: news.glorb.com:1 connection vanishing --------------------- Again, "invalid message-id in reponse code 431: Flushing"? Hmmm. I did notice "Connection reset by peer" while the other side says "connection vanishing" - NNTP protocol error?
Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Tue, 12 May 2009 23:12
Date: Tue, 12 May 2009 23:12
22 lines
2088 bytes
2088 bytes
Here's an error that bit me today when I was testing my mail-news gateway
feature:
inews failed: inews: no space after colon in
"X-DomainKey-Signature:a=rsa-sh..." inews: article not posted
Note that SMTP (RFC 5322, esp. Section 3) doesn't require a space after the
colon of the header name, while NNTP/Usefor (whatever it's called) does.
We need to make certain that headers carried in $real_news_hdrs and
$weird_mail_hdrs have a space after the colon.
Something like:
s/:/: / if ($_ != ~ /: /);
placed just before the comment (about line 185):
# On the first header, $line will be undefined.
should do, I think. Should this operate on $line instead of $_ ?
In other words, if colon-space does not exist (on the line after
unfolding), change the first colon to colon-space. That first colon should
always be the colon following a header name.
Re: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: Julien ÉLIE
Date: Wed, 13 May 2009 06:24
Date: Wed, 13 May 2009 06:24
23 lines
2100 bytes
2100 bytes
Hi D. Stussy, > inews failed: inews: no space after colon in > "X-DomainKey-Signature:a=rsa-sh..." inews: article not posted > > Something like: > s/:/: / if ($_ != ~ /: /); What if I have something like "X-Test:host: me"? It is invalid. A more robut regexp should be used, like /^([^:]+):/ or with the exact list of allowed characters for a header name. Other problems may occur (like comments on a message-ID or 250 octets only for a message-ID). -- Julien ÉLIE « Quod sis, esse uelis nihilque malis ; Summum nec metuas diem nec optes. » (Martial)
Re: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Author: D. Stussy
Date: Wed, 13 May 2009 23:04
Date: Wed, 13 May 2009 23:04
30 lines
2332 bytes
2332 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gudp3l$t5h$1@news.trigofacile.com...
> > inews failed: inews: no space after colon in
> > "X-DomainKey-Signature:a=rsa-sh..." inews: article not posted
> >
> > Something like:
> > s/:/: / if ($_ != ~ /: /);
>
> What if I have something like "X-Test:host: me"?
> It is invalid.
>
> A more robut regexp should be used, like /^([^:]+):/ or with the
> exact list of allowed characters for a header name.
Whatever you come up with, it needs to be fixed. Well, that's why I posted
"something like ..." So, not even I got the correction correct on the
first try. I'm still figuring out perl. ;-)
s/:/: / if ($_ != ~ /^[^:]+: /);
We don't need the parentheses inside the regex as we're not using it later.
You missed the trailing space.
> Other problems may occur (like comments on a message-ID or 250 octets
> only for a message-ID).
Noted, but currently we don't check for those either - and so far, they
haven't appeared. This one did.
Page 1 of 2 • 64 total messages
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