Posted: Wed Apr 22, 2009 8:30 am Post subject: after crash, all the open documents are locked !!
After a crash , all the opened documents during the crashed session are only avaible on read but not on writing. If I open a copie of it I can't save it with the same name. (including if I save it with a other name and after rename it with the original name, it's still the same problem: just open it with a copy or on only-read version.
It's very strange beacuse, it could possible to open and modiy its on neooffice .2.5 !! but not with neoffice 3.0.
The message is: docuemnt " name.ods" is locked for editing by "my user name" (date and hour of last save).
It's a probleme because I have a lot of links with other document and I can't modify it all.
What you are seeing is the new file locking mechanism in NeoOffice 3.0's underlying OpenOffice.org 3.0.1 code. Starting in OpenOffice.org 3.0, Sun Microsystems' OpenOffice.org engineers changed file locking to do the following steps:
1. When you open a file, a file that starts with the name ".~lock." is created in the same folder as the file that you are opening
2. If another user opens the file with the same application or you open the file with OpenOffice.org 3.0 or higher, you will get the read-only message that you are seeing
3. When you close the file, the ".~lock." file is deleted and other users can open the file in writable mode again.
The problem with this OpenOffice.org change is that when NeoOffice 3.0 or OpenOffice.org 3.0 crashes, step 3 never happens so you must clear the file by reopening and then closing the file by the same user in the same application that the crash occurred in. For example, if you had the file open in NeoOffice and NeoOffice crashed, you need to open and close the file in NeoOffice. If a colleague opened the file in OpenOffice.org and it crashed, then your colleague must open and close the file in OpenOffice.org.
If it is not feasible to have the original person who experienced the crash reopen and close the file, you can manually clear the OpenOffice.org lock file by performing the following steps:
1. Launch the /Applications/Utilities/Terminal application, copy the following text into the Terminal window, and press the spacebar:
Code:
cd
2. Go to the Finder and drag the folder that contains the read-only file into the Terminal window
3. Copy the following text into the Terminal window and press the Return key:
Code:
; rm .~lock.*
Does either approach allow you to open the file in writable mode?
Thank you very much.
It seems ok now. But yesterday, it was very strange, I try various time sto re open the files, and Neooffice never leave to open it in writable mode, (I was the user when it crashed...), always i oread only or with a copy.
Perhaps to relaoad Neooffice ?
I repost if there is new trouble. thank you again.
Joined: May 01, 2009 Posts: 79 Location: Los Alamos, NM, USA
Posted: Sun May 31, 2009 4:14 am Post subject:
I may have had an unexpected shutdown on my Mac due to the 10.5.7(?)
freeze problem with closing the clamshell without sleep first.
The double-clicked .ods file now says
Document file 'IMDB.ods' is locked for editing by:
my longer name ( 30.05.2009 21:13 ) [much earlier]
Open document read-only or open a copy for editing.
I opened the copy, minor modded it, and saved with new name.
I opened that and then for whatever I opened the original, now in
trash, I think. It had failed a recovery. I could swear that I got it
without the recover dialog nor locked message but cannot reproduce that.
It might have been the time machine copy. No, not that one is much older.
I had rebooted and it was still "locked" by me?
Is there no way to unlock it? I at NeoOffice 3.0 patch 2.
Not sure how all this relates to OS vs Sun locking, not Mac locked.
I had not gotten to this thread when I started this message.
Removing the file: "rm .~lock.IMDB.ods#" did the trick.
Hypothesis, I may have trashed the file and then saved a copy
over the original making a new lock and unlock.
Note that starting in the NeoOffice 3.0.1 Early Access, there are no longer any of those irritating OpenOffice.org lock files. What we did was merge the native file locking code from OpenOffice.org 3.1 so that file locking is done like it was in NeoOffice 2.2.5 and we disabled creation of those horrible lock files.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum