LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2012, 09:08 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
libreoffice document locked


I have a number of documents created by OpenOffice.org and libreoffice which I cannot edit. When I try to open them, I get a message saying they are locked by an unknown user. These documents have been created by me, and saved and closed properly. I cannot find anything that looks like a lock-file.

Today I created a file, closed it, and exited libreoffice.
I moved the file to a different directory, and *could not edit it*.
I moved it back to the original directory and could!

What's going on here? Is it some sort of security measure? A while back I reorganized my disk structure which resulted in all my word-processing documents getting moved.

Annoyed,
Jim
 
Old 06-13-2012, 11:18 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Where have you looked for lock files ?
There may be one in the same directory or there may be some under ~/.config or ~/.libreoffice/3

They will be dot files anyway (hidden).

Here's something similar - http://listarchives.libreoffice.org/.../msg19547.html

Last edited by smoker; 06-13-2012 at 11:21 AM.
 
Old 06-14-2012, 03:03 AM   #3
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
I use 'updatedb' and 'locate', which displays the paths of hidden files. I would think that if there were a lockfile, that the document would not be editable in either location.

I have checked again. While editing the document a lockfile is present in the doc's directory. When I closed and quit libreoffice the lockfile was removed. Once again the file was not editable in a different directory. No lockfile is present in the new directory.

Breaking news! The problem only occurs if the new directory is on my Buffalo NAS drive. The file is editable on other directories on the same computer.

The problem appears to be permissions related. I tried to save a copy of the file to the NAS drive and it failed. I'm not sure why I can copy a file to the remote directory but cannot save a file to the same location from within a program. I looks like libreoffice's attempt to create a lockfile fails and that is interpreted as another lockfile already exists. If that's the case, it's bad programming.

In any case, I think I'll call this problem solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 02:50 PM
LXer: Interview: Charles H. Schulz on LibreOffice and The Document Foundation LXer Syndicated Linux News 0 04-06-2011 12:50 PM
LXer: The Document Foundation launches LibreOffice 3.3 LXer Syndicated Linux News 0 01-25-2011 07:30 AM
LXer: This week at LWN: Michael Meeks talks about LibreOffice and the Document Foundation LXer Syndicated Linux News 0 10-08-2010 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration