Filehandling broken after crash, loosing data

Derek Atkins warlord at MIT.EDU
Sat Apr 12 18:18:02 CDT 2003

Christian Gatzemeier <c.gatzemeier at> writes:

> Hello,  
> I have to report that with gnucash 1.8.0 I have the situation that it doesn't 
> remember changes, even though the file has been saved before closing. 

Well, 1.8.0 had a LOT of bugs in it -- 1.8.1 was released like a week
later (maybe two), and 1.8.2 is current!

> I noticed that somehow the backup mechanism seems to be mixed up.  

I don't think it's all that mixed up...

> Attatched is the output of a ls -l in the data directory.  
> It looks like it happened on the 4th, when gnucash crashed and the  
> also attatched backtrace was generated. Unfortunately I can not give any more   
> details on what was done to run into the crash. (other person, happened by  
> itself, ...oh, sure ;-)  

Well, it looks like you started to open up the backup file itself, and
started working out of the backup file.  You can see that from:

-rw-r--r--    9 hh       users     2147392 2003-04-11 22:10 HansH.20030404232105.xac
-rw-r--r--    1 hh       users         135 2003-04-08 23:59 HansH.20030404232105.xac.20030408235900.log
-rw-r--r--    1 hh       users       80820 2003-04-12 01:07 HansH.20030404232105.xac.20030411184346.log
-rw-r--r--    1 hh       users     2116012 2003-04-04 22:54 HansH.20030404232105.xac.20030411214308.xac

Basically, on April 8 you opened that backup file instead of the actual
data file -- I don't know why that happened, but it did.  GnuCash has been
using the "backup" file as its data file ever since.  Your most recent
change appears to have been at 22:10 yesterday.

I suggest you just rename (or copy) HansH.20030404232105.xac to
whatever you want your datafile to be called.

> What might be the best thing to do now to staighten this out?  
> I allready tried to save the remainig data into another file (save as) but all  
> that happens in the directory is that the .LNK and .LCK files get renamed  
> without the extra <date.xac> tag. But there is no new data File of 2MB. 

Uhh, SaveAs should work fine, provided you start with the proper data


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list