Article View: news.software.nntp
Article #87917Re: INN 2.5.6: ihave failed Can't set system Xref: header
From: Russ Allbery
Date: Sat, 02 Mar 2019 21:06
Date: Sat, 02 Mar 2019 21:06
112 lines
5992 bytes
5992 bytes
Etian <etian@sonic-news.com> writes:
> I'm trying to duplicate a spool from a machine running INN 2.5.3 onto a
> new installation of INN 2.5.6, using pullnews and xrefslave set to
> true. It was initially rejecting everything because of obsolete
> NNTP-posting-date header. I modified post.c to change the HEADER table
> types from HTobs back the HTstd as they were in 2.5.3. Now I'm getting
> "ihave failed Can't set system Xref: header" in the log file.
I'm fairly sure you have one or more of the following problems:
* pullnews is talking to nnrpd, not to innd. It's therefore being
interpreted as a posting agent, which has much stricter rules. The
modification you made to the HEADER table definitely indicates you have
this configured incorrectly, since it shouldn't be talking to that code
at all.
* pullnews in general is the wrong tool for this job. Use innxmit. (But
you still have to fix the problem that's causing nnrpd to be spawned
instead of innd.)
Also, note that INN 2.5 is no longer supported. The current stable
release of INN is 2.6.3.
Here's the FAQ entry for this, which provides a tested recipe for doing
this operation.
URL: <https://www.eyrie.org/~eagle/faqs/inn.html#S6.4>
Subject: 6.4. Feed all articles on a server to another server
To feed all articles on an existing server to another one, regardless of
how they're stored on the server, first tell the new server to accept
articles regardless of how old they are (otherwise, INN will reject
articles older than artcutoff in inn.conf) and disable your filtering:
ctlinnd param c 0
ctlinnd perl n
ctlinnd python n
You may also want to set xrefslave to true in inn.conf and then restart
INN on the new server if you want to keep the same article numbers as you
had on the old server. (It is notably helpful for news clients because
they otherwise get confused by an article renumbering in newsgroups they
are subscribed to.)
Next, make sure that the old server is listed in incoming.conf of the new
server, and reload incoming.conf with ctlinnd to pick up that change.
Also make sure that the new server carries exactly the same set of
newsgroups as the old server.
You may also want the new server not to propagate the articles it will
receive during this feeding operation, by checking that the newsfeeds
file of the new server is not configured to propagate articles to other
peers or controlchan (otherwise old control articles may be reprocessed).
Then try these commands (a variation on commands posted by Katsuhiro
Kondou to inn-workers) on the old server:
cd <pathdb in inn.conf>
perl -ne 'chomp; our ($hash, $timestamps, $_) = split " "; \
print "$_\n" if $_' history \
| tr . / > <pathoutgoing in inn.conf>/list
innxmit server list
where <pathdb> is the path to the directory containing the history file
(usually ~news/db), <pathoutgoing> is the path to the outgoing spool
directory (usually ~news/spool/outgoing), and server is the name of the
new news server to which you're feeding the articles.
In case you wish to only feed articles arrived on the old server
between two dates, you can adapt the previous commands. For instance,
the following commands will feed articles arrived between two given
timestamps (that can be computed with the convdate utility shipped
with INN).
convdate -n '15 Apr 2014 20:42 +0200' '16 Apr 2014 12:37 +0200'
returns the two corresponding timestamps 1397586540 and 1397644620 that
can then be used to retrieve a subset of articles to feed:
cd <pathdb in inn.conf>
perl -ne 'chomp; our ($hash, $timestamps, $_) = split " "; \
my ($arrived, $expires, $posted) = split("~", $timestamps); \
print "$_\n" if $_ and $arrived >= 1397586540 \
and $arrived <= 1397644620' history \
| tr . / > <pathoutgoing in inn.conf>/list
innxmit server list
If innxmit stops transferring articles (with for instance an error like
"rewriting batch file and exiting"), just re-execute it.
When done, set xrefslave to false in inn.conf again if you changed it and
then either restart INN on the new server (necessary if you changed
xrefslave) or use another ctlinnd param command to set the cutoff value
back to what's specified in inn.conf and use ctlinnd perl and ctlinnd
python to reactivate your filters.
Please note that when using xrefslave, this method requires that all of
the articles in your spool have Xref headers. Current versions of INN
will always add an Xref header, but very old versions (earlier 1.x
versions) will only add an Xref header to crossposted articles. If you're
trying to import such a spool, you'll need to modify all of those articles
to add an Xref header.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87tvgl9eb6.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<2ffab$5c7aeceb$a6b03a6e$1841@news.sonic-news.com>Show Full Headers
Complete Article Headers
Message-ID: <87tvgl9eb6.fsf@hope.eyrie.org> Subject: Re: INN 2.5.6: ihave failed Can't set system Xref: header Date: Sat, 02 Mar 2019 13:06:21 -0800 From: Russ Allbery <eagle@eyrie.org> References: <2ffab$5c7aeceb$a6b03a6e$1841@news.sonic-news.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 110 NNTP-Posting-Host: hope.eyrie.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: usenet.stanford.edu 1551560781 26553 166.84.7.155 (2 Mar 2019 21:06:21 GMT) X-Complaints-To: action@cs.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:jMBXVwa3XvDwqPGOe9xrVX+2q6U= X-Received-Bytes: 5810 X-Received-Body-CRC: 3802382558