# Iphone sync via Nextcloud

**URL:** <https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918>\
**Category:** Support\
**Created:** [19 March 2021 16:48 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918 "2021-03-19T16:48:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [19 March 2021 16:48 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/1 "2021-03-19T16:48:53Z")

</div>

Notebook: Linux Mint Cinnamon 20.1  
Synchronization via managed Nextcloud  
iphone: IOS 14.4.1  
Joplin for Desktop: 1.7.11 (prod, linux)  
Joplin iphone App: 10.7.2

* * *

I synchronize Joplin with my Nextcloud. That's working. What doesn't work is the synchronization of my iphone with Joplin via Nextcloud. It looks like all of the notes on iphone are in sync. However, not all keywords were synced. And when I write a new note on the iphone, it doesn't appear on my notebook.

Unfortunately, I have no idea where to start looking for the error.

🙂

---

<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:** [19 March 2021 17:34 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/2 "2021-03-19T17:34:17Z")

</div>

Check if the sync is finished and you have the same amount of notes, folders, resources on both devices local and remote.  
Desktop: `Help > Syncronisation Status`  
Mobil: `Konfiguration > SYNCRONISATIONSTATUS`

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [20 March 2021 13:51 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/3 "2021-03-20T13:51:11Z")

</div>

Thank you for your help.

There are differences

iphone

 ![IMG_5873](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/c/c8d237ed13dd157dd9ca7631654b1a98cad321ae.png)

Desktop

 ![738cd00e369d43b68ee7653ce9bf7673](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/f/f7917a5cd596a5637cb0f26079d47fa61d644e4d.png)

But how could I fix this?

🙂

---

<div class="post-metadata">

**Author:** ![Yann1ck](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@Yann1ck](https://discourse.joplinapp.org/u/Yann1ck)\
**Post date:** [20 March 2021 17:09 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/4 "2021-03-20T17:09:20Z")

</div>

Looks like your desktop didn’t complete the sync to Nextcloud. And that is why the phone cannot sync all notes.

Are you sure that the sync is from Nextcloud is complete? Just sync on the again on the desktop.

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [21 March 2021 16:10 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/5 "2021-03-21T16:10:20Z")

</div>

Thank you for your help. At the bottom left of the screen in Joplin (first column at the bottom) it says that the synchronization is complete.

_ **But what is strange is that I did the following:** _

- Notes imported from Evernote into Joplin Desktop
- synchronized with Nextcloud
- Joplin installed and synchronized on iphone  
And still it says in the synchronization status that there are more elements in the cloud than locally? How can that be?

Synchronization status (synchronized elements / entire elements)  
_ **Note: 4181/3928** _  
Folder: 221/215  
Resource: 8737/12725  
Day: 22/80  
NoteTag: 217/1143  
MasterKey: 0/0  
Revision: 29/572  
Total: 13407/18663

I don't understand that

🙂

---

<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:** [21 March 2021 16:15 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/6 "2021-03-21T16:15:22Z")

</div>

I think the sync is not finished on Desktop, the first sync can take several hours.

Mobil:  
Closing the Joplin App or send the Phone to sleep will stop the sync an the sync has to start again.

---

<div class="post-metadata">

**Author:** ![Yann1ck](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@Yann1ck](https://discourse.joplinapp.org/u/Yann1ck)\
**Post date:** [21 March 2021 16:32 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/7 "2021-03-21T16:32:23Z")

</div>

It looks like the sync on desktop did not finish. So just start it again on the Desktop to check if it really finished. If you look at the Total (13407/18663) you see that there is stuff is missing.  
If you sync a large amount of notes the Joplin message that the sync is complete is not always reliable, unfortunately.

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [23 March 2021 15:52 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/8 "2021-03-23T15:52:57Z")

</div>

Hi! I need help again, sorry.

## Synchronisationsstatus (synchronisierte Elemente / gesamte Elemen've been syncing for 2 days now and it doesn't seem to change much. Is that right?te)

Note: 4181/3926  
Folder: 221/215  
Resource: 8737/12727  
Tag: 22/80  
NoteTag: 217/1147  
MasterKey: 0/0  
Revision: 29/648  
Insgesamt: 13407/18743

2 Days before total was Total: 13407/18663

've been syncing for 2 days now and it doesn't seem to change much. Is that right?

🙂

---

<div class="post-metadata">

**Author:** ![Yann1ck](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@Yann1ck](https://discourse.joplinapp.org/u/Yann1ck)\
**Post date:** [23 March 2021 16:23 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/9 "2021-03-23T16:23:44Z")

</div>

Thats from your desktop right? Thats really odd and shouldnt happen.

Is there enough free space on your Nextcloud? Is their any error message?

Sorry for all these questions but Joplin sync is normally very robust. It could be some error related to the Evernote import. Your notes seem to be complete but some Resource (Documents, Prictures, etc) are missing. I dont know what the problem is.

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [24 March 2021 13:22 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/10 "2021-03-24T13:22:11Z")

</div>

Ok, thank you.

Yes, there is a lot of free space at my Nextcloud. I can't see an error. But...

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/c/ccfe694dac758e48db6eaddef81fa044ae3a5cc9.png)

Maybe it is a problem with Nextcloud? The last sync is just a few minutes old. But maybe it is not ok?

Is there any way to start new?

Thanks for your help

🙂

---

<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:** [24 March 2021 15:08 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/11 "2021-03-24T15:08:23Z")

</div>

> [@Steffimania](#):
>
> Is there any way to start new?

To start from zero with joplin and sync?

1. Export all you notes as JEX
2. Close Joplin
3. Delete .config\joplin-desktop
4. Delete the Appdata on the Mobile device
5. Delete all folders/files in your Nextcloud WebDAV Jolin folder
6. Start Joplin
7. Import the JEX file
8. Setup Sync on you PC
9. Wait untill all Data are synced
10. Setup Sync on Mobile device

Importend, make sure you have alle you data exported, otherwise data loss may occur!

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [24 March 2021 16:13 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/12 "2021-03-24T16:13:09Z")

</div>

Okay, thank you.

I think I will try this 🙂

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [25 March 2021 17:12 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/13 "2021-03-25T17:12:53Z")

</div>

Hi! I did it until 9. and the sync stopps here:

Synchronisationsstatus (synchronisierte Elemente / gesamte Elemente)  
Note: 3932/3932  
Folder: 216/216  
Resource: 4001/12046  
Tag: 0/74  
NoteTag: 0/1060  
MasterKey: 0/0  
Revision: 0/0  
Insgesamt: 8149/17328  
Im Konflikt: 0  
Zu löschen: 0

Is that normal?

Thanks for your help

🙂

---

<div class="post-metadata">

**Author:** ![johnny](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/johnny/32/3492_2.png) [@johnny](https://discourse.joplinapp.org/u/johnny)\
**Post date:** [25 March 2021 20:52 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/14 "2021-03-25T20:52:09Z")

</div>

The Problem is that Joplin has a hard coded timeout limit which is i think 120 seconds. This is not enough for very large attachments (except when using onedrive as in this case the attachments are uploaded in chunks). Joplin doesn't show all error message on the sidebar. See [Why are some sync error messages not shown in the GUI?](https://discourse.joplinapp.org/t/why-are-some-sync-error-messages-not-shown-in-the-gui/10750). You should read the log file and find large attachments which haven't been uploaded and delete them. Then the sync will work I guess.

---

<div class="post-metadata">

**Author:** ![roman\_r\_m](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/roman_r_m/32/3297_2.png) [@roman\_r\_m](https://discourse.joplinapp.org/u/roman_r_m)\
**Post date:** [25 March 2021 21:15 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/15 "2021-03-25T21:15:14Z")

</div>

Also, WebDAV/Nextcloud sync speed will be improved in the next version.

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [26 March 2021 12:36 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/16 "2021-03-26T12:36:17Z")

</div>

Hi Johnny! Thanks for your help.

I found a log file in .config/joplin-desktop/log.txt  
Is this the right one?

There I found some errors like this: FetchError: network timeout at: [https://mydomain.de/remote.php/webdav/Joplin/.resource/1acbfd9f34d54071bb51f5e83ddfd424](https://mydomain.de/remote.php/webdav/Joplin/.resource/1acbfd9f34d54071bb51f5e83ddfd424)

But what I don't understand is: "find large attachments which haven't been uploaded and delete them."

When I delete them, they will be gone? But I will need them in my joplin sync? Or do I misunderstand this?

Is there another way to save the attachments to Jolpin in my Nextcloud. Maybe I can upload them directly to a Joplin Folder in Nextcloud?

🙂

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [26 March 2021 13:33 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/17 "2021-03-26T13:33:42Z")

</div>

> [@Steffimania](#):
>
> There I found some errors like this: FetchError: network timeout at: [https://mydomain.de/remote.php/webdav/Joplin/.resource/1acbfd9f34d54071bb51f5e83ddfd424](https://mydomain.de/remote.php/webdav/Joplin/.resource/1acbfd9f34d54071bb51f5e83ddfd424)

Unfortunately this is nothing that Joplin can fix. Network timeouts are an underlying issue. Joplin relies on a network that works.

Some people had issues that their hosting provider added rate limiting, connection limits, and whatnot.  
Any chance you are running into a similar issue?

---

<div class="post-metadata">

**Author:** ![Steffimania](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/steffimania/32/7828_2.png) [@Steffimania](https://discourse.joplinapp.org/u/Steffimania)\
**Post date:** [26 March 2021 13:37 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/18 "2021-03-26T13:37:13Z")

</div>

Hi Tessus! Thanks for your help. I just wrote to my hosting provider to clarify this question. 🙂

---

<div class="post-metadata">

**Author:** ![johnny](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/johnny/32/3492_2.png) [@johnny](https://discourse.joplinapp.org/u/johnny)\
**Post date:** [26 March 2021 14:06 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/19 "2021-03-26T14:06:08Z")

</div>

> But what I don't understand is: "find large attachments which haven't been uploaded and delete them."  
> When I delete them, they will be gone? But I will need them in my joplin sync? Or do I misunderstand this?

Yes, that's what I meant. That's the easiest way to solve your problem but probably not the best way :D.

> Is there another way to save the attachments to Jolpin in my Nextcloud. Maybe I can upload them directly to a Joplin Folder in Nextcloud?

I think you can add attachment as relative path but you must than ensure that the paths work on all your devices. Alternatively you can sync to the filestorage which you again can sync with the nextcloud desktop client. I guess this is the best option for you

@tessus

> Unfortunately this is nothing that Joplin can fix. Network timeouts are an underlying issue. Joplin relies on a network that works.

I disagree with you on that point. It is not easy but theoretically joplin could set the timeout as a function of the filesize which is not the case at the moment. Even with a good network bandwidth, the upload will fail when you have a multiple 100 Mbs large attachment. You could obviously argue that this is not what Joplin is designed for but personaly I think this is something Joplin should be able to handle anyway. E.g. I have attached an installer for an old scanner which you can't find on the internet any more to a note in which I describe how to use the installer on modern devices. I think it is absolutely reasonable to do that. I have managed to upload the attachment by changing the hard coded 120 seconds and build Joplin from source ...

> <https://github.com/laurent22/joplin/blob/ccbc329cbf806e9b6db6d37f8c837629ee6c3a60/packages/lib/shim.ts#L150-L152>

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [26 March 2021 14:20 UTC](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918/20 "2021-03-26T14:20:50Z")

</div>

Hmm, in this case there's something else broken.

By definition a network timeout implies that nothing is happening. If there's a file transfer ongoing, there can't be a timeout.

In that case, it's an abort-long-running-transfer trigger, not a timeout.

P.S.: This still doesn't rule out that the provider isn't doing something odd.

[Next page](https://discourse.joplinapp.org/t/iphone-sync-via-nextcloud/15918.md?page=2)
