# Joplin sync infinite loop

**URL:** <https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502>\
**Category:** Support\
**Created:** [6 July 2021 16:44 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502 "2021-07-06T16:44:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artix](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/artix/32/9409_2.png) [@Artix](https://discourse.joplinapp.org/u/Artix)\
**Post date:** [6 July 2021 16:44 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/1 "2021-07-06T16:44:13Z")

</div>

Hello ! Dunno if it's the right place to ask for help but :

I'm trying to start using Joplin (2.1.8) and installed a webdav server  
I was able to sync my android phone and then wanted my windows desktop to join the party  
My windows desktop was never able to complete a sync (sync in progress forever)  
It's able to send new notes but never get back the android ones (and the sync is stuck)

I tried to delete everything (windows profile, android data and all data on webdav folder) and started with the desktop sync  
It's not able to complete a sync when alone either.

For other support queries please indicate:

- The version you are using. LATEST VERSION is not a version number!  
2.1.8 Windows Desktop
- If it is a sync issue, please let us know what you are syncing with.  
Syncing to webdav (using dave [GitHub - micromata/dave: A totally simple and very easy to configure stand alone webdav server](https://github.com/micromata/dave)).
- The operating system you are using.  
Windows 10 pro  
[log.txt](https://discourse.joplinapp.org/uploads/short-url/MZgwykrYq5okNsGLTRaPPNWpXG.txt) (54.9 KB)

---

<div class="post-metadata">

**Author:** ![JackGruber](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/jackgruber/32/3231_2.png) [@JackGruber](https://discourse.joplinapp.org/u/JackGruber)\
**Post date:** [6 July 2021 17:43 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/2 "2021-07-06T17:43:49Z")

</div>

I am not sure if the synctarget is extremely slow. For me it looks like it delets 3-4 notes per second and sync 2 notes per second also the check and lock of the target takes ~3 second.

```auto
2021-07-06 18:40:01: FileApi: "get info.json"
2021-07-06 18:40:01: "Sync target info:", "{"version":2}"
2021-07-06 18:40:01: FileApi: "list "
2021-07-06 18:40:01: FileApi: "list "
2021-07-06 18:40:01: FileApi: "put temp/timeCheck639340.txt", "null"
2021-07-06 18:40:02: FileApi: "stat temp/timeCheck639340.txt"
2021-07-06 18:40:02: FileApi: "delete temp/timeCheck639340.txt"
2021-07-06 18:40:02: FileApi: "put locks/sync_desktop_e02428ea076d43979fa2b0d757e980fe.json", "null"
2021-07-06 18:40:02: FileApi: "list "
2021-07-06 18:40:02: FileApi: "list "
2021-07-06 18:40:03: FileApi: "delta "

```

Maybe someone else sees something, but it looks like the sync will never be finished.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [6 July 2021 18:16 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/3 "2021-07-06T18:16:04Z")

</div>

Yes it looks like it's just slow. And in the log the synchronisation is not finished so maybe just let it sync overnight to see if it completes?

---

<div class="post-metadata">

**Author:** ![Artix](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/artix/32/9409_2.png) [@Artix](https://discourse.joplinapp.org/u/Artix)\
**Post date:** [6 July 2021 18:20 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/4 "2021-07-06T18:20:04Z")

</div>

on my android phone it took 3 sec (let's say instant)

There is nothing on the webdav it's empty right now and i have only like 10 notes

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [6 July 2021 18:23 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/5 "2021-07-06T18:23:00Z")

</div>

Maybe an explanation is that the app is making a request and never gets a response. How are the logs on WebDAV side, is there any error or something strange?

---

<div class="post-metadata">

**Author:** ![Artix](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/artix/32/9409_2.png) [@Artix](https://discourse.joplinapp.org/u/Artix)\
**Post date:** [6 July 2021 18:24 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/6 "2021-07-06T18:24:12Z")

</div>

Ok i tried to sync my android phone again (was wiped)  
So seems like the desktop was able to send the notes (i got them on android)  
and i was able to complete the mobile sync in 14s

So the desktop was able to send, but doesn't seems to be able to receive, i'm gonna check webdav side

---

<div class="post-metadata">

**Author:** ![Artix](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/artix/32/9409_2.png) [@Artix](https://discourse.joplinapp.org/u/Artix)\
**Post date:** [6 July 2021 19:40 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/7 "2021-07-06T19:40:21Z")

</div>

I tried with a 1.8.5 linux desktop client and i have same issue

Here is the logs from my webdav server :

> time="2021-07-06T19:32:41Z" level=error msg="stat /data/gmarti/joplin/0779b6d839fa434b8072fac18d54a5ba.md: no such file or directory"  
> time="2021-07-06T19:32:41Z" level=info msg="Opened file" path=/data/gmarti/joplin/0779b6d839fa434b8072fac18d54a5ba.md user=gmarti  
> time="2021-07-06T19:32:41Z" level=error msg="stat /data/gmarti/joplin/4120d13fe28c437299dfd397d7410cd3.md: no such file or directory"  
> time="2021-07-06T19:32:42Z" level=info msg="Opened file" path=/data/gmarti/joplin/4120d13fe28c437299dfd397d7410cd3.md user=gmarti  
> time="2021-07-06T19:32:42Z" level=error msg="stat /data/gmarti/joplin/d51c0ea8a109405097301500cf3c208f.md: no such file or directory"  
> time="2021-07-06T19:32:42Z" level=info msg="Opened file" path=/data/gmarti/joplin/d51c0ea8a109405097301500cf3c208f.md user=gmarti  
> time="2021-07-06T19:32:42Z" level=error msg="stat /data/gmarti/joplin/2a5f661307604aa0b21ac24cd5c88f45.md: no such file or directory"  
> time="2021-07-06T19:32:43Z" level=info msg="Opened file" path=/data/gmarti/joplin/2a5f661307604aa0b21ac24cd5c88f45.md user=gmarti  
> time="2021-07-06T19:32:43Z" level=error msg="stat /data/gmarti/joplin/f344c66cc7cb46dabf8bd0206e606075.md: no such file or directory"  
> time="2021-07-06T19:32:43Z" level=info msg="Opened file" path=/data/gmarti/joplin/f344c66cc7cb46dabf8bd0206e606075.md user=gmarti  
> time="2021-07-06T19:32:43Z" level=error msg="stat /data/gmarti/joplin/095427d9a9c54753a99bffcfb704b2de.md: no such file or directory"  
> time="2021-07-06T19:32:44Z" level=info msg="Opened file" path=/data/gmarti/joplin/095427d9a9c54753a99bffcfb704b2de.md user=gmarti  
> time="2021-07-06T19:32:44Z" level=error msg="stat /data/gmarti/joplin/c6995be12f1a47c5bd3c0c62bec37d92.md: no such file or directory"  
> time="2021-07-06T19:32:44Z" level=info msg="Opened file" path=/data/gmarti/joplin/.resource/c6995be12f1a47c5bd3c0c62bec37d92 user=gmarti  
> time="2021-07-06T19:32:45Z" level=info msg="Opened file" path=/data/gmarti/joplin/c6995be12f1a47c5bd3c0c62bec37d92.md user=gmarti  
> time="2021-07-06T19:32:45Z" level=error msg="stat /data/gmarti/joplin/b496c225679a49678eaf178af6b0240a.md: no such file or directory"  
> time="2021-07-06T19:32:45Z" level=info msg="Opened file" path=/data/gmarti/joplin/.resource/b496c225679a49678eaf178af6b0240a user=gmarti  
> time="2021-07-06T19:32:45Z" level=info msg="Opened file" path=/data/gmarti/joplin/b496c225679a49678eaf178af6b0240a.md user=gmarti  
> time="2021-07-06T19:32:46Z" level=error msg="stat /data/gmarti/joplin/d77e202c3a734b888accfb30ba121bf5.md: no such file or directory"  
> time="2021-07-06T19:32:46Z" level=info msg="Opened file" path=/data/gmarti/joplin/.resource/d77e202c3a734b888accfb30ba121bf5 user=gmarti  
> time="2021-07-06T19:32:46Z" level=info msg="Opened file" path=/data/gmarti/joplin/d77e202c3a734b888accfb30ba121bf5.md user=gmarti  
> time="2021-07-06T19:32:41Z" level=error msg="stat /data/gmarti/joplin/0779b6d839fa434b8072fac18d54a5ba.md: no such file or directory"  
> time="2021-07-06T19:32:41Z" level=info msg="Opened file" path=/data/gmarti/joplin/0779b6d839fa434b8072fac18d54a5ba.md user=gmarti

Seems android app is not using the exact same protocol ?

Because i wiped my android again and i don't have those error logs when syncing

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [5 August 2021 19:40 UTC](https://discourse.joplinapp.org/t/joplin-sync-infinite-loop/18502/8 "2021-08-05T19:40:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
