// troubleshooting guide · owncloud

ownCloud Unable to Open or Create the Local Sync Database

Status
Workaround available
platforms:
Windows, macOS, Linux
updated:
November 16, 2026
reports:
4
Method
how we research
Share

RUNBOOK · owncloud/unable-to-open-local-sync-database4 FIXES

// quick answer

The client can't write its hidden .sync_*.db file in the sync folder. Fix folder permissions (Windows deny rules, OneDrive-controlled folders); if the database is corrupt, quit the client, delete it and let it rebuild.

Most likely fix: Fix folder permissions

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Fix folder permissions

    1. 01Right-click the sync folder > Properties > Security
    2. 02Give your user Full control and remove any Deny entries
    3. 03On Linux/macOS check ownership with ls -la
    Did this fix it?
  2. FIX 2Take the folder away from OneDrive

    1. 01In OneDrive settings, stop backing up Desktop/Documents if those are your ownCloud folders
    2. 02Or choose a different local folder for ownCloud
    Did this fix it?
  3. FIX 3Rebuild the sync database

    1. 01Quit the ownCloud client
    2. 02Show hidden files and delete .sync_*.db (and -wal/-shm files) in the sync folder root
    3. 03Restart the client; it rescans the folder (selective sync choices may reset)
    Did this fix it?
  4. FIX 4Use a local disk

    1. 01Move the sync folder off network drives or USB disks that drop out
    Did this fix it?

Symptoms

The client stops with 'Unable to open or create the local sync database. Make sure you have write access in the sync folder', or 'database disk image is malformed'.

Why it happens

  • C-01No write permission on the sync folder
  • C-02Windows deny-all permission on Documents or Desktop
  • C-03Folder also managed by OneDrive (known-folder redirect)
  • C-04Corrupt SQLite journal after a crash
  • C-05Sync folder on a network drive

// this guide also covers

  • owncloud unable to open or create the local sync database
  • owncloud sync database error
  • owncloud database disk image is malformed

Still not working?

If ownCloud keeps failing, you're not alone. See every ownCloud 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 ownCloud Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All sync failures guides →

Other ownCloud errors

All 12 ownCloud errors and fixes →