Apache OpenOffice (AOO) Bugzilla – Issue 118578
OpenOffice Writer zeros out document in file recovery after power hit
Last modified: 2011-11-04 21:55:59 UTC
I am running OpenOffice 3.3.0, OOO330m20 (build:9567) under Linux (Fedora 14). I created an ODT file (file1), which I had opened along with another ODT file (file2). My company had a brown out, causing my computer to reboot. After I came back up, OO told me that I had two files to recover, I clicked "Start Recovery", and both were recovered with no problem. I continued to edit file1, saving every now and then, and in the afternoon we had another brown out, again causing my computer to reboot. After the computer came back up, this time when I started OO, it recovered file2 just fine (I had made no changes to it), but it warned me that file1 was locked by an unknown user (I'm quoting from memory). I did a "ps -ef|grep <filename>" and "ps -ef|grep pen" and saw nothing. I can't remember, but I may have shut down OO and started it again. Either way, OO asked me if I wanted to recover file1, and I clicked "Start Recovery", and OO popped me into a blank file, "Untitled 1". When I did an "ls -l" in my Documents directory, I saw file1, but with 0 bytes - completely empty. OO had, apparently, "recovered" my file by blowing it away entirely, not just my most recent changes, but everything. It was not in my backup directory in my OO prfile, either. Don't trust Ctl-S, don't trust file recovery. Print documents out on paper.
I'm very sorry to hear that you have lost data and that the data recovery wasn't successful. Unfortunately, the steps you have provided do not lead to a reproducible issue. Therefore it's not possible to find any problem and to fix it. If you need further help I would encourage you to try our support forums. Maybe there is someone who has seen the same or something similar and could help you to prevent it to happen again. Even though it is not possible to bring back your data: http://user.services.openoffice.org/en/forum/