// 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
Share

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

  1. FIX 1Copy the file to a normal local folder

    1. 01Save the attachment or file to Documents or Desktop
    2. 02Open it from there
    Did this fix it?
  2. FIX 2Check permissions and disk space

    1. 01Right-click the folder > Properties and confirm write access
    2. 02Free disk space if the drive is full
    Did this fix it?
  3. FIX 3Allow LibreOffice in Windows security

    1. 01Windows Security > Virus & threat protection > Ransomware protection
    2. 02Remove the folder from protected folders or allow soffice.bin
    Did this fix it?
  4. FIX 4Delete the stale lock file

    1. 01Close LibreOffice
    2. 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 us

Watch LibreOffice Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

Other LibreOffice errors

All 10 LibreOffice errors and fixes →