Unable to open or create the local sync database

Hi!
Fresh Ubuntu 24.04 installation, Nextcloud via snap 3.12.7. I trying to sync my home folder /home/seventh from previous install and got the error:

“Unable to open or create the local sync database. Make sure you have write access to the sync folder”

journalctl:

Aug 10 09:29:37 7th-dell kernel: audit: type=1400 audit(1723274977.016:7973): apparmor=“DENIED” operation=“mknod” class=“file” profile=“snap.nextcloud-desktop-client.nextcloud” name=“/home/seventh/.sync_d741cd37417b.db” pid=17426 comm=“nextcloud” requested_mask=“c” denied_mask=“c” fsuid=1000 ouid=1000

How to solve it?

You have AppArmor installed and activiated on your server which denies access to your database. Make sure you grant access to run Nextcloud.

By using the search function of this forum or our preferred Internet search engine, you should find more detailed information abot what needs to be done. See e.g.:

https://duckduckgo.com/?q=nextcloud+snap+apparmor&t=ffab&ia=web

For Windows client I recommend checking this thread:

2 Likes