Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Miranda NG general talk => Topic started by: WarmBooter on 17 01 2015, 13:17:42

Title: Moving from Miranda IM - database problems
Post by: WarmBooter on 17 01 2015, 13:17:42
I'm trying to move from Miranda IM to NG. During the proccess, the database was checked, a lot of "duplicate events" were listed. Now that the migration is finished, I tried to check the database again, and it shows several lines as "Event position in the chain is not correct: unable to fix".

Is there anything that I can do to have a 100% ok database, without loosing all my history, users, etc?

Another question: seems that several groups that only contained Skype contacts (from SkypeClassic) are gone. Anything that I can do to preserve the groups and its contacts?

Thanks!
Title: Re: Moving from Miranda IM - database problems
Post by: watcher on 17 01 2015, 16:56:25
Please describe the process of migrating from IM to NG.
Title: Re: Moving from Miranda IM - database problems
Post by: ghazan on 17 01 2015, 16:57:33
you need to make a backup of the original profile first and run the dbtool over it, under Miranda IM.
only after it won't find any errors in the database you can run the upgrade, otherwise all suspicious events will be filtered out
Title: Re: Moving from Miranda IM - database problems
Post by: WarmBooter on 18 01 2015, 00:16:19
Please describe the process of migrating from IM to NG.

Copied all Miranda IM contents to new directory, installed the IM Updater plugin and ran Miranda.

Post Merge: 18 01 2015, 00:18:01
you need to make a backup of the original profile first and run the dbtool over it, under Miranda IM.
only after it won't find any errors in the database you can run the upgrade, otherwise all suspicious events will be filtered out

dbtool gives the same "duplicate events" errors (and also cannot fix them).
Title: Re: Moving from Miranda IM - database problems
Post by: AnrDaemon on 18 01 2015, 13:19:33
To reiterate: You should run Miranda-IM's own DBtool over your original, unmodified profile before attempting a migration.
Title: Re: Moving from Miranda IM - database problems
Post by: WarmBooter on 18 01 2015, 13:23:21
Yes, that's what I have done, and as I said, it also cannot fix the "duplicate events" errors. I can run it as many times I want, and it always reports the same problems (never fix them).

Post Merge: 18 01 2015, 13:37:46
Ok, here is some update to this case:

Seems that dbtools was able to fix the duplicate event errors. I guess the problem was that I need to run it as administrator, since the damn Windows 8.1 doesn't allow writing to files inside ProgramFiles dir (where my profile is). Wierd enough, dbtools never gave an error about being unable to write to the file... it was my pure guessing.

Anyway, the errors of "Event position in the chain is not correct" remains unfixed :(
Title: Re: Moving from Miranda IM - database problems
Post by: AnrDaemon on 18 01 2015, 20:15:36
Raising a question, why your profile is in ProgramFiles.
However, the "never gave an error" is easily explained by Virtualized Idiocy... erm, storage.

To disable Virtual Idiocy,
Code: [Select]
reg ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "EnableVirtualization" /t REG_DWORD /d 0then remove all the "%LocalAppData%\VirtualStore" directories and relog.
Title: Re: Moving from Miranda IM - database problems
Post by: WarmBooter on 19 01 2015, 00:19:05
Raising a question, why your profile is in ProgramFiles.
However, the "never gave an error" is easily explained by Virtualized Idiocy... erm, storage.

Well, I'm a long long time Miranda-IM user, and in the ancient times, afair, the default was to have the profile in a Miranda installation directory subfolder, creating a kind of "portable" installation. So, it is there since those days :)

Maybe it is time to move it to appdata or something like that.
Title: Re: Moving from Miranda IM - database problems
Post by: AnrDaemon on 19 01 2015, 01:30:42
- maybe.
It is long overdue.
Just install -NG into a new directory, launch it once and allow it to create a new database, so you don't need to guess the correct files location.
Title: Re: Moving from Miranda IM - database problems
Post by: WarmBooter on 19 01 2015, 12:06:21
No problem, I already "fixed" it. Seems that file was in the default location for the Win9x era, and I kept it while upgrading to newest Windows versions. Time has come to change to APPDATA.
Title: Re: Moving from Miranda IM - database problems
Post by: watcher on 19 01 2015, 13:24:37
WarmBooter, or keep the whole Miranda folder out of Program Files, on non-system disk, then you can keep profile inside Miranda's folder.