Ask Your Question

6.1.4. update. When I attempt to open a LibreOffice document, I get the following error message: "Document Could Not Be Locked.... Read-Only" How to I edit and save previous LibreOffice documents?

asked 2019-01-09 06:26:18 +0100

Novice LO user gravatar image

Windows 10 After downloading update, restarting, and trying to open my first document, LibreOffice will not even open. Get the same message as above and the lock file.

edit retag flag offensive close merge delete


I read a response suggesting that the ransomware protection be turned off, but that seems like a high price to pay to be able to use LibreOffice. Any other suggestions?

Novice LO user gravatar imageNovice LO user ( 2019-01-09 07:31:07 +0100 )edit

Anything special about the document? is it on a network share?

Mike Kaganski gravatar imageMike Kaganski ( 2019-01-09 08:09:15 +0100 )edit

Mike, this error message appears for any and all word or spreadsheet documents I try to open. The docs are on my desktop that is not on a network share.

Novice LO user gravatar imageNovice LO user ( 2019-01-09 17:02:18 +0100 )edit

Well - then did you try the suggestion you mentioned ("that the ransomware protection be turned off"), to see if it is really the reason of the problem? (You also didn't mention which protection you use, nor the source of the suggestion you are citing.) If it turns out that is the reason, nobody forces you to keep it disabled, but at least you would have something to mention here, to possibly find some other suggestions or explanations. Without that, we can only guess if this or that is the problem.

Mike Kaganski gravatar imageMike Kaganski ( 2019-01-09 19:15:40 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-01-21 22:18:27 +0100

Progresser gravatar image

updated 2019-01-22 11:11:35 +0100

I had the same problem, I believe. Turning off ransomeware protection as Controlled File Access may be the only answer.

1) I updated Windows 10 recently, and I'm now using Version 1809, OS Build 17763.263.
2) I found I now had problems with Excel 2007 which I had previously been using successfully, although I had had to log in as administrator to use it at all.
3) I decided to give LibreOffice a try, and downloaded version 6.0.73 (x64). (Sorry, not v6.1.4)

4) When I tried from LibreOffice to open an Excel spreadsheet which I had recently been using in Excel 2007, I got the message saying the file could not be locked. Title: "Document Could Not Be Locked". Msg: "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 or lack of free disk space." Buttons: Open Read Only, and Cancel.
5) Having searched this website for "permission" and then "locked" I eventually came across this thread and decided to try turning off Ransomware Protection.
6) Windows key + I gets me to a Windows Settings window , and typing in Ransomware gets me to a Windows Security window titled Ransomware protection, with the first item "Controlled folder access", which I had set to ON a long time ago.
7) I changed it to OFF (admin privilege needed) and tried to open the same file from LibreOffice. Success! I closed it again.

8) But I was not happy with Controlled folder access being OFF, so I set it back to ON.
9) When I tried to open the same file from LibreOffice, I had no problem; I made a small change and tried to save it. However, I got an error pop-up titled Confirm File Format saying 'This document may contain formatting or content that cannot be saved in the currently selected file format "Microsoft Excel 97-2003". Use the default ODF format to be sure that the document is saved correctly. [tickbox ticked] Ask when not saving in ODF or default format" and two buttons to choose between: "Use Microsoft Excel 97-2003 Format" and "Use ODF Format". I chose the former, for backwards compatibility.
10) Another pop-up, "Error", "Error saving the document [filename]: General input/output error while accessing [path&filename]." OK button.
11) Other Error pop-ups followed: one exactly the same and a fourth without the phrase 'while accessing [path&filename].'
12) This time I gave in and chose the ODF Format button, but the Save As dialogue pop-up told me: "[path&filename.ods] File not found. Check the filename and try again."

13) OK, so maybe it's Ransomware setting, I thought. Set Controlled folder access back to OFF and try again.
14) SUCCESS! I tried opening another file and saving it - successfully, but only in ODF (.ods) format.

I think I will try controlled file access ON but with exceptions for LibreOffice programs. Watch this space...

15) I turned controlled ... (more)

edit flag offensive delete link more



:-) See this FAQ

Mike Kaganski gravatar imageMike Kaganski ( 2019-01-21 22:33:15 +0100 )edit

Please don't mix different issues (the problems accessing/saving files, which is this question is about, and warnings about using non-native file types, which is normal when you are saving to a foreign file format). Your description is too long and hard-to-understand already without any irrelevant stuff.

Mike Kaganski gravatar imageMike Kaganski ( 2019-01-22 13:08:46 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-01-09 06:26:18 +0100

Seen: 101 times

Last updated: Jan 22