🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Stephan Windmüller Thu, 30 Sep 2010 07:47
[INN] makehistory runs endlessly on small spool
#83456
Author: Stephan Windmüller
Date: Thu, 30 Sep 2010 07:47
31 lines
1966 bytes
Hello!

I am currently moving an old INN installation from one host to another.
Because there are different operating systems, I had to recompile INN on
the new machine.

The old version is 2.3.5 and I installed the same version, but I get
this on startup:

| innd: can't dbzinit /var/lib/news/history Numerical argument out of domain

So I decided to run makehistory as stated in the NEWS file:

% makehistory -b -f history.n -O -T/usr/local/news/tmp -l 600000

Unfortunately this runs endlessly, or in this case at least more than 12
hours. Compared to the spool size of 15MB this seemed too long for me.

Next try was running the same command with INN 2.4.6, but this only
gives me the messages

| makehistory: tradindex: index loop for entry 0
| makehistory: tradindex: index loop for entry 0

before running endlessly with high load, too.

Does anyone know how to fix this? And what is the "best" way to move
this setup?

TIA
 Stephan
Re: [INN] makehistory runs endlessly on small spool
#83457
Author: Jeffrey M. Vinocur
Date: Thu, 30 Sep 2010 10:23
29 lines
1984 bytes
In article <0T7943q6I2pjNv8%windy@speutel.de>,
Stephan Windmüller  <usenet-reply-2009@white-hawk.de> wrote:
>
>I am currently moving an old INN installation from one host to another.

Do you still have the original machine up and running?  If so,
our recommended procedure is to feed the articles over NNTP and
let the new machine build its own data structures as they come.

    http://www.eyrie.org/~eagle/faqs/inn.html#S6.4

Obviously you'd have to start with a fresh install on the new
machine.


>Because there are different operating systems, I had to recompile INN on
>the new machine. [...]

Boy!  It certainly shouldn't take that long for your size spool.
(I assume this is tradspool?)  I don't suppose makehistory will
cooperate if run without the -O flag?  If so you could use
tdx-util to take care of the overview generation.

If not...I think I'm too rusty to know what to suggest next!


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [INN] makehistory runs endlessly on small spool
#83458
Author: Stephan Windmüller
Date: Thu, 30 Sep 2010 11:14
24 lines
2029 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:

>>I am currently moving an old INN installation from one host to another.
> Do you still have the original machine up and running?  If so,
> our recommended procedure is to feed the articles over NNTP and
> let the new machine build its own data structures as they come.
>    http://www.eyrie.org/~eagle/faqs/inn.html#S6.4

Yes, the old server is still running. If everything fails, I can try
this. But will it change the behaviour of existing clients when
contacting the new server, for example read messages?

>>Because there are different operating systems, I had to recompile INN on
>>the new machine. [...]
> Boy!  It certainly shouldn't take that long for your size spool.
> (I assume this is tradspool?)  I don't suppose makehistory will
> cooperate if run without the -O flag?

It will. When I omit the flag, makehistory is done within seconds.

> If so you could use tdx-util to take care of the overview generation.

I will try this, thank you very much!
 Stephan
Re: [INN] makehistory runs endlessly on small spool
#83459
Author: Thomas Hochstein
Date: Thu, 30 Sep 2010 17:21
11 lines
1523 bytes
Stephan Windmüller schrieb:

> % makehistory -b -f history.n -O -T/usr/local/news/tmp -l 600000
>
> Unfortunately this runs endlessly, or in this case at least more than 12
> hours. 

Could you strace the process to see if it hangs? I had that once with
a corrupted history (or overview) file ...

-thh
Re: [INN] makehistory runs endlessly on small spool
#83464
Author: Russ Allbery
Date: Thu, 30 Sep 2010 21:45
20 lines
2001 bytes
Stephan Windmüller <usenet-reply-2009@white-hawk.de> writes:
> Jeffrey M. Vinocur <jeff@litech.org> wrote:

>> Do you still have the original machine up and running?  If so,
>> our recommended procedure is to feed the articles over NNTP and
>> let the new machine build its own data structures as they come.
>>    http://www.eyrie.org/~eagle/faqs/inn.html#S6.4

> Yes, the old server is still running. If everything fails, I can try
> this. But will it change the behaviour of existing clients when
> contacting the new server, for example read messages?

No, if you do it with Xref slaving enabled, it will keep all the same
article numbers.

-- 
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: [INN] makehistory runs endlessly on small spool
#83467
Author: Stephan Windmüller
Date: Fri, 01 Oct 2010 08:23
34 lines
2691 bytes
Thomas Hochstein <thh@inter.net> wrote:

>> % makehistory -b -f history.n -O -T/usr/local/news/tmp -l 600000
>> Unfortunately this runs endlessly, or in this case at least more than 12
>> hours. 
> Could you strace the process to see if it hangs? I had that once with
> a corrupted history (or overview) file ...

Of course. Here is the output:

chdir("/usr/local/news/db")             = 0
open("/usr/local/news/etc/overview.fmt", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=340, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b06eda49000
read(4, "##  $Revision: 1.3 $\n##  overvie"..., 4096) = 340
read(4, "", 4096)                       = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "##  $Revision: 1.3 $\n##  overvie"..., 4096) = 340
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2b06eda49000, 4096)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
open("/usr/local/news/spool/overview/group.index", O_RDWR|O_CREAT, 0664) = 4
fstat(4, {st_mode=S_IFREG|0664, st_size=131080, ...}) = 0
mmap(NULL, 131016, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0x2b06edc63000
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
open("/usr/local/news/db/active", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0664, st_size=7829, ...}) = 0
read(5, "control 0000000000 0000000001 n\n"..., 4096) = 4096

And here it hangs.

- Stephan
Re: [INN] makehistory runs endlessly on small spool
#83468
Author: Stephan Windmüller
Date: Fri, 01 Oct 2010 08:41
30 lines
2403 bytes
Russ Allbery <rra@stanford.edu> wrote:

>>> Do you still have the original machine up and running?  If so,
>>> our recommended procedure is to feed the articles over NNTP and
>>> let the new machine build its own data structures as they come.
>>>    http://www.eyrie.org/~eagle/faqs/inn.html#S6.4
>> Yes, the old server is still running. If everything fails, I can try
>> this. But will it change the behaviour of existing clients when
>> contacting the new server, for example read messages?
> No, if you do it with Xref slaving enabled, it will keep all the same
> article numbers.

I tried that, but something is still not right here.

The FAQ stated that I have to create all newsgroups of the old server on
the new one. So I created every newsgroup (>400) with "ctlinnd newgroup"

After the import with this message:

"closed seconds 193 accepted 2710 refused 0 rejected 7 ducplicate 7 [...]"

The server does rmgroup(?!) for many groups by itself:

| innd: p:my.groupname001
| innd: SERVER bad_newsfeeds no feeding sites
| innd: SERVER rmgroup my.groupname001

Load of the server is near 1000(!) because of all the rmgorup commands.

- Stephan
Re: [INN] makehistory runs endlessly on small spool
#83471
Author: Julien ÉLIE
Date: Fri, 01 Oct 2010 18:40
19 lines
2093 bytes
Hi Stephan,

> The server does rmgroup(?!) for many groups by itself:
>
> | innd: p:my.groupname001
> | innd: SERVER bad_newsfeeds no feeding sites
> | innd: SERVER rmgroup my.groupname001

Anything else running, like actsync, docheckgroups or mod-active?
Did you feed rmgroup control articles?

I otherwise do not understand how rmgroup could happen this way :-/

-- 
Julien ÉLIE

« La fin du monde est un sujet sérieux, surtout pour ceux
 qui s'y préparent. » (Filiu) 
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