Bug 291226 - Empty account file data
Summary: Empty account file data
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.5.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 22:51 UTC by David
Modified: 2014-07-29 10:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2012-01-10 22:51:05 UTC
Version:           4.5.3 (using KDE 4.7.3) 
OS:                Linux

After trying my account file today, all data were deleted even if i still have a file recorded in a directory.
Is kmymoney making any temporary file save in a dedicated directory ? If yes, where could I find these files ?

I agree that it's not really a buf but don't find any other tool to recover these kind of informations

Reproducible: Didn't try

Steps to Reproduce:
launch software
Software opens saved file
Session opening....no data, File name is indicated, welcome view requests me to configure the account data.

Actual Results:  
File empty....only stays file tittle.
Software requests me to configure as if i starts a new session. 

Expected Results:  
File with datas

OS: Linux (i686) release 3.0.0-14-generic
Compiler: gcc
Comment 1 Cristian Oneț 2012-01-11 19:28:20 UTC
1. Do you still have your file?
2. If yes run 'zcat your_file.kmy' if something is printed then you data is not lost
3. If no how did you file get wiped out? In this case if you have a newer version of kmymoney and activated a number of backups in settings you should have a your_file.kmy.1~ file in the same directory where your original file was
Comment 2 David 2012-01-11 22:32:33 UTC
Thanks Cristian for this quick feedback.

To reply to your questions:
1. Yes, I still have a file
2. Zcat command provides me information that this file has only been created the 10th january.
I don't see how i made it but it's like if i created a same file name and overwrited previous version.
I was expected that back up files were generated by defect in settings and placed in a dedicated directory....but your comment 3 canceled my dream.
If you have others ideas or comments, i appreciate.
If not, i think i can close this bug.
Comment 3 Cristian Oneț 2012-01-12 08:00:32 UTC
(In reply to comment #2)
> Thanks Cristian for this quick feedback.
> 
> To reply to your questions:
> 1. Yes, I still have a file
> 2. Zcat command provides me information that this file has only been created
> the 10th january.

zcat would actually output the content of the xml file on your screen. How did you deduce that it has been created on the 10th of January? Does zcat actually produce some output?
Judging by the size of the kmy or extracted xml file do you think that you still have some data.

If that's gone and you don't have a backup I'm afraid that there's nothing to do.

Although reading your description I still could not figure it out how that could happen.
Comment 4 Jack 2012-01-12 16:18:30 UTC
It sounds like the file somehow got deleted (while KMM was not running) and KMM started up and didn't find the file it wanted to open, so it tried to create a new one.  I agree that doesn't seem likely, but it would match if the current file is essentially an empty, new .kmy file with no accounts and no data.

Davie - I assume you have checked any trash or wastebasket if your desktop environment or window manager has one?
Comment 5 David 2012-01-12 23:04:49 UTC
Cristian comments :

Yes I got an output. Let me show you a compiled extract below.

Jack comments :
I checked my trash but I found only older file transfered before this issue.

I tried to create a new file.
The first windows requests to configure a new account with minimum information (such as account name) to be able to save it.
What i don't understand, when i open my "remaining" file, i arrive to same configuration windows than a new creation but there is no information fulfilled on (such as account name). 
So how did this file be saved before whereas all minimum information are not integrated in ?

Compiled Extract:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE KMYMONEY-FILE>
<KMYMONEY-FILE>
 <FILEINFO>
  <CREATION_DATE date="2012-01-10"/>
  <LAST_MODIFIED_DATE date="2012-01-10"/>
  <VERSION id="1"/>
  <FIXVERSION id="2"/>
 </FILEINFO>
<USER email="" name="">
  <ADDRESS street="" telephone="" county="" city="" zipcode=""/>
 </USER>
 <INSTITUTIONS count="0"/>
 <PAYEES count="0"/>
 <ACCOUNTS count="5">
  <ACCOUNT currency="EUR" description="" parentaccount="" opened="" number="" lastmodified="" type="9" id="AStd::Asset" lastreconciled="" institution="" name="Actif"/>
  <ACCOUNT currency="EUR" description="" parentaccount="" opened="" number="" lastmodified="" type="10" id="AStd::Liability" lastreconciled="" institution="" name="Passif"/>
  <ACCOUNT currency="EUR" description="" parentaccount="" opened="" number="" lastmodified="" type="13" id="AStd::Expense" lastreconciled="" institution="" name="Dépense"/>
  <ACCOUNT currency="EUR" description="" parentaccount="" opened="" number="" lastmodified="" type="12" id="AStd::Income" lastreconciled="" institution="" name="Revenu"/>
  <ACCOUNT currency="EUR" description="" parentaccount="" opened="" number="" lastmodified="" type="16" id="AStd::Equity" lastreconciled="" institution="" name="Action"/>
 </ACCOUNTS>
 <TRANSACTIONS count="0"/>
 <KEYVALUEPAIRS>
  <PAIR key="kmm-baseCurrency" value="EUR"/>
 </KEYVALUEPAIRS>
 <SCHEDULES count="0"/>
 <SECURITIES count="0"/>
 <CURRENCIES count="182">
  <CURRENCY saf="100" symbol="ADF" type="3" id="ADF" name="Andorre, Franc" ppu="100" scf="100"/>
etc.....
 </CURRENCIES>
 <PRICES count="20">
  <PRICEPAIR from="ATS" to="EUR">
   <PRICE price="10000/137603" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="BEF" to="EUR">
   <PRICE price="10000/403399" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="BGL" to="BGN">
   <PRICE price="1/1000" source="KMyMoney" date="1999-07-05"/>
  </PRICEPAIR>
  <PRICEPAIR from="CYP" to="EUR">
   <PRICE price="585274/1000000" source="KMyMoney" date="2008-01-01"/>
  </PRICEPAIR>
  <PRICEPAIR from="DEM" to="EUR">
   <PRICE price="100000/195583" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="ESP" to="EUR">
   <PRICE price="1000/166386" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="FIM" to="EUR">
   <PRICE price="100000/594573" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="FRF" to="EUR">
   <PRICE price="100000/655957" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="GRD" to="EUR">
   <PRICE price="100/34075" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="IEP" to="EUR">
   <PRICE price="1000000/787564" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="ITL" to="EUR">
   <PRICE price="100/193627" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="LUF" to="EUR">
   <PRICE price="10000/403399" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="MTL" to="EUR">
   <PRICE price="429300/1000000" source="KMyMoney" date="2008-01-01"/>
  </PRICEPAIR>
  <PRICEPAIR from="NLG" to="EUR">
   <PRICE price="100000/220371" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="PTE" to="EUR">
   <PRICE price="1000/200482" source="KMyMoney" date="1998-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="ROL" to="RON">
   <PRICE price="1/10000" source="KMyMoney" date="2005-06-30"/>
  </PRICEPAIR>
  <PRICEPAIR from="RUR" to="RUB">
   <PRICE price="1/1000" source="KMyMoney" date="1998-01-01"/>
  </PRICEPAIR>
  <PRICEPAIR from="SIT" to="EUR">
   <PRICE price="100/23964" source="KMyMoney" date="2006-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="SKK" to="EUR">
   <PRICE price="1000/30126" source="KMyMoney" date="2008-12-31"/>
  </PRICEPAIR>
  <PRICEPAIR from="TRL" to="TRY">
   <PRICE price="1/1000000" source="KMyMoney" date="2004-12-31"/>
  </PRICEPAIR>
 </PRICES>
 <REPORTS count="0"/>
 <BUDGETS count="0"/>
</KMYMONEY-FILE>
Comment 6 Jack 2012-01-12 23:24:15 UTC
David said:
  I checked my trash but I found only older file transfered before this issue.

If you found a file from before this issue, did it have any of your data?

Also, can you provide a little more information?  What distro are you using, and where did you get your copy of KMM?  How much data had you already entered?  (only one or two accounts or many, only a few days or several months or years of transactions?)
Comment 7 David 2012-01-13 17:55:10 UTC
Jack,

Sorry for the misunderstanding. I was speaking about others files not link to kmymoney but that i knew they were older trashed than my kmymoney issue.
So i'm quite sure that no kmymoney files were inside trash since my issue.

Data:
Operating system Ubuntu 11.10 (since beginning of december)...previously 09.10 distribution that I have updated
Kmymoney version 4.5.3 downloaded from http://kmymoney2.sourceforge.net
5 accounts were created
Several years of transaction (around 5 years mainly imported from Grisbi through QIF files)
Comment 8 Cristian Oneț 2012-01-13 19:43:43 UTC
So from your post it seems that there is an empty file instead of you original KMyMoney file. From your description this happened one day when you opened KMyMoney and it asked you to create a new file. Did you save the file after this? Since you did not have a backup I guess that your data is really lost, I'm sorry about that but I really don't have any ideas what could have happened.