// troubleshooting guide · libreoffice
LibreOffice Document Could Not Be Locked Error
- Status
- Workaround available
- platforms:
- Windows, macOS, Linux
- updated:
- November 15, 2026
- reports:
- 5
- Method
- how we research
RUNBOOK · libreoffice/document-could-not-be-locked4 FIXES
// quick answer
LibreOffice can't write its .~lock file, usually because of permissions, a read-only or synced folder or protected folders.
Most likely fix: Copy the file to a normal local folder
How to fix it
// try these in order, the most common fix is first
FIX 1Copy the file to a normal local folder
- 01Save the attachment or file to Documents or Desktop
- 02Open it from there
Did this fix it?FIX 2Check permissions and disk space
- 01Right-click the folder > Properties and confirm write access
- 02Free disk space if the drive is full
Did this fix it?FIX 3Allow LibreOffice in Windows security
- 01Windows Security > Virus & threat protection > Ransomware protection
- 02Remove the folder from protected folders or allow soffice.bin
Did this fix it?FIX 4Delete the stale lock file
- 01Close LibreOffice
- 02Delete the hidden .~lock.filename# file next to the document
Did this fix it?
Symptoms
Warning that the document could not be locked, file opens read-only, or General input/output error.
Why it happens
- C-01No write permission in the folder
- C-02File on read-only media or ISO
- C-03Cloud-synced or network folder
- C-04Windows Controlled Folder Access
- C-05Opened straight from an email attachment
// this guide also covers
- libreoffice document could not be locked
- libreoffice general input/output error
- libreoffice read-only
Still not working?
If LibreOffice keeps failing, you're not alone. See every LibreOffice problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther LibreOffice errors
- LibreOffice Won't Open or Crashes on Startup
- LibreOffice Messes Up Word DOCX Formatting
- LibreOffice Impress PPTX Animations and Fonts Not Working
- LibreOffice Calc VBA Macros Not Working
- Why Is LibreOffice So Slow to Start?
- LibreOffice Calc Slow or Not Responding on Large Files
- LibreOffice Crashing or Not Opening on Mac
- How to Recover an Unsaved or Corrupt LibreOffice Document