Libre Office file locked by unknown user

Asked by ealthuis

I, using NFS, have all of my files on one system, they are accessible by all other computers.

When I open with one of the other computers a Libre Office file I get this message:

"Document file 'weblink%201.odt' is locked for editing by:

Unknown User

Open document read-only or open a copy of the document for editing."

The document is NOT in use by another user as I am the owner and only user, and the file is not open on the "server" type computer.

All permissions point to me as owner.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
ealthuis
Solved:
Last query:
Last reply:
Revision history for this message
ealthuis (ealthuis) said :
#1

I may add, that this appears to be a Libre Office problem, as Document viewer has unimpeded access to PDF files.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2
Revision history for this message
ealthuis (ealthuis) said :
#3

The above solution worked once and only for the exact file I was trying to open, all other files are still locke

Revision history for this message
ealthuis (ealthuis) said :
#4

This problem is occurring on a NFS server and it's clients.
A file which is stored on the server, when used by any client is locked to other users as long as the first user has it open. When the file is saved and closed it remains locked and the afore mentioned message shows when any other user wants to open it in read/write mode.

The UNOFFICIAL fix: edit the /usr/bin/soffice file to comment out the following lines:

   SAL_ENABLE_FILE_LOCKING=1
   export SAL_ENABLE_FILE_LOCKING

This worked on all three clients.

As said before, this is not the official fix, but it works for me who is the owner and sole user of these computers.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Great share. Hopefully this will help others :-)