Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - after crash, all the open documents are locked !!
after crash, all the open documents are locked !!
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
obenielli
Blue Pill


Joined: Apr 22, 2009
Posts: 2

PostPosted: 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.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Apr 22, 2009 8:50 am    Post subject:

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?

Patrick

Edited by Lorinda to fix BBCode tags.
Back to top
obenielli
Blue Pill


Joined: Apr 22, 2009
Posts: 2

PostPosted: Thu Apr 23, 2009 10:23 am    Post subject:

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.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Apr 23, 2009 10:44 am    Post subject:

Did you say that NeoOffice 3.0 crashed? If so, I would like to fix the crash.

Can you find the crash log for the last NeoOffice crash? You can find the crash log by following the steps in "Option B" of this NeoWiki article.

If you can find the crash log, can you attach the crash log in your next post using the steps in this forum topic.

Patrick
Back to top
kklare
Keymaker


Joined: May 01, 2009
Posts: 79
Location: Los Alamos, NM, USA

PostPosted: 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.

Thanks, I see your nightmare,

-Ken
Back to top
JohnM
Agent


Joined: May 27, 2006
Posts: 15

PostPosted: Thu Sep 17, 2009 9:32 pm    Post subject:

just did some searching over on the Snow Leopard support forum (discussions) over on Apple. Under Finder & Dock, I found a thread on "no finder window wallpapers" http://discussions.apple.com/thread.jspa?messageID=10086083&#10086083 and in it a link to a Widget to show hidden files: http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html with which you can toggle showing or hiding hidden files. when shown, hidden files appear in lighter type and then delete the ~lock files.

Close NeoOffice first then delete the offending ~lock files.

Also each time I clicked on the Show/Hide widget, Finder disappeared and I had to click on Finder in the Dashboard to bring it bgack.

Warning: this is a widget designed for application developers so be very careful and use at your own risk.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Sep 17, 2009 9:54 pm    Post subject:

JohnM,

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.

Patrick
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
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

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.