# Sync error on new profile on Android client only: Permission denied to create directory

**URL:** <https://discourse.joplinapp.org/t/sync-error-on-new-profile-on-android-client-only-permission-denied-to-create-directory/44917>\
**Category:** Support\
**Created:** [18 April 2025 05:01 UTC](https://discourse.joplinapp.org/t/sync-error-on-new-profile-on-android-client-only-permission-denied-to-create-directory/44917 "2025-04-18T05:01:17Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![mrjo118](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/mrjo118/32/23404_2.png) [@mrjo118](https://discourse.joplinapp.org/u/mrjo118)\
**Post date:** [24 April 2025 00:33 UTC](https://discourse.joplinapp.org/t/sync-error-on-new-profile-on-android-client-only-permission-denied-to-create-directory/44917/11 "2025-04-24T00:33:21Z")

</div>

Another potential solution here:

> [@Syncing Issue with Nextcloud](https://discourse.joplinapp.org/t/syncing-issue-with-nextcloud/27467/3):
>
> To verify, I tried several Nextcloud users and always got the result Success! Synchronization configuration appears to be correct. Under Windows I mounted a drive like: net use Z: https:///remote.php/dav/files/USERNAME/ /user:youruser yourpassword and uploaded a file, which works as well. Now I found out something strange: All users are mounted on external storage in Nextcloud and all have the same error. When I create a new user, which is not on an external storage, the sync works fine…

"In the Nextcloud External Storage setting, you have to enable "show hidden files".  
Then sync each Joplin instance.  
After syncing each instance, you can disable "show hidden files" and it still syncs fine."

And also:

> **[403 on MKCOL, DELETE, and PUT](https://help.nextcloud.com/t/403-on-mkcol-delete-and-put/142301/7)**
>
> Actually, figured out the issue. I run this in the linuxserver docker container, for reference. I wondered why it only happened to a specific file, and after digging into the data directory in my container i discovered the specific file that gave...

"I just had the “403 forbidden” mkcol today and this helped me a lot! I logged on the nextcloud directory, under nextcloud\>user\>files\>desired directory and changed the owner of the directory to “www-data” by using "chown -R www-data:www-data /path/to/desired/directory"

Also, I notice in your OP that you mentioned you created a new user which you synced another profile with. What happens if you use the same user for which you originally created the profile for which you are trying to sync?

---

_[View the full topic](https://discourse.joplinapp.org/t/sync-error-on-new-profile-on-android-client-only-permission-denied-to-create-directory/44917)._
