Thread View: news.software.nntp
6 messages
6 total messages
Started by Etian
Sat, 02 Mar 2019 20:51
INN 2.5.6: ihave failed Can't set system Xref: header
Author: Etian
Date: Sat, 02 Mar 2019 20:51
Date: Sat, 02 Mar 2019 20:51
17 lines
1773 bytes
1773 bytes
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 have also tried it with the xrefslave set to false, and I get the same message. I am however able to post successfully to the server. I have tried deleting and rebuilding the history and OVDB files. Nothing changed. I'm thinking of reinstalling it with 2.5.3. But I'm fairly sure I need to use an older version of Berkeley DB as well, if I do that.
Re: INN 2.5.6: ihave failed Can't set system Xref: header
Author: 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.
Re: INN 2.5.6: ihave failed Can't set system Xref: e Allbery <eagle@eyrie.org>
Author: Etian
Date: Sun, 03 Mar 2019 00:02
Date: Sun, 03 Mar 2019 00:02
26 lines
2357 bytes
2357 bytes
On 12/31/69 4:00 PM, Sat wrote:> 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. That does seem to be the likely problem, that nnrpd is answering the port instead of innd. I'm using an init.d script from a much older installation on Debian 7, that is supposed to bind innd on one address and nnrpd on another. I see they are both answering nnrpd (but it's funny that nnrpd will respond "send it" to an ihave statement). There must be an upgrade to that init.d script available somewhere, maybe a systemd script. I stated the version number incorrectly. I was using 2.6.2, but just now upgraded to 2.6.3 since I see that it has become available since I started working on this.
Re: INN 2.5.6: ihave failed Can't set system Xref: e Allbery <eagle@eyrie.org>
Author: Etian
Date: Sun, 03 Mar 2019 00:49
Date: Sun, 03 Mar 2019 00:49
11 lines
1359 bytes
1359 bytes
On 12/31/69 4:00 PM, Sat wrote: > > * pullnews is talking to nnrpd, not to innd. Boy do I feel stupid. I didn't put the new server address in the incoming conf file, just the old server address. With pullnews, inn sees the connection coming from itself.
Re: INN 2.5.6: ihave failed Can't set system Xref:
Author: Etian
Date: Mon, 04 Mar 2019 20:42
Date: Mon, 04 Mar 2019 20:42
27 lines
2440 bytes
2440 bytes
Russ Allbery <eagle@eyrie.org> wrote: > * 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.) innxmit was only sending 3Mbps. It would take years at that rate. I was hoping I could run multiple threads of pullnews each with a different set of groups, but pullnews doesn't like that. I suspect that the bottle neck is in writing the history, so multiple threads might not speed it up, even if I write my own script to do it. So now I'm trying to rsync the whole installation with cycbuffs on different multiple threads, after stopping new articles coming in. 3 threads fills up 500Mbps. I remember I had trouble copying cycbuffs last time I moved to a bigger spool. innxmit worked, but I had a much smaller spool at that time (7 years ago). The cycbuff header modification script cnfsheadconf was not working then, but seems to be OK now. I hope this works. I think I can modify the cycbuff headers to match their new directory location on the new spool. Then upgrade to 2.6.3 before starting the server. Anything I might be missing? Should the new version of Berkeley DB be OK with the old overview DB files, or should I do a complete makehistory rebuild of the overview database before starting it?
Re: INN 2.5.6: ihave failed Can't set system Xref:
Author: Russ Allbery
Date: Sat, 09 Mar 2019 20:09
Date: Sat, 09 Mar 2019 20:09
43 lines
2993 bytes
2993 bytes
Etian <etian@sonic-news.com> writes:
> innxmit was only sending 3Mbps. It would take years at that rate.
> I was hoping I could run multiple threads of pullnews each with a
> different set of groups, but pullnews doesn't like that. I suspect that
> the bottle neck is in writing the history, so multiple threads might not
> speed it up, even if I write my own script to do it.
Oh, I see, yeah, if you have a large spool...
> So now I'm trying to rsync the whole installation with cycbuffs on
> different multiple threads, after stopping new articles coming in. 3
> threads fills up 500Mbps.
....this is going to work a lot better. Note that in theory you should be
able to just upgrade the server in place, so you may only need to take a
backup in case something has gone wrong unless you have other reasons to
want to duplicate the spool.
> I remember I had trouble copying cycbuffs last time I moved to a bigger
> spool. innxmit worked, but I had a much smaller spool at that time (7
> years ago). The cycbuff header modification script cnfsheadconf was not
> working then, but seems to be OK now. I hope this works. I think I can
> modify the cycbuff headers to match their new directory location on the
> new spool. Then upgrade to 2.6.3 before starting the server.
> Anything I might be missing? Should the new version of Berkeley DB be
> OK with the old overview DB files, or should I do a complete makehistory
> rebuild of the overview database before starting it?
Honestly, I don't really know for certain. :/ I don't think BerkeleyDB
overview is very heavily used, and I'm not sure this specific upgrade path
is heavily tested. This could all use much better tools and automated
testing, sadly.
--
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.
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