Registered Member
|
I upgraded some days ago KMyMoney from 3.98 to 4.5 (I am using Archlinux and the AUR repository).
When I started it, everything went OK, I saved my work and then closed it. A bug-message appeared but I didn't look at it, maybe a big mistake. Now I tried to open KMyMoney again and I got a message asking me which currency I Want to use. I confirmed the € and after this I got a empty file: all my data's were gone Could someone tell me how to recover my lost data's, if still possible???
thibdb13, proud to be a member of KDE forums since 2008-Oct.
|
KDE Developer
|
First of all: now you know what backups are for.
What is the size of the file? What does the 'file' utility think about the file? Should be something like 'gzip compressed data' or 'PGP message'
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Also, that seems to be a hardware problem. Better check your hard drive before suffering any more data loss events.
Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
|
Registered Member
|
What do you mean by "file utility"?
thibdb13, proud to be a member of KDE forums since 2008-Oct.
|
KDE Developer
|
The unix tool called 'file' which determines a file's type by looking at the file's contents (not the extension).
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
File says this: "Boekhouding.kmy: gzip compressed data, was "", from Unix, last modified: Sun Aug 22 11:47:45 2010" but I could also find it by reading the properties of this file. It does not really help...
thibdb13, proud to be a member of KDE forums since 2008-Oct.
|
KDE Developer
|
Proceed as follows:
- make a copy of the file (just to have a backup) and store it in a safe place (whatever you consider safe is OK) - rename the file "Boekhouding.kmy" into "Boekhouding.kmy.gz" - gunzip the file with "gunzip Boekhouding.kmy.gz" - take a look into the uncompressed file using "less Boekhouding.kmy" Now the questions: - Does it look like XML? - If not, what is the size of the file? - If it looks like XML, what does "xmllint --noout Boekhouding.kmy" say?
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Thanks for the answer. It does look like XML but xmllint --noout Boekhouding.kmy does not say anything... So what's next?? I am afraid I'll have to use an old backup...
thibdb13, proud to be a member of KDE forums since 2008-Oct.
|
KDE Developer
|
xmllint being quiet is a good sign, as there are no XML syntax errors.
what is the output of 'wc Boekhouding.kmy' It should present you three numbers which I am interested in. This should be done on the uncompressed file. Also, what is the output of the following commands
It should give you something like this (here my output):
I guess if these numbers reflect your expectations it's not necessary to go back to a backup.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Thanks again for the time you are spending on my problem . I do really appreciate it. So, here are the asked results: wc Boekhouding.kmy ==> 272 1988 21740 Boekhouding2.kmy grep "<ACCOUNTS" Boekhouding.kmy ==> <ACCOUNTS count="5"> grep "<TRANSACTIONS" Boekhouding.kmy ==> <TRANSACTIONS count="0"/> grep "<PAYEES" Boekhouding.kmy ==> <PAYEES count="0"/> yep, not that nice
thibdb13, proud to be a member of KDE forums since 2008-Oct.
|
KDE Developer
|
Looks like there is no data in the file. Did you override it by accident with a new file? Do these 5 account names resemble something you have entered before?
Anyway, time to look for your backup now.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]