🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261930

Re: How to recover from Windows 40Tude Dialog data corruption

#261930
From: Alexandre Janssens
Date: Thu, 06 Apr 2017 03:11
193 lines
8911 bytes
In <news:jsgz0z2oen96.dlg@b.rose.tmpbox.news.arcor.de>, Bernd Rose
<b.rose.tmpbox@arcor.de> wrote:

>> How to recover from the common 40Tude Dialog data corruption:
> 
> Following these suggestions is likely to produce an even more
> corrupted database.

I understand what you're intimating Bernd, but the fact is that you want to
recover your setup somehow, after a corruption occurs in dialog.

So the question is how to recover.
1. The hard way to recover is to start fresh.
2. The easier way to recover is to at least get back your setup.

The things that matter are your servers, logins, passwords, and categories
(I make extensive use of categories). 

What matters less are the groups you're subscribed to.

What doesn't matter at all are your sent messages, drafts, complete
grouplists, and current message lists, since they can all be regenerated
easily.

It's the initial setup, before any messages are downloaded, which is what
I'm trying to recover when dialog corrupts itself.

> Btw.: If corruption is "common", than sth.
> is wrong with the setup (faulty hardware, OS/driver defect or
> misconfiguration, UAC install folder,...) from beginning.

It's not a question of if a corruption will occur. It's a question of when.
I have been using Dialog for about five years and it gets corrupted on
various machines at a sporadic rate, but it has happened easily at least a
dozen times, maybe a score of times. 

>> One technique:
>> A. At initial setup, make a copy of the good data directory.
>>    The .\data\servers.dat file gives you back all your servers &
>> identities!
> 
> Contains just the initial state. Any later backup will contain
> a more current version, which is preferable, because it will also
> contain changed settings (SSL, port, pipelining, password).

I agree with you that servers.dat gives you your servers, ports, logins,
and passwords, which are critical to recover.

But I can't for the life of me yet figure out which file contains the
identities, and their settings (email, name, message id options, attribute
options, etc.).

Bernd: Do you know offhand what file contains the dialog identities?

> 
>>    The cat_{1,2,3,4,5}.cto file gives you (empty) category tabs.
> 
> cat_X.cto contains only *user defined* categories. Usually, there
> aren't any on initial setup. Again, restoring from the most current 
> backup is preferable to any "initial setup" state. Btw.: X starts 
> with 0 (not 1). 

Thanmks for reminding me that it starts with user-defined cateogyr
"cat_0.cto". I make extensive use of categories instead of using
subscriptions, where it takes about an hour just to manually set up the
categories.

When I brought back the cat_X.cto files, I only got the tabs with the
correct names, but I didn't get all the groups that were in each category.

Bernd: Do you know offhand what file contains the groups that are inside
each of the user-defined categories?
 
>>    The "groups.{idg,sdg,sub.idx} files handle the groups.
> 
> You missed alldsc.dss from the list of aggregate files of server
> information and the server-specific *.gtl files.

Thank you Bernd for suggesting the alldsc.dss and *.gtl files.
I saw them, but I wasn't successful recovering them. 

Are they the missing information?
1. What file contains the dialog identities?
2. What file contains the groups inside user-defined categories?

> Groups_sub.idx,
> OTOH, belongs to your earlier group of category tabs. It is the
> cat_X.cto equivalent for "Subscribed".

Aha! Maybe that's the answer to the question of what file contains the
groups that are assigned to each user-defined category!

>> B. At corruption time, make a copy of the corrupted data directory.
>> C. One by one replace the data files you think are corrupted.
> 
> If a database cleanup did occur between backup and this restore,
> then bricking the database by such a procedure is unavoidable. In
> all other cases, it is just likely. Please note: <Compact Database>
> *always* reorganizes the database. (Groups are likely to get other
> numbers, index positions and pointers change.) But it isn't the
> only cause for internal database changes.

Thank you for the warning about "compact database" always changing things
out from under us. I don't normally use that command. I'm just trying to
"fix" a corruption when it happens (because it will happen).

I think the better way to fix a corruption is to have a saved copy of the
initial setup. 

What's important to save (in this order) are:
1. Servers (servername, nntp port, logins, and passwords)
2. Identities (name & email & attribute lines mostly)
3. Categories (names plus the groups inside each user-defined category)

What's less important to save are:
4. Scripts (I have a couple of scripts which would be nice to save)

I think if I could save those 4 things by archiving the related data files,
then I could more easily recover from the dialog data corruption.

>> Tricks for getting back to where you were (depends on what was corrupted)
>> A. File > Update all database files
> 
> This command is obsolete. Its only function was to change internal
> database structures between an older database format to the (as of
> 2003/2004) current one.

Thank you Bernd for explaining that, essentially, the update doesn't really
do anything anymore.
 
>> B. Online > Update grouplists
> 
> That's of no importance. If you are about to look for new groups,
> you'll refresh the group list, anyways. Apart from that, it doesn't
> matter, if Dialog has current information about the groups hosted
> on the server(s) you subscribed to. If you have all your subscribed
> groups in your last (hopefully current) backup, that's all you'll
> need in your restore process.

Thank you Bernd for understanding that the least important thing to recover
is the group list, since it's easily updated.

I don't use the subscribed/unsubscribed process so for me, I only care
about the roughly dozen groups that are inside of each user-defined
category, of which I have about a dozen user-defined categories.

Of course I can manually re-create everything but I'm hoping for a way to
find the files that will re-create the initial setup.

>> C. File > Compact database
>> 
>> Hints:
>> A. When it corrupts, close Dialog (never copy files while Dialog is
>> running).
>> B. Why? Because some files will be overwritten or deleted when Dialog
>> closes!
> 
> Better Hint:
> *Never* copy/restore single files. Always backup the whole DATA folder.
> (Preferably after a <Compact Database> to keep the size small.)

Thank you Bernd. This is probably the best option of all.
How does this sound as insurance against dialog corruption?

1. Take about an hour to set up Dialog exactly as you want it to be.
2. Then compact the datbase & zip the "data & Scripts" directories.
3. When dialog corrupts, replace the data & Scripts directories.

>  Or at
> least always keep the latest automatic pre-Compact backup folder that
> Dialog creates. And if need be, completely replace the corrupt DATA
> folder by a backup of DATA. I.e.: Rename or delete the current DATA
> and copy the backup DATA folder as new DATA. (Do not just rename the 
> backup folder to DATA, in case you need it more than once...)

I think zipping the data backup should "protect" it enough so that it can
be re-used.
 
>> C. It's handy to have a process-killing app ready for when 40Tude Dialog
>> hangs.
> 
> Windows Task Manager (<Ctrl+Shift+Esc>) should do. One should keep in
> mind, though, that every killing may result in a corrupted database.

I understand. Dialog seems to write "something" to a few files when it
closes, so when it doesn't close gracefully, those files seem to get
corrupted.

> Therefore, killing the task must only be used as a last resort. 
> Afterwards, the cause of Dialog not responding should be investigated 
> and eliminated.

I wish I had those debugging skills.
Technical Details
Message-ID: <oc4bl0$phu$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <oc20ro$i7j$1@gioia.aioe.org> <jsgz0z2oen96.dlg@b.rose.tmpbox.news.arcor.de>

Show Full Headers
Complete Article Headers
Message-ID: <oc4bl0$phu$1@gioia.aioe.org>
Subject: Re: How to recover from Windows 40Tude Dialog data corruption
Date: Thu, 06 Apr 2017 03:11:28 +0000
From: Alexandre Janssens <AlexandredeBelgique@ozone.be>
References: <oc20ro$i7j$1@gioia.aioe.org> <jsgz0z2oen96.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Aioe.org NNTP Server
Lines: 193
NNTP-Posting-Host: EfqaXfDDOekzDszVy/A2VA.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.8.2
X-Received-Body-CRC: 2771111283
X-Received-Bytes: 8876