🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Sqwertz Sun, 24 Jun 2012 19:28
Dialog: Import/export newsrc
#250646
Author: Sqwertz
Date: Sun, 24 Jun 2012 19:28
11 lines
1651 bytes
Is there anyw ay to import/export the list of subscribed groups?  I'd
like to reinstall Dialog (I suspect database corruption) but don't
want to have to manually subscribe to all the groups again.

Extra bonus points if it can preserve my categories.

Is there a better way to zap the databases clean and zero them out
completely?  I tried "Clear Groups" one time followed by "Compact
Databases" but there were still several large message files.

-sw
Re: Dialog: Import/export newsrc
#250644
Author: Bernd Rose
Date: Sun, 24 Jun 2012 20:48
60 lines
4259 bytes
On Sun, 24 Jun 2012 14:28:42 -0500, Sqwertz wrote:

> Is there anyw ay to import/export the list of subscribed groups?  
[...]
> Extra bonus points if it can preserve my categories.

This is not possible. The Dialog database uses index numbers for 
nearly everything. The index numbers stored for your subscribed
groups as well as for your categories would point at the group
with the same number inside the *new* combined group list of
all servers you newly subscribed to.

*Always* use the *whole* Data folder of an earlier installation
or a clean Data from fresh install. *Never* mix! (The same applies
to restoration of backups, btw.: *Never* copy only part of the
backup into an existing Data folder, since group numbers may have 
changed. Or extra files for a group (that are not present in the
backup) may provide wrong pointers to messages inside the group.

> Is there a better way to zap the databases clean and zero them out
> completely?  I tried "Clear Groups" one time followed by "Compact
> Databases" but there were still several large message files.

"Clear groups" only deletes content from selected *newsgroups*.
If you want to clear the whole database, you also need to delete
all messages from all *folders*. This can only be done, manually
(folder by folder). Be sure, that you have the view set to show
"All messages" (<Ctrl+F1>) and that you have unset all "Keep" 
flags. While messages with "Keep" flag /are/ deleted by the 
"Clear groups" command, they are /not/ by normal delete. 

I usually select all messages inside a folder, hit "k" to toggle
the "Keep" flag for all selected messages. Depending on the last
selected record, now all or no messages carry the "Keep" flag.
If the flag is set, another "k" hit will unset it. Now hitting
DEL should remove all messages for good, provided there is no
filter set...

And be sure, that you never unsubscribed a group while keeping
some messages inside it. (That's supported by Dialog.) Best to
select /everything/ inside the "All" category. (Select the first
group - probably a spacer - and hit <Shift+End>. Then execute the
"Clear groups" command on the selection. Please note, that the
display is likely to not being properly updated after this. So
you should wait until the disk activity ceases and switch to
another category to see, whether the task was finished.)

When you cleared all groups and deleted every message from every
folder (including Outbox, Sent, Drafts, and all Inboxes), you
can run "Compact Database". If you wish to ditch a server, do 
this beforehand, as well. 

Now, only /one/ msg.dat file (containing only a 4-byte header)
should be left inside Data. If you still have msg*.dat files
with numbers (msg1.dat, msg2.dat,...) or if msg.dat is bigger
then 4 bytes, you either did not delete /all/ messages, drafts,
sent items,... or your database is corrupt beyond repair.

HTH.
Bernd
Re: Dialog: Import/export newsrc
#250659
Author: Sqwertz
Date: Wed, 27 Jun 2012 01:18
77 lines
5141 bytes
On Sun, 24 Jun 2012 22:48:50 +0200, Bernd Rose wrote:

> On Sun, 24 Jun 2012 14:28:42 -0500, Sqwertz wrote:
> 
>> Is there anyw ay to import/export the list of subscribed groups?  
> [...]
>> Extra bonus points if it can preserve my categories.
> 
> This is not possible. The Dialog database uses index numbers for 
> nearly everything. The index numbers stored for your subscribed
> groups as well as for your categories would point at the group
> with the same number inside the *new* combined group list of
> all servers you newly subscribed to.
> 
> *Always* use the *whole* Data folder of an earlier installation
> or a clean Data from fresh install. *Never* mix! (The same applies
> to restoration of backups, btw.: *Never* copy only part of the
> backup into an existing Data folder, since group numbers may have 
> changed. Or extra files for a group (that are not present in the
> backup) may provide wrong pointers to messages inside the group.
> 
>> Is there a better way to zap the databases clean and zero them out
>> completely?  I tried "Clear Groups" one time followed by "Compact
>> Databases" but there were still several large message files.
> 
> "Clear groups" only deletes content from selected *newsgroups*.
> If you want to clear the whole database, you also need to delete
> all messages from all *folders*. This can only be done, manually
> (folder by folder). Be sure, that you have the view set to show
> "All messages" (<Ctrl+F1>) and that you have unset all "Keep" 
> flags. While messages with "Keep" flag /are/ deleted by the 
> "Clear groups" command, they are /not/ by normal delete. 
> 
> I usually select all messages inside a folder, hit "k" to toggle
> the "Keep" flag for all selected messages. Depending on the last
> selected record, now all or no messages carry the "Keep" flag.
> If the flag is set, another "k" hit will unset it. Now hitting
> DEL should remove all messages for good, provided there is no
> filter set...
> 
> And be sure, that you never unsubscribed a group while keeping
> some messages inside it. (That's supported by Dialog.) Best to
> select /everything/ inside the "All" category. (Select the first
> group - probably a spacer - and hit <Shift+End>. Then execute the
> "Clear groups" command on the selection. Please note, that the
> display is likely to not being properly updated after this. So
> you should wait until the disk activity ceases and switch to
> another category to see, whether the task was finished.)
> 
> When you cleared all groups and deleted every message from every
> folder (including Outbox, Sent, Drafts, and all Inboxes), you
> can run "Compact Database". If you wish to ditch a server, do 
> this beforehand, as well. 
> 
> Now, only /one/ msg.dat file (containing only a 4-byte header)
> should be left inside Data. If you still have msg*.dat files
> with numbers (msg1.dat, msg2.dat,...) or if msg.dat is bigger
> then 4 bytes, you either did not delete /all/ messages, drafts,
> sent items,... or your database is corrupt beyond repair.

Thanks.  I cleared out everything after making a backup and the
problem still exists.  I have traced it back to a problem with my news
server.  Articles are being numbered out of sequence and are appearing
out the range of Dailog's LocalMsgHigh and the server's ServerMsgHigh
markers on successive header/XOVER retrievals.

What is the usual name of the optional header server supplied header
that reads something like:

Unknown-Header: news.software.readers <serverassignedarticle#>
[crossposted-group <article#>]

And why does readnews.net sometimes supply that header and sometimes
not.  They seem to have switched back and forth providing it or not
several times.

-sw
Re: Dialog: Import/export newsrc
#250667
Author: Bernd Rose
Date: Wed, 27 Jun 2012 17:20
49 lines
3703 bytes
On Tue, 26 Jun 2012 20:18:53 -0500, Sqwertz wrote:

>>> Is there a better way to zap the databases clean and zero them out
>>> completely?  I tried "Clear Groups" one time followed by "Compact
>>> Databases" but there were still several large message files.
>> 
>> "Clear groups" only deletes content from selected *newsgroups*.
>> If you want to clear the whole database, you also need to delete
>> all messages from all *folders*. 
[...]
> Thanks.  I cleared out everything after making a backup and the
> problem still exists.  I have traced it back to a problem with my news
> server.  Articles are being numbered out of sequence and are appearing
> out the range of Dailog's LocalMsgHigh and the server's ServerMsgHigh
> markers on successive header/XOVER retrievals.

Huh? /What/ problem does still exist? Problems in article numbering
on server do not influence the possibility of successfully flushing
the whole database content.

Server-side article numbering isn't bound to be consistent. Most news
servers are in fact server farms, that may have inconsistencies in
article numbering. Retrieving MsgHigh by GROUP command my get you
a high value from one server, that the next server can not fulfill
when questioned by XOVER. Therefore, Dialog tries 2nd chance XOVER
for the latest unretrieved articles until it either finally gets
them or they are followed by enough later articles to regard them
as obsolete.

> What is the usual name of the optional header server supplied header
> that reads something like:
> 
> Unknown-Header: news.software.readers <serverassignedarticle#>
> [crossposted-group <article#>]
> 
> And why does readnews.net sometimes supply that header and sometimes
> not.  They seem to have switched back and forth providing it or not
> several times.

I don't understand the question. There shouldn't be a header of the
name "news.software.readers" requested by Dialog or provided by a
server. Never. (The newsgroup name appears in the headers only in
the Newsgroups header or maybe in X-... headers.)

There shouldn't occur a request of a stub (like "<article#>" instead
of the actual number), either. Therefore, I don't know what you're
talking about.

Bernd
Re: Dialog: Import/export newsrc
#250694
Author: Sqwertz
Date: Fri, 29 Jun 2012 12:16
69 lines
4764 bytes
On Wed, 27 Jun 2012 19:20:21 +0200, Bernd Rose wrote:

> On Tue, 26 Jun 2012 20:18:53 -0500, Sqwertz wrote:
> 
>>>> Is there a better way to zap the databases clean and zero them out
>>>> completely?  I tried "Clear Groups" one time followed by "Compact
>>>> Databases" but there were still several large message files.
>>> 
>>> "Clear groups" only deletes content from selected *newsgroups*.
>>> If you want to clear the whole database, you also need to delete
>>> all messages from all *folders*. 
> [...]
>> Thanks.  I cleared out everything after making a backup and the
>> problem still exists.  I have traced it back to a problem with my news
>> server.  Articles are being numbered out of sequence and are appearing
>> out the range of Dailog's LocalMsgHigh and the server's ServerMsgHigh
>> markers on successive header/XOVER retrievals.
> 
> Huh? /What/ problem does still exist? Problems in article numbering
> on server do not influence the possibility of successfully flushing
> the whole database content.

I suspected database corruption due to some weird problems and wanted
to clean out the database, but I tracked it down to a problem with the
server.  That's all I was trying to say.

> Server-side article numbering isn't bound to be consistent. Most news
> servers are in fact server farms, that may have inconsistencies in
> article numbering. Retrieving MsgHigh by GROUP command my get you
> a high value from one server, that the next server can not fulfill
> when questioned by XOVER.

There should be only be one numbering server per farm.  If it gives me
headers 50-60 at 1:00am, it should not number newer articles with #40
and #45 at 1:30am.  Because newsreaders will never know to go back and
retrieve them.

> Therefore, Dialog tries 2nd chance XOVER
> for the latest unretrieved articles until it either finally gets
> them or they are followed by enough later articles to regard them
> as obsolete.

Sometimes I retrieve headers in high traffic groups more often than I
probably should coupled with the fact that the lag on my server
catching up on filling in those gaps in XOVER are longer than normal
for missing articles - tens of minutes, not seconds.

>> What is the usual name of the optional server-supplied header
>> that reads something like:
>> 
>> <Unknown-Header>: news.software.readers <article#> [crossposted-group <article#>]
> 
> I don't understand the question. There shouldn't be a header of the
> name "news.software.readers" requested by Dialog or provided by a
> server. Never. (The newsgroup name appears in the headers only in
> the Newsgroups header or maybe in X-... headers.)

It's Xref I was thinking of (now does it make sense? I was having a
blonde moment).  Sometimes my servers have this header available,
sometimes not.  It seems to be  switch they throw every few months or
so, because I have seen it for long stretches of time, and then poof -
I don't see it them for a long time (This may explain why crosspost
management rarely works for me).

Anyway - it would be nice to have those consistently to help debug
article numbering problems.  Not a Dialog problem, I know (unless it's
just not showing it to me).

-sw
Re: Dialog: Import/export newsrc
#250696
Author: Bernd Rose
Date: Fri, 29 Jun 2012 18:15
78 lines
5488 bytes
On Fri, 29 Jun 2012 07:16:36 -0500, Sqwertz wrote:

>> Server-side article numbering isn't bound to be consistent. Most news
>> servers are in fact server farms, that may have inconsistencies in
>> article numbering. Retrieving MsgHigh by GROUP command my get you
>> a high value from one server, that the next server can not fulfill
>> when questioned by XOVER.
> 
> There should be only be one numbering server per farm.  If it gives me
> headers 50-60 at 1:00am, it should not number newer articles with #40
> and #45 at 1:30am.  

Apart from hard server errors (like crash/recover from older backup,
misbehaving Sporge filters,...) there may be inconsistencies in a
way, that you get MsgHigh=60 on GROUP command. The first XOVER may
land on a server on the farm, that doesn't carry articles 40..55, 
but has 56..60. (Because of quick purge or whatever other reason.)
On subsequent 2nd chance XOVER queries, you may eventually land on
a server of that farm, that has longer retention. Now you suddenly
get article headers for 40..55, as well. A GROUP command on that
server may come back with sth. like 57 for MsgHigh; even when quite
some time went by since you got the 60 from another server of the
same farm. This just means, that the latter server didn't catch up
until now.

Server farms consisting only of servers, that are /always/ exact 
mirrors of each other are nothing, but a nice ideal. "Reality" is
likely to happen much more often.

> newsreaders will never know to go back and retrieve them.

But they do. That's what 2nd chance XOVER is written for. And if
the gaps grow too large, you can always use <Sample Headers> for
a group. IIRC, the locally stored server-MsgHigh will be adjusted
even downwards after a Sample operation by Dialog. (Assuming, that
the server-side article numbering was reset out of whatever reason.)

> Sometimes I retrieve headers in high traffic groups more often than I
> probably should coupled with the fact that the lag on my server
> catching up on filling in those gaps in XOVER are longer than normal
> for missing articles - tens of minutes, not seconds.

That may be a problem, because when you get twice in a row to a
server with the newest - but missing older - articles (whatever 
the reason for that lack of older articles is) and that server has
a higher MsgHigh on the second attempt, then the missing older
articles are removed from queue for 2nd chance XOVER. Then you'd
/need/ to use <Sample Headers> to eventually get them. Provided,
these articles have not been canceled inbetween, in the first place. 
 
>>> <Unknown-Header>: news.software.readers <article#> [crossposted-group <article#>]
>> 
>> I don't understand the question. There shouldn't be a header of the
>> name "news.software.readers" requested by Dialog or provided by a
>> server. Never. (The newsgroup name appears in the headers only in
>> the Newsgroups header or maybe in X-... headers.)
> 
> It's Xref I was thinking of (now does it make sense? I was having a
> blonde moment).  Sometimes my servers have this header available,
> sometimes not.  It seems to be  switch they throw every few months or
> so, because I have seen it for long stretches of time, and then poof -
> I don't see it them for a long time (This may explain why crosspost
> management rarely works for me).

XRef is optional for the server. Not only setting it correctly 
is optional, but every kind of maintenance, as well. If you are 
talking about XRef, the first field after the colon should be
the last server name, that inserted or altered that header. So
take a look, whether this is the same server that appears first
in the Path field. If not, the last server did not alter XRef,
at all. 

If XRef is sometimes set and sometimes not, this /can/ imply changes
in settings of the server. It can also mean different server-side 
settings of different servers of a server farm. And it can just mean, 
that the articles stem from different feeds.

Bernd
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