Thread View: news.software.nntp
17 messages
17 total messages
Started by Bjoern von Prollius
Fri, 20 Nov 2009 16:08
pullnews
Author: Bjoern von Prollius
Date: Fri, 20 Nov 2009 16:08
Date: Fri, 20 Nov 2009 16:08
33 lines
2209 bytes
2209 bytes
Hello, I had to migrate a local news server from a commercial product to INN. The INN is running smoothly so far, but now I am trying to get the messages from the old server fed into the new one. I am talking about 10 groups with each about 5 to 500 messages, so it's not a big thing. I tried pullnews on one group, but it doesn't work as expected. The messages seem to get downloaded from the upstream server, but the injection fails: 301 articles were offered to server on localhost 301 articles were refused The log says: Nov 20 16:39:57 inn innd: localhost connected 20 streaming allowed Nov 20 16:40:03 inn innd: localhost:20 closed seconds 6 accepted 0 refused 301 rejected 0 duplicate 0 accepted size 0 duplicate size 0 rejected size 0 I have no clue, why the message are refused, as neither pullnews nor the server are very talkative on this field... Any ideas where to look? Also, some groups have been renamed in the migration process (the above example concerns a non renamed group). Is there any chance of mapping groups from the upstream server to other groups on the downstream server? pullnews doesn't seem to support this. Thanks a lot, Björn
Re: pullnews
Author: Grant Taylor
Date: Fri, 20 Nov 2009 17:36
Date: Fri, 20 Nov 2009 17:36
31 lines
2294 bytes
2294 bytes
On 11/20/09 10:08, Bjoern von Prollius wrote: > The log says: > > Nov 20 16:39:57 inn innd: localhost connected 20 streaming allowed > Nov 20 16:40:03 inn innd: localhost:20 closed seconds 6 accepted 0 > refused 301 rejected 0 duplicate 0 accepted size 0 duplicate size 0 > rejected size 0 > > I have no clue, why the message are refused, as neither pullnews nor the > server are very talkative on this field... Any ideas where to look? I don't believe the messages are "rejected", rather they are "refused". Notice how it appears as if the name is before the value. Messages can be refused for many different reasons, age being the most likely one that is impacting you. You will need to temporarily disable max message age to allow the old messages to come in. > Also, some groups have been renamed in the migration process (the above > example concerns a non renamed group). Is there any chance of mapping > groups from the upstream server to other groups on the downstream > server? pullnews doesn't seem to support this. I believe there is a way to set up an alias of sorts, but I'm not sure how to do it. Grant. . . .
Re: pullnews
Author: Julien ÉLIE
Date: Fri, 20 Nov 2009 22:52
Date: Fri, 20 Nov 2009 22:52
54 lines
3299 bytes
3299 bytes
Hi Grant, >> Nov 20 16:39:57 inn innd: localhost connected 20 streaming allowed >> Nov 20 16:40:03 inn innd: localhost:20 closed seconds 6 accepted 0 >> refused 301 rejected 0 duplicate 0 accepted size 0 duplicate size 0 >> rejected size 0 >> >> I have no clue, why the message are refused, as neither pullnews nor the >> server are very talkative on this field... Any ideas where to look? > > I don't believe the messages are "rejected", rather they are "refused". Notice how it appears as if the name is before the value. > > Messages can be refused for many different reasons, age being the most likely one that is impacting you. When an article is too old, it is a reject. A refusal is done only if the article is already known by the news server (that is to say if it has already seen the message-ID). So I believe that either the article is already in the newsgroup, or the article has already been sent *and rejected* (because of its date, as you suggest). Then, subsequent attempts to inject the article into innd will cause a refusal (article already seen). Björn, for your information, an history line is kept in the history during /remember/ days, as set in expire.ctl. > You will need to temporarily disable max message age to allow the old messages to come in. ctlinnd param c 0 and set it back to 10 after having injected your messages. >> Also, some groups have been renamed in the migration process (the above >> example concerns a non renamed group). Is there any chance of mapping >> groups from the upstream server to other groups on the downstream >> server? pullnews doesn't seem to support this. > > I believe there is a way to set up an alias of sorts, but I'm not sure > how to do it. Wouldn't it work with an alias group? ctlinnd newgroup local.target y ctlinnd newgroup local.alias =local.target -- Julien ÉLIE « -- Par Jupiter ! -- Par Toutatis ! -- Par pitié ! » (Astérix)
Re: pullnews
Author: Bjoern von Prollius
Date: Tue, 24 Nov 2009 09:09
Date: Tue, 24 Nov 2009 09:09
32 lines
2150 bytes
2150 bytes
Hi, thank you very much, that was exactly the information I needed. I'm still at the beginning of understanding how INN works... Julien ÉLIE schrieb: > So I believe [...] > the article has already been sent *and rejected* (because of its date, > as you suggest). That was the case - the first time I tried pullnews the articles were rejected, on subsequent runs refused. Also, there were no articles younger than "artcutoff" in the newsgroup I pulled from, so every article was rejected. > ctlinnd param c 0 This helped, pullnews worked after that - but some single messages were still refused. I will try to find out why. > ctlinnd newgroup local.target y > ctlinnd newgroup local.alias =local.target This also worked as charm! :) Is there a command to "clean up" a local group, deleting all messages? ctlinnd cancel <message-id> seems to be fitting, but can only be used on a single message. Regards, Björn
Re: pullnews
Author: Bjoern von Prollius
Date: Tue, 24 Nov 2009 10:00
Date: Tue, 24 Nov 2009 10:00
11 lines
1606 bytes
1606 bytes
Bjoern von Prollius schrieb: > This helped, pullnews worked after that - but some single messages were > still refused. I will try to find out why. It seems that the refused articles are crosspostings. They are only pulled once from the group listed first in .pullnews and refused for all other groups. Is there any way of restoring the crosslinks? Thanks, Björn
Re: pullnews
Author: Julien ÉLIE
Date: Tue, 24 Nov 2009 19:45
Date: Tue, 24 Nov 2009 19:45
16 lines
1827 bytes
1827 bytes
Hi Bjoern, > Is there a command to "clean up" a local group, deleting all messages? > ctlinnd cancel <message-id> > seems to be fitting, but can only be used on a single message. I would have liked to standardize "CANCEL msgid|range" :-) Note that when you cancel an article, it is still in the history file. -- Julien ÉLIE « Joli paradoxe : la femme est le chef-d'ouvre de Dieu, surtout quand elle a le Diable au corps. » (Alphonse Allais)
Re: pullnews
Author: Julien ÉLIE
Date: Tue, 24 Nov 2009 19:51
Date: Tue, 24 Nov 2009 19:51
16 lines
2012 bytes
2012 bytes
Hi Bjoern, > It seems that the refused articles are crosspostings. They are only > pulled once from the group listed first in .pullnews and refused for all > other groups. Is there any way of restoring the crosslinks? pullnews normally does not modify the Newsgroups: header of the article. What is the Newsgroups: header of one of your crosspostings accepted the first time? Doesn't it contain all the newsgroups? -- Julien ÉLIE « Joli paradoxe : la femme est le chef-d'ouvre de Dieu, surtout quand elle a le Diable au corps. » (Alphonse Allais)
Re: pullnews
Author: Bjoern von Prollius
Date: Tue, 24 Nov 2009 20:07
Date: Tue, 24 Nov 2009 20:07
16 lines
1863 bytes
1863 bytes
Hi Julien, Julien ÉLIE schrieb: > What is the Newsgroups: header of one of your crosspostings accepted > the first time? Doesn't it contain all the newsgroups? Yes, it does; the group names in the header are the original ones. The group names have changed server-sided though, but that can't be the problem, because I have fitting alias groups, and pullnews also shows that it tries to inject the messages into the appropriate group, but the message is refused by the server if it has been successfully injected to another group before. Greetings, Bjoern
Re: pullnews
Author: Bjoern von Prollius
Date: Tue, 24 Nov 2009 20:10
Date: Tue, 24 Nov 2009 20:10
10 lines
1521 bytes
1521 bytes
Julien ÉLIE schrieb: > Note that when you cancel an article, it is still in the history file. Can I delete the message files from the file system manually and then do a makehistory, or would that do harm and lead to any uncontrollable out-of-sync status :) ? Thanks, Björn
Re: pullnews
Author: Julien ÉLIE
Date: Tue, 24 Nov 2009 20:20
Date: Tue, 24 Nov 2009 20:20
24 lines
2434 bytes
2434 bytes
Hi Bjoern, >> What is the Newsgroups: header of one of your crosspostings accepted >> the first time? Doesn't it contain all the newsgroups? > > Yes, it does; the group names in the header are the original ones. The > group names have changed server-sided though, but that can't be the > problem, because I have fitting alias groups, and pullnews also shows > that it tries to inject the messages into the appropriate group, but the > message is refused by the server if it has been successfully injected to > another group before. Is the message present only in the first group on your server or in all the newsgroups marked (or aliased) in the Newsgroups: header? It is normal to have a refusal because the server already knows the message-ID of the article, when proposed a second time. -- Julien ÉLIE « The first entry of Sin into the mind occurs when, out of cowardice or conformity or vanity, the Real is replaced by a comforting lie. »
Re: pullnews
Author: Julien ÉLIE
Date: Tue, 24 Nov 2009 20:22
Date: Tue, 24 Nov 2009 20:22
18 lines
1991 bytes
1991 bytes
Hi Bjoern, >> Note that when you cancel an article, it is still in the history file. > > Can I delete the message files from the file system manually and then do > a makehistory, or would that do harm and lead to any uncontrollable > out-of-sync status :) ? You can use makehistory to rebuild both the history and the overview. See the man page of makehistory. Be sure INN is not running when you do that. -- Julien ÉLIE « Un père à son fils : « Finalement, ta mère et moi, on a été heureux pendant 25 ans. Après, on s'est rencontré... »
Re: pullnews
Author: Bjoern von Prollius
Date: Wed, 25 Nov 2009 12:46
Date: Wed, 25 Nov 2009 12:46
10 lines
1613 bytes
1613 bytes
Julien ÉLIE schrieb: > Is the message present only in the first group on your server or > in all the newsgroups marked (or aliased) in the Newsgroups: header? Only in the first group, and first means first listed in .pullnews. Regards, Björn
Re: pullnews
Author: Julien ÉLIE
Date: Wed, 25 Nov 2009 17:21
Date: Wed, 25 Nov 2009 17:21
23 lines
2302 bytes
2302 bytes
Hi Bjoern,
>> Is the message present only in the first group on your server or
>> in all the newsgroups marked (or aliased) in the Newsgroups: header?
>
> Only in the first group, and first means first listed in .pullnews.
I have just tested (with INN 2.5.1) and I do not manage to reproduce
the issue.
Could you try:
pullnews -r output.txt
and check if the messages are correct in the file. Then run
rnews output.txt
--
Julien ÉLIE
« -- Cet homme qui est sorti du palais, nous renseignera peut-être
sur la façon d'y entrer. Suivons-le.
-- Mais... Il sait sortir d'accord, mais rien ne prouve qu'il
sache entrer, et... » (Astérix)
Re: pullnews
Author: Bjoern von Prollius
Date: Thu, 26 Nov 2009 13:50
Date: Thu, 26 Nov 2009 13:50
22 lines
2086 bytes
2086 bytes
Julien ÉLIE schrieb: > Could you try: > pullnews -r output.txt > and check if the messages are correct in the file. Then run > rnews output.txt Actually that worked. All crosspostings are there. I now found out that I missed one group in my .pullnews file. This group contained only the crosspostings from other groups after the pullnews/rnews run. Another "normal" pullnews run fetched the missing messages. Still I don't now why the crosspostings were initially refused. I will try another cleanup of all groups later, then do a normal pullnews run and see if that works. Maybe there was something wrong with the history... Thank you very much, Björn
Re: pullnews
Author: Bjoern von Prollius
Date: Thu, 26 Nov 2009 13:51
Date: Thu, 26 Nov 2009 13:51
12 lines
1549 bytes
1549 bytes
Julien ÉLIE schrieb: > You can use makehistory to rebuild both the history and the overview. I did a # rm -rf /var/spool/news/articles/* and afterwards # makehistory -O -b and everything was clean. Thanks, Björn
Re: pullnews
Author: Bjoern von Prollius
Date: Thu, 26 Nov 2009 16:40
Date: Thu, 26 Nov 2009 16:40
13 lines
1995 bytes
1995 bytes
Bjoern von Prollius schrieb: > I will > try another cleanup of all groups later, then do a normal pullnews run I did that, and it worked. The crosspostings were still refused when injected a second time (as expected), but showed up in the appropriate groups. So probably the problem lay somewhere in the history or overview. Thanks again for your time, Julien, you were a great help! Regards, Björn
Re: pullnews
Author: Julien ÉLIE
Date: Thu, 26 Nov 2009 18:37
Date: Thu, 26 Nov 2009 18:37
16 lines
2211 bytes
2211 bytes
Hi Bjoern, > I did that, and it worked. The crosspostings were still refused when > injected a second time (as expected), but showed up in the appropriate > groups. So probably the problem lay somewhere in the history or overview. > > Thanks again for your time, Julien, you were a great help! You're welcome. Do not hesitate to ask in case you encounter other issues. -- Julien ÉLIE « Dulce et decorum est pro patria mori. » (Horace)
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