This forum has been archived. All content is frozen. Please use KDE Discuss instead.

BIG PROBLEM!!!

Tags: None
(comma "," separated)
thibdb13
Registered Member
Posts
5
Karma
0
OS

BIG PROBLEM!!!

Sun Aug 22, 2010 10:14 am
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.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: BIG PROBLEM!!!

Sun Aug 22, 2010 3:18 pm
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. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: BIG PROBLEM!!!

Mon Aug 23, 2010 12:35 am
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
thibdb13
Registered Member
Posts
5
Karma
0
OS

Re: BIG PROBLEM!!!

Mon Aug 23, 2010 9:02 am
ipwizard wrote: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'


What do you mean by "file utility"?


thibdb13, proud to be a member of KDE forums since 2008-Oct.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: BIG PROBLEM!!!

Mon Aug 23, 2010 9:10 am
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. :-D
openSuSE Leap 15.4 64bit, KF5
thibdb13
Registered Member
Posts
5
Karma
0
OS

Re: BIG PROBLEM!!!

Mon Aug 23, 2010 7:09 pm
ipwizard wrote:The unix tool called 'file' which determines a file's type by looking at the file's contents (not the extension).

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.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: BIG PROBLEM!!!

Tue Aug 24, 2010 5:51 am
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. :-D
openSuSE Leap 15.4 64bit, KF5
thibdb13
Registered Member
Posts
5
Karma
0
OS

Re: BIG PROBLEM!!!

Tue Aug 24, 2010 6:51 pm
ipwizard wrote: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?

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.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: BIG PROBLEM!!!

Tue Aug 24, 2010 8:17 pm
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


Code: Select all
grep "<ACCOUNTS" Boekhouding.kmy
grep "<TRANSACTIONS" Boekhouding.kmy
grep "<PAYEES" Boekhouding.kmy


It should give you something like this (here my output):

Code: Select all
 <ACCOUNTS count="167">
 <TRANSACTIONS count="3742">
 <PAYEES count="194">


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. :-D
openSuSE Leap 15.4 64bit, KF5
thibdb13
Registered Member
Posts
5
Karma
0
OS

Re: BIG PROBLEM!!!

Wed Aug 25, 2010 6:39 pm
ipwizard wrote: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


Code: Select all
grep "<ACCOUNTS" Boekhouding.kmy
grep "<TRANSACTIONS" Boekhouding.kmy
grep "<PAYEES" Boekhouding.kmy


It should give you something like this (here my output):

Code: Select all
 <ACCOUNTS count="167">
 <TRANSACTIONS count="3742">
 <PAYEES count="194">


I guess if these numbers reflect your expectations it's not necessary to go back to a backup.

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.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: BIG PROBLEM!!!

Thu Aug 26, 2010 6:34 am
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. :-D
openSuSE Leap 15.4 64bit, KF5


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]