Thread View: news.software.nntp
7 messages
7 total messages
Started by Tricia Sesar
Tue, 27 Aug 2002 02:15
innxmit errors
Author: Tricia Sesar
Date: Tue, 27 Aug 2002 02:15
Date: Tue, 27 Aug 2002 02:15
21 lines
1428 bytes
1428 bytes
Hi, I am using innxmit to transfer articles from a 2.2 server to a 2.3.2 server. Both servers store articles using tradspool. From the FAQ: 1. ctlinnd param c 0 2. xrefslave true ; restart INND 3. cd pathdb; perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n if $_' history | tr . / > pathoutgoing/list 4. innxmit <destination server> list While I'm running innxmit, I am tailing the pathnews/news file and all articles arrive with the following error: 437 Invalid Xref Header "" Heeeeelllllllpppp!!!
Re: innxmit errors
Author: Mark Hittinger
Date: Tue, 27 Aug 2002 02:36
Date: Tue, 27 Aug 2002 02:36
17 lines
2010 bytes
2010 bytes
Tricia Sesar <trixee@rcn.com> writes: >437 Invalid Xref Header "" I seem to remember articles that were not crossposted didn't have xref headers at all on some older versions of INN. We had to patch INN to force it to generate xref headers for articles that were only posted to one group. Take a look at one of the articles you want to transfer that was only posted to one group and see if it has an xref header. Without xref headers the xrefslave technique won't work and you'll have to try something else (like transfering with tar and then rebuilding history/overview on the target (ugh)). Later Mark Hittinger bugs@pu.net
Re: innxmit errors
Author: Russ Allbery
Date: Tue, 27 Aug 2002 02:39
Date: Tue, 27 Aug 2002 02:39
99 lines
4382 bytes
4382 bytes
Tricia Sesar <trixee@rcn.com> writes:
> I am using innxmit to transfer articles from a 2.2 server to a 2.3.2
> server. Both servers store articles using tradspool.
> From the FAQ:
> 1. ctlinnd param c 0
> 2. xrefslave true ; restart INND
> 3. cd pathdb; perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n if
> $_' history | tr . / > pathoutgoing/list
> 4. innxmit <destination server> list
> While I'm running innxmit, I am tailing the pathnews/news file and all
> articles arrive with the following error:
> 437 Invalid Xref Header ""
Unfortunately, that technique only works if all the articles have Xref
headers. It sounds like you've got a fairly old spool and not all of your
articles have Xref headers. You'll need to add them. (Did you import an
old spool into your 2.2 system?)
The following script may help. (Note that to try again, you'll need to
wipe the history on your new server if possible, or otherwise remove the
entries added by the failed attempt.)
#!/usr/bin/perl
$ID = q$Id: fixref,v 1.1 2001/01/10 11:27:37 eagle Exp $;
#
# fixref -- Fix the Xref headers in a tree of news articles.
#
# Written by Russ Allbery <rra@stanford.edu>
# Copyright 2000 Board of Trustees, Leland Stanford Jr. University
#
# Copy a tree of traditional spool news articles, fixing the Xref headers as
# we go. Add Xref headers if missing (based on the path to the article),
# and if an Xref header is present, trim out hierarchies other than those
# given on the command line.
#
# Usage: fixref -a <hierarchy-pattern> <from> <to> <hierarchy>
use strict;
use vars qw($ALLOW $COUNT %DONE $FROM $ID $TO);
use File::Find qw(find);
use File::Path qw(mkpath);
use Getopt::Long qw(GetOptions);
sub copy {
return unless -f $_;
return unless /^\d+$/;
my $path = $File::Find::dir;
$path =~ s%^\Q$FROM\E/*%%;
open (SRC, "< $_") or die "Can't open $File::Find::name: $!\n";
mkpath ("$TO/$path", 0, 0755) unless $DONE{$path}++;
open (DST, "> $TO/$path/$_") or die "Can't open $TO/$path/$_: $!\n";
my $header = 1;
my $havexref = 0;
while ($header) {
my $line = <SRC>;
if ($line =~ /^Xref: /) {
if ($ALLOW) {
my ($xref, $server, @groups) = split (' ', $line);
@groups = grep { /$ALLOW/ } @groups;
$line = join (' ', $xref, $server, @groups) . "\n";
}
$havexref = 1;
} elsif ($line =~ /^[\r\n]*$/) {
unless ($havexref) {
my $group = $path;
$group =~ tr%/%.%;
$group .= ":$_";
print DST "Xref: fixref $group\n";
}
$header = 0;
}
print DST $line;
}
local $_;
print DST while <SRC>;
close SRC;
close DST or die "Can't flush $TO/$path/$_: $!\n";
print "$COUNT articles processed\n" if ((++$COUNT % 100) == 0);
}
GetOptions ('allow|a=s' => \$ALLOW) or exit 1;
my $hierarchy;
($FROM, $TO, $hierarchy) = @ARGV;
die "Usage: fixref [-a <allow>] <from> <to> <hierarchy>\n"
unless $hierarchy;
find (\©, "$FROM/$hierarchy");
--
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: innxmit errors
Author: Tricia Sesar
Date: Tue, 27 Aug 2002 09:11
Date: Tue, 27 Aug 2002 09:11
105 lines
4699 bytes
4699 bytes
Russ Allbery wrote:
> Tricia Sesar <trixee@rcn.com> writes:
>
> > I am using innxmit to transfer articles from a 2.2 server to a 2.3.2
> > server. Both servers store articles using tradspool.
>
> > From the FAQ:
>
> > 1. ctlinnd param c 0
> > 2. xrefslave true ; restart INND
> > 3. cd pathdb; perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n if
> > $_' history | tr . / > pathoutgoing/list
> > 4. innxmit <destination server> list
>
> > While I'm running innxmit, I am tailing the pathnews/news file and all
> > articles arrive with the following error:
>
> > 437 Invalid Xref Header ""
>
> Unfortunately, that technique only works if all the articles have Xref
> headers. It sounds like you've got a fairly old spool and not all of your
> articles have Xref headers. You'll need to add them. (Did you import an
> old spool into your 2.2 system?)
>
> The following script may help. (Note that to try again, you'll need to
> wipe the history on your new server if possible, or otherwise remove the
> entries added by the failed attempt.)
>
> #!/usr/bin/perl
> $ID = q$Id: fixref,v 1.1 2001/01/10 11:27:37 eagle Exp $;
> #
> # fixref -- Fix the Xref headers in a tree of news articles.
> #
> # Written by Russ Allbery <rra@stanford.edu>
> # Copyright 2000 Board of Trustees, Leland Stanford Jr. University
> #
> # Copy a tree of traditional spool news articles, fixing the Xref headers as
> # we go. Add Xref headers if missing (based on the path to the article),
> # and if an Xref header is present, trim out hierarchies other than those
> # given on the command line.
> #
> # Usage: fixref -a <hierarchy-pattern> <from> <to> <hierarchy>
>
> use strict;
> use vars qw($ALLOW $COUNT %DONE $FROM $ID $TO);
>
> use File::Find qw(find);
> use File::Path qw(mkpath);
> use Getopt::Long qw(GetOptions);
>
> sub copy {
> return unless -f $_;
> return unless /^\d+$/;
> my $path = $File::Find::dir;
> $path =~ s%^\Q$FROM\E/*%%;
> open (SRC, "< $_") or die "Can't open $File::Find::name: $!\n";
> mkpath ("$TO/$path", 0, 0755) unless $DONE{$path}++;
> open (DST, "> $TO/$path/$_") or die "Can't open $TO/$path/$_: $!\n";
> my $header = 1;
> my $havexref = 0;
> while ($header) {
> my $line = <SRC>;
> if ($line =~ /^Xref: /) {
> if ($ALLOW) {
> my ($xref, $server, @groups) = split (' ', $line);
> @groups = grep { /$ALLOW/ } @groups;
> $line = join (' ', $xref, $server, @groups) . "\n";
> }
> $havexref = 1;
> } elsif ($line =~ /^[\r\n]*$/) {
> unless ($havexref) {
> my $group = $path;
> $group =~ tr%/%.%;
> $group .= ":$_";
> print DST "Xref: fixref $group\n";
> }
> $header = 0;
> }
> print DST $line;
> }
> local $_;
> print DST while <SRC>;
> close SRC;
> close DST or die "Can't flush $TO/$path/$_: $!\n";
> print "$COUNT articles processed\n" if ((++$COUNT % 100) == 0);
> }
>
> GetOptions ('allow|a=s' => \$ALLOW) or exit 1;
> my $hierarchy;
> ($FROM, $TO, $hierarchy) = @ARGV;
> die "Usage: fixref [-a <allow>] <from> <to> <hierarchy>\n"
> unless $hierarchy;
> find (\©, "$FROM/$hierarchy");
>
> --
> 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.
Thanks! But, could you explain the command line switches to me? I'm a bit
confused.
Re: innxmit errors
Author: Russ Allbery
Date: Tue, 27 Aug 2002 16:46
Date: Tue, 27 Aug 2002 16:46
19 lines
1724 bytes
1724 bytes
Tricia Sesar <trixee@rcn.com> writes:
> Thanks! But, could you explain the command line switches to me? I'm a
> bit confused.
Unless you want to exclude some hierarchies, you just say:
fixref /path/to/old/spool /path/to/new/spool newsgroup/name
where the last argument is the name of the newsgroup with dots replaced
with slashes, and the first two arguments are the top directory of
traditional news spools (the second may be empty; fixref will create it).
--
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: innxmit errors
Author: FrustratedNews
Date: Tue, 24 Sep 2002 15:17
Date: Tue, 24 Sep 2002 15:17
23 lines
1708 bytes
1708 bytes
On Tue, 27 Aug 2002 09:46:48 -0700, Russ Allbery <rra@stanford.edu> wrote: >Tricia Sesar <trixee@rcn.com> writes: > >> Thanks! But, could you explain the command line switches to me? I'm a >> bit confused. > >Unless you want to exclude some hierarchies, you just say: > > fixref /path/to/old/spool /path/to/new/spool newsgroup/name > >where the last argument is the name of the newsgroup with dots replaced >with slashes, and the first two arguments are the top directory of >traditional news spools (the second may be empty; fixref will create it). Can this script of yours be used to take entries from the time-00/bla/bla format and import them into a newly created traditional spool format??
Re: innxmit errors
Author: FrustratedNews
Date: Tue, 24 Sep 2002 15:45
Date: Tue, 24 Sep 2002 15:45
42 lines
2321 bytes
2321 bytes
On Tue, 24 Sep 2002 11:17:04 -0400, FrustratedNews <> wrote: >On Tue, 27 Aug 2002 09:46:48 -0700, Russ Allbery <rra@stanford.edu> >wrote: > >>Tricia Sesar <trixee@rcn.com> writes: >> >>> Thanks! But, could you explain the command line switches to me? I'm a >>> bit confused. >> >>Unless you want to exclude some hierarchies, you just say: >> >> fixref /path/to/old/spool /path/to/new/spool newsgroup/name >> >>where the last argument is the name of the newsgroup with dots replaced >>with slashes, and the first two arguments are the top directory of >>traditional news spools (the second may be empty; fixref will create it). > > >Can this script of yours be used to take entries from the >time-00/bla/bla format and import them into a newly created >traditional spool format?? > Never mind to THIS one as well!!! Sheeeesh.. OK new rule here... Going to do the research BEFORE i ask the questions.. :^) Thanx Russ A. Your FAQ gave me all the info I needed to know.. Had to figure out a few things on my own (adding the old servers to the incoming.conf on the NEW server for one) but hey, that's what makes learning so fun.. :) Thanx again..
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