The Basics
- Nextcloud Server version: 31.04snap1
- Operating system and version: Ubuntu 24.04.2 LTS
- Web server and version: Snap internal (?)
- Is this the first time you’ve seen this error? Yes
- Installation method: Snap
- Are you using CloudfIare, mod_security, or similar? No
Summary
Hi all. I’m here because I struck out on the Joplin forums. This ONLY happens when switching profiles on the Joplin Android client, NOT the desktop client. So Joplin is definitely involved somehow, but I’m not sure if this could also be a Nextcloud bug, a SabreDAV bug, or even an Android bug.
If you’d like all the context, you can see my post on the Joplin forum here: Sync error on new profile on Android client only: Permission denied to create directory - #25 by changemewtf - Support - Joplin Forum
In short, I’m getting errors when trying to sync my Joplin data via Nextcloud WebDAV after switching profiles in Joplin–each profile is assigned to a different Nextcloud user.
Reproduction steps
To reproduce:
- Create two Nextcloud users
- Create two Joplin profiles and configure each of them to sync to one of the users
- Sync one profile
- Swap profiles
- Sync again
If I wait for a couple of hours, then I can sync the alternate profile, but as soon as I switch back again, I get errors. So I can only be actively syncing one profile every couple of hours, obviously not ideal.
Logs and other stuff I’ve tried
Here’s what it looks like on the Nextcloud server when I run the reproduction steps on my Windows or Linux desktop Joplin clients:
changelog [18/Apr/2025:04:48:10 +0000] “GET /remote.php/dav/files/changelog/info.json HTTP/1.1” 200 2191 “-” “Joplin/1.0”
However, when I do the exact same thing on the Android client:
changelog [18/Apr/2025:04:48:28 +0000] “GET /remote.php/dav/files/changelog/info.json HTTP/1.1” 404 4621 “-” “Joplin/1.0”
I’ve also seen 403 errors as well.
There are plenty of examples of this issue scattered throughout the web, but no one seems to have a unified solution.
So far I’ve tried:
- Changing
dav
towebdav
in my sync URL - Uninstalling and reinstalling mobile client
- Migrating my entire Nextcloud to a completely brand new updated server
- Changing permissions on my Nextcloud filesystem to 777
- Manually creating or deleting the
locks/
directory
This is a super frustrating issue, and I hope someone can at least offer a clue for what to try next. I’ve been very happy with self-hosting Joplin and Nextcloud for almost five years now, and this is the first “showstopper” issue I’ve ever encountered. It’s quite inconvenient and I’m hoping to get to the root cause soon! Thanks for your time!