🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Diesis Wed, 04 Dec 2002 20:51
Articles not shown
#62218
Author: Diesis
Date: Wed, 04 Dec 2002 20:51
97 lines
4113 bytes
Hello folks.
Just upgrade a working installation of inn and have troubles.
The problem is that articles still being in patharticles are not shown by
nntp clients.
I think it's an expire problem.

Current inn version is (is there any way to find out this querying the
actual innd binary?):
$ rpm -qa | grep inn
inn-2.3.3-5

Things I think are relevants:

I want articles never deleted, because this is a mail2news gateway for
mailing lists:

$ cat expire.ctl | grep -v \^#
/remember/:never
*:A:never:never:never
0:never:never:never

$ cat storage.conf | grep -v \^#
method tradspool {
        newsgroups: *
        class: 0
}

innd.conf relevante parameters:

...
artcutoff:              0
hiscachesize:           0
atharchive:            /var/spool/news/archive
patharticles:           /var/spool/news/articles
pathbin:                /usr/lib/news/bin
pathcontrol:            /usr/lib/news/bin/control
pathdb:                 /var/lib/news
pathetc:                /etc/news
pathfilter:             /usr/lib/news/bin/filter
pathhttp:               /var/log/news
pathincoming:           /var/spool/news/incoming
pathlog:                /var/log/news
pathnews:               /usr/lib/news
pathoutgoing:           /var/spool/news/outgoing
pathoverview:           /var/spool/news/overview
pathrun:                /var/run/news
pathspool:              /var/spool/news
pathtmp:                /var/lib/news/tmp
...

Article are really present in patharticles subdirs.

I have made
# su -l news
$ makedbz -i
$ makehistory

and moved all .n history files to original names.

$ls /var/lib/news/
total 1380
drwxr-xr-x    3 news     news         4096 Dec  4 21:02 .
drwxr-xr-x   18 root     root         4096 Dec  4 00:19 ..
-rw-r--r--    1 news     news          352 Dec  3 16:09 active
-rw-r--r--    1 news     news          312 Nov 29 19:16 active.old
-rw-r--r--    1 news     news          225 Jul 23 11:02 active.rpmnew
-rw-r--r--    1 news     news          156 Nov 29 19:16 active.times
-rw-r--r--    1 news     news            0 Jul 23 11:02 active.times.rpmnew
-rw-r--r--    1 news     news           72 Jul 23 11:02 distributions
-rw-r--r--    1 news     news        45080 Dec  4 21:01 history
-rw-r--r--    1 news     news           43 Dec  4 21:02 history.dir
-rw-r--r--    1 news     news     60000000 Dec  4 21:02 history.hash
-rw-r--r--    1 news     news            0 Dec  4 21:02 history.index
-rw-r--r--    1 news     news      2000036 Dec  2 11:14 history.pag
-rw-r--r--    1 news     news          333 Jul 23 11:02 newsgroups
-rw-r--r--    1 news     news            0 Jul 23 11:02 subscriptions
drwxr--r--    2 news     news         4096 Dec  4 21:01 tmp

when connect with a client news.debug shows:
...
Dec  4 21:31:51 www nnrpd[3969]: host31 group lists.omnibook 0
Dec  4 21:31:51 www nnrpd[3969]: host31 group lists.openlabs 0
...

but articles are there.

Suggestions ?


As usual , many thanks

--
Gabriele
ITALY


Re: Articles not shown
#62222
Author: Jeffrey M. Vinocur
Date: Thu, 05 Dec 2002 00:04
46 lines
2174 bytes
In article <aslpnn$slq$1@newsreader.mailgate.org>,
Diesis <diesisme_this_is_for_spammers_@freemail.it> wrote:
>
>Just upgrade a working installation of inn and have troubles.

What version did you have before?


>The problem is that articles still being in patharticles are not shown by
>nntp clients.
>I think it's an expire problem.

Overview problem, rather.  An expire problem would result in the
articles being deleted from disk.


>Current inn version is (is there any way to find out this querying the
>actual innd binary?):

If you telnet to port 119, you get a nice banner...

>inn-2.3.3-5
>
>*:A:never:never:never
>0:never:never:never

You should only need one of these lines (check the manpage to see
how to find out which), but that's not your problem.


>$ makedbz -i
>$ makehistory
>
>and moved all .n history files to original names.

You should have done those in the opposite order -- you need
makedbz to rebuilt the history.* files from the newly-created
history file.  Also, you probably want -O with makehistory to
rebuild overview (and then `ctlinnd renumber ""` as soon as you
finish).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Articles not shown
#62236
Author: Diesis
Date: Thu, 05 Dec 2002 11:34
82 lines
3687 bytes
Thanks again for your suggestions !

> What version did you have before?
inn-2.2.3-3

> >The problem is that articles still being in patharticles are not shown by
> >nntp clients.
> >I think it's an expire problem.
> Overview problem, rather.  An expire problem would result in the
> articles being deleted from disk.
Thanks for pointing out this.

> >Current inn version is (is there any way to find out this querying the
> >actual innd binary?):
> If you telnet to port 119, you get a nice banner...
> >inn-2.3.3-5
Easy to remember ;). So it's not needed innd -v switch ;) ? Developers
always want to save code ...

> >*:A:never:never:never
> >0:never:never:never
> You should only need one of these lines (check the manpage to see
> how to find out which), but that's not your problem.

from
$ man expire.ctl
...
Most  of  the  lines  in this file will be in the second format, either
       four or five colon-separated fields as follows:
              classnum:keep:default:purge
       or
              pattern:modflag:keep:default:purge
       The former is used for class based expiry  which  means
``groupbaseex-
       piry''  in  inn.conf(5)  is ``false'', and the latter is used for
group
       based expiry which means ``groupbaseexpiry'' in inn.conf  is
``true''.
       Both formats can not coexist each other.

I verify:
$ cat /etc/news/inn.conf | grep groupbase
groupbaseexpiry:        true

So I need only
*:A:never:never:never

Is this right ? With this settings articles are never deleted ?
I noted that there is no warning from the news.debug log about the fact that
I have used both the formats.

> >$ makedbz -i
> >$ makehistory
> >and moved all .n history files to original names.
> You should have done those in the opposite order -- you need
> makedbz to rebuilt the history.* files from the newly-created
> history file.  Also, you probably want -O with makehistory to
> rebuild overview (and then `ctlinnd renumber ""` as soon as you
> finish).

Done this and everything now works perfectly !

Summary: it was an overview problem.

When you upgrade from one version of inn to another changing configuration
files, your articles may not be shown anymore.
Be sure you have enableoverview:true in inn.conf. If it is, you need to do
rebuild overview:

# su -l news
$ makehistory -O
$ makedbz -i
move all .n history files to original names.
$ ctlinnd renumber ""

May be say this ?

--
Diesis


Re: Articles not shown
#62240
Author: Jeffrey M. Vinocur
Date: Thu, 05 Dec 2002 15:50
38 lines
1967 bytes
In article <asndev$nlg$1@newsreader.mailgate.org>,
Diesis <diesisme_this_is_for_spammers_@freemail.it> wrote:
>
>Easy to remember ;). So it's not needed innd -v switch ;) ?

I don't know what the best way to find out the version is,
honestly.  It's something most people just know, in this case.


>$ cat /etc/news/inn.conf | grep groupbase
>groupbaseexpiry:        true
>
>So I need only
>*:A:never:never:never
>
>Is this right ? With this settings articles are never deleted ?

Yup.


>I noted that there is no warning from the news.debug log about the fact that
>I have used both the formats.

That is odd.  I glanced at the code and can't see why that would
be.


>When you upgrade from one version of inn to another changing configuration
>files, your articles may not be shown anymore.

Yes.  Did you read the section "Upgrading from 2.2 to 2.3" in the
NEWS file?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Articles not shown
#62241
Author: Diesis
Date: Thu, 05 Dec 2002 16:06
12 lines
1383 bytes
> Yes.  Did you read the section "Upgrading from 2.2 to 2.3" in the
> NEWS file?

Ooooooooh .... ;)
Changelogs rulez ...

--
Gabriele
ITALY


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