# WebDAV sync one-way on iOS error: PROPFIND /: Unknown error 2 (401): 401 Unauthorized

**URL:** <https://discourse.joplinapp.org/t/webdav-sync-one-way-on-ios-error-propfind-unknown-error-2-401-401-unauthorized/9391>\
**Category:** Support\
**Created:** [14 June 2020 15:31 UTC](https://discourse.joplinapp.org/t/webdav-sync-one-way-on-ios-error-propfind-unknown-error-2-401-401-unauthorized/9391 "2020-06-14T15:31:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Degine](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/degine/32/4226_2.png) [@Degine](https://discourse.joplinapp.org/u/Degine)\
**Post date:** [14 June 2020 15:31 UTC](https://discourse.joplinapp.org/t/webdav-sync-one-way-on-ios-error-propfind-unknown-error-2-401-401-unauthorized/9391/1 "2020-06-14T15:31:59Z")

</div>

Hi everyone. I’ve been trying Joplin the past few days on the desktop and I like it. However, when I tried to use in on iOS I couldn’t get it to sync properly. I would be grateful for any assistance.

# On iOS sync works one-way

Notes from mobile are uploaded and show in the desktop program. However, notes are never downloaded to mobile. Only the notes that were created on mobile are available.

**Version** : Joplin 10.0.47  
**OS** : iOS 13.5.1

Log:  
`There was some errors:`  
`Error: PROPFIND /: Unknown error 2 (401): 401 Unauthorized`

`Code: 401`  
`construct@[native code]`  
_15 lines in the form of:_  
`#@/private/var/containers/Bundle/Application/####/Joplin.app/main.jsbundle:###-###`  
`value@[native code]`

I triple checked my connection settings.

**Synchronisation target:** WebDAV  
**WebDAV URL:** https://###.###.com/remote.php/webdav/joplin

**Check synchronisation configuration reports:**  
“Success! Synchronisation configuration appears to be correct.”

Without success I’ve tried

- restarting the phone;
- removing and reinstalling the app;
- disabling encryption;
- to enable and disable VPN;
- disabling ‘fail-safe’;
- tried finding a solution in other topics on this forum;
- creating new app passwords for WebDAV access on the server (I have 2FA enabled).

# On the desktop sync works fine.

Joplin 1.0.216 (prod, win32)

Client ID: 41ba23c3b9034272a2da00a10355d1cb  
Sync Version: 1  
Profile Version: 29

Revision: 4eb680d6 (master)

---

<div class="post-metadata">

**Author:** ![ocramarco](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@ocramarco](https://discourse.joplinapp.org/u/ocramarco)\
**Post date:** [28 July 2022 14:18 UTC](https://discourse.joplinapp.org/t/webdav-sync-one-way-on-ios-error-propfind-unknown-error-2-401-401-unauthorized/9391/2 "2022-07-28T14:18:39Z")

</div>

I am running into the same issues.  
Windows \<\> windows \<\> macos working fine but with iOS it isn't working, only added notes on iOS are added in the sync.

iOS  
Joplin 12.8.1  
iOS 14.8.1  
Webdav via Stack Storage with tokens  
Encryption enabled

Desktop  
Joplin 2.8.8 (prod, win32)  
Client ID: 06df808990d943189b32f778c0e88c66  
Synchronisatieversie: 3  
Profiel versie: 41

Revisie: c2a6a13

---

<div class="post-metadata">

**Author:** ![ocramarco](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@ocramarco](https://discourse.joplinapp.org/u/ocramarco)\
**Post date:** [29 July 2022 10:06 UTC](https://discourse.joplinapp.org/t/webdav-sync-one-way-on-ios-error-propfind-unknown-error-2-401-401-unauthorized/9391/3 "2022-07-29T10:06:43Z")

</div>

Nevermind, I found the issue with status open on github.

> <https://github.com/laurent22/joplin/issues/2153>
>
> Since the last update (to 10.0.40) both my iPhone and iPad no longer sync to Sta…ckstorage over WebDAV. They did with earlier versions. My MacBook and iMac are currently running Desktop version 1.0.174 and are syncing perfectly fine.
> 
> This issue is created per request at the forum:
> https://discourse.joplinapp.org/t/bug-new-ios-update-fails-to-sync-on-webdav-connection/4267/19
> 
> I have attached iPad screenshots to show the error(s).
> 
> My suspicion is that a PROPFIND is executed for the path ending in a double slash (\`//'). See the logs for what I mean.
> 
> https://rtvb.stackstorage.com/remote.php/webdav/Apps/Joplin//
> 
> If required for testing/reproducing, I am willing to provide a temporary login to my stackstorage to @laurent22.
> 
> \## Environment
> 
> Joplin version: 10.0.40 iOS / 1.0.174 macOS
> 
> Platform: iOS
> OS specifcs: iOS 13.1.3
> 
> \## Steps To Reproduce
> 
> 1. Configure WebDAV for stackstorage 
> 2. Hit Sync
> 
> WebDAV path: \`https://mysite.stackstorage.com/remote.php/webdav/Apps/Joplin/\`
> 
> Mind the trailing slash. Same error without a slash (\`\[...\]/Joplin\`) or with double slashes (\`\[...\]/Joplin//\`)
> 
> Describe what you expected to happen:
> 
> \* Succesfull sync
> 
> \## Logfile
> 
> See attached screen shots.
> !\[4956adbe16a76b962390464ea59af53550f3d2ec\](https://user-images.githubusercontent.com/559346/70178300-5309f880-16dc-11ea-98ee-4e1c3042f81e.png)
> !\[61d7f17644520f42ac2ebfe2415d2631a784957a\](https://user-images.githubusercontent.com/559346/70178310-569d7f80-16dc-11ea-964e-ac225fd7a20f.png)
> !\[1fc04c8ce7ea3ffe57b0a71b9806f6ce7fe6e141\](https://user-images.githubusercontent.com/559346/70178321-59987000-16dc-11ea-8072-0b0a60d3e2d0.png)

Would be nice if there is a solution available.
