We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Document could not be locked

asked 2018-09-05 17:11:34 +0200

rogerg2 gravatar image

updated 2021-07-02 14:45:11 +0200

Alex Kemp gravatar image

I am trying to reinstall LibreOffice ( on Windows 10.

This message keeps appearing:

"Document could not be locked The lock file could not be created for exclusive access by LibreOffice, due to missing permission to create a lock file on that file location ..."

This is followed by the option to "Open read-only" or "Cancel".

I'd appreciate any help for getting past this issue and back to editing my LibreOffice documents.

edit retag flag offensive close merge delete


I have the same thing on my Apple MacBook Air. I can save the attachment (typically a Word doc) and then re-open it with not problem. The question is: What is "Lock File"?

Thorpie gravatar imageThorpie ( 2020-01-02 21:58:11 +0200 )edit

6 Answers

Sort by » oldest newest most voted

answered 2018-12-07 23:38:11 +0200

EdwardL gravatar image

Thank-you. Disabling controlled folder access in Win 10 worked for me after 30 mins of frustration trying to save a file.

edit flag offensive delete link more

answered 2020-09-11 18:28:49 +0200

Rob42 gravatar image

Removing the folder from the protected folder list in windows defender works. I save documents on a separate storage drive so only programs I choose make changes to that drive anyway so I'm ok with windows not protecting it.

edit flag offensive delete link more

answered 2018-10-15 17:29:42 +0200

Brush6136 gravatar image

I've had this too. And I have fixed it but the condition I had may not be relevant in your instance. For reasons I won't bore you with I'm running Windows Defender whilst my paid for security provider sorts out a major problem with their product. The version of WD this refers to is 4.18.1809.2. In an attempt to give me greater protection, I decided to switch on Ransomeware Protection which is contained under the Virus and threat protection section of WD. I did this after I'd installed the current version of LibreOffice. Having read your original post I thought it might be something to do with LibreOffice so decided to go back. When I began to install the old version I got an error telling me that the shortcut for the desktop could not be installed because of a lack of security permissions. At this point I had forgotten that I had changed the WD settings to use ransomeware protection, but after going through all the settings found the section and switched them off (their normal state). This fixed the problem and allowed me to reinstall the current version of LibreOffice. If you have conditions of this type then switch the ransomeware protection off in Windows Defender. Hopefully this may well help.

edit flag offensive delete link more


As Brush6136 suggests, turning off "Controlled folder access" under "Ransomware Protection" in Windows 10 solves the problem.

ScientificCupboard gravatar imageScientificCupboard ( 2018-10-15 22:11:10 +0200 )edit

answered 2019-03-05 03:50:16 +0200

fatfreek gravatar image

I'm having exactly the same problem. As to your Controlled Folder Access tip I just checked.

Right now "Controlled Folder Access" is OFF. I'm supposing that's good in this case?

My only workaround is to open the doc in Read-Only mode, then do a Saveas to different filename. Tomorrow, when I attempt to reopen that different filename, the vicious cycle starts over.

For what it's worth I use other apps and don't have this problem with files edited by them: Namely Paint Shop Pro 2019, and Textpad 8.

The only major changes to my computer lately have been:

  1. Windows 10 update a few days ago.
  2. I installed and am using Directory Opus daily for the past two weeks.
edit flag offensive delete link more


robleyd gravatar imagerobleyd ( 2019-03-05 07:20:45 +0200 )edit

answered 2019-08-03 21:41:18 +0200

Wayneinky gravatar image

I am having the same problem. I just upgraded to windows 10 and got the same error message. I installed the latest version (6.2) and still have the same problem. I tried turning off "controlled access folder" and it did not help. Any suggestions.

edit flag offensive delete link more


With "Controlled folder access" turned off I uninstalled version (x64). Downloaded older version (64). I was able to create a new file and saved it to OS:/FUMS. When I tried to access the file again I got the same message of "missing permission to create a lock file". I checked the file properties and I have "full control". This is getting very frustrating. Does anyone know how to give LibreOffice "full control" of the file or folder.

Wayneinky gravatar imageWayneinky ( 2019-08-05 17:02:39 +0200 )edit

answered 2021-01-27 11:42:51 +0200

eddy_lt gravatar image
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-09-05 17:11:34 +0200

Seen: 3,415 times

Last updated: Jan 27