Bug 368593 - KmyMoney File Not opening and gives error As " Please use an older version...."
Summary: KmyMoney File Not opening and gives error As " Please use an older version...."
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 4.8.0
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-11 13:38 UTC by Somoorthi P
Modified: 2017-09-14 12:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-13927-0.html (3.13 KB, text/html)
2016-09-11 14:08 UTC, Somoorthi P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Somoorthi P 2016-09-11 13:38:43 UTC
I am using KmyMoney (in Ubuntu) for my personal finance managment since last 4 years, after migrating from a legacy made finance software. With almost 10 to 12 years of data, it was working fine. But suddenly it is not opening and throwing the following error.
"File /media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy contains the old binary format used by KMyMoney. Please use an older version of KMyMoney (0.8.x) that still supports this format to convert it to the new XML based format."
Recently i made upgrade from 15.1 to 16.04 so along with ubuntu i also made a upgrade on KmyMoney from 4.7.2 to 4.8.0. 
After the upgrade, still it was working well for 10 days and suddenly it is started giving the error. I tried with previous versions also (4.6.4) but the error is repeating. Tried wthe same with windows version also. Still the same error. In windows no upgrade has been made.
Please help to recover the data. how to solve this error and open my kMymoney file.
2 years earlier backup kmy file i opened find it is opening.
Thanks in advance

Reproducible: Always

Steps to Reproduce:
1.Every time i open the file it is repeating
2.
3.

Actual Results:  
File /media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy contains the old binary format used by KMyMoney. Please use an older version of KMyMoney (0.8.x) that still supports this format to convert it to the new XML based format.

Expected Results:  
Instead of opening the file it is throwing the error.
Comment 1 Thomas Baumgart 2016-09-11 13:58:45 UTC
What is the output of the following commands

ls -l "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"*
file "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"
Comment 2 Somoorthi P 2016-09-11 14:08:50 UTC
Created attachment 101034 [details]
attachment-13927-0.html

Thanks for your immediate reply... the following are the results of the commands
paarkavin@Paarkavin:~$ ls -l "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"
-rwx------ 1 paarkavin paarkavin 590596 Sep  4 06:50 /media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy
paarkavin@Paarkavin:~$ file "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"
/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy: data
paarkavin@Paarkavin:~$ 

For your reference.
Thanks & Rgds
P.Somoorthi



      From: Thomas Baumgart via KDE Bugzilla <bugzilla_noreply@kde.org>
 To: somoorthi@yahoo.co.in 
 Sent: Sunday, 11 September 2016 7:28 PM
 Subject: [kmymoney4] [Bug 368593] KmyMoney File Not opening and gives error As " Please use an older vesion...."
   
https://bugs.kde.org/show_bug.cgi?id=368593

--- Comment #1 from Thomas Baumgart <tbaumgart@kde.org> ---
What is the output of the following commands

ls -l "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"*
file "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"
Comment 3 Thomas Baumgart 2016-09-11 14:17:57 UTC
At the end of the first command was an asterisk on purpose. Can you repeat that?

So what we know is that the file is 500K large but 'data' is not what I expected. What we don't know (yet) if you have backup files (see command above). Also, what is the output of the following command:

od -c "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy" | head
Comment 4 Somoorthi P 2016-09-11 14:31:36 UTC
(In reply to Thomas Baumgart from comment #3)
This is what i got
paarkavin@Paarkavin:~$ ls -l "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy"*
-rwx------ 1 paarkavin paarkavin 590596 Sep  4 06:50 /media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy
paarkavin@Paarkavin:~$ od -c "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy" | head
0000000 377 377   {   m 354   /   v   e   r   s   i   o   n   =   "   1
0000020 356   7 342   '   e   n   c   o   d   i   n   g   =   "   U   T
0000040   F 355   ?   "   ?   > 372 375   w   r   o   j   e   c 364   /
0000060   v   e   r   s   i   o   n   =   "   4   "   > 372 377   '   <
0000100   c   o 355 177   o   n   e   n 364   /   n   a   m   e   =   "
0000120   C   h   a   n   g   e   L   i   s   t   M   a   n   a   g   e
0000140   r   "   > 372 343 347 347   '   <   l   i   s 364   /   d   e
0000160   f   a   u   l   t   =   "   t   r   u   e 342   '   i   d   =
0000200   "   b   4   d   5   b   7   3   1   -   9   5 361   7   -   4
0000220   9   a   3   -   b   f   7   b   -   1   2   e   2 342   ?   9
paarkavin@Paarkavin:~$
Comment 5 Thomas Baumgart 2016-09-11 17:53:30 UTC
Ooops, something must have ruined your file. This does not look like a KMyMoney data file at all. Don't you have a backup of it at some other location? The auto backup feature seems to be turned off, too bad.
Comment 6 Somoorthi P 2016-09-12 08:14:30 UTC
NO i dont have a back up.
Is there a way to recover....
Comment 7 allan 2016-09-12 09:05:21 UTC
I fear not.  If you have no backup, then there is nothing from which to recover.  At least, now, do make sure you have enabled automatic backups - Settings>Configure KMyMoney>General>Global.  In addition, however, make a practice of saving a copy file each time you finish a session.
A possibly forlorn hope or two, however.  Do a file search of your system for *.kmy and *.kmy.* files.
Also, just in case your file is only partially corrupted, open your file in KMM , then Save as, and set the filter there to XML files.  Then, open that file in your browser, Firefox or whatever and look through the file to see if you can recognise any data as your missing data, hoping that perhaps just the beginning of the file is corrupted.

Allan
Comment 8 Jack 2016-09-12 16:35:49 UTC
From the piece of the file shown in Comment 4, it does not look like anything I would expect in a KMM file.  You might try running 'strings "/media/paarkavin/Paarkavin/Ex1/YaArO/yAaRo - Sep-16.kmy" | more' to see if you can tell anything more about where that file might have come from, in case it gives you an idea when or how the corruption happened.  
You don't say which distribution you are using, but it is possible (although unlikely) that one of the file recovery programs (google for recovering deleted files) might find something.  Unfortunately, the more you use the filesystem before remounting it read-only, the less likely this will succeed.
Comment 9 Thomas Baumgart 2017-09-14 12:04:04 UTC
This is not a KMyMoney bug but a problem with the filesystem of the user.