# OneDrive sync issue

**URL:** <https://discourse.joplinapp.org/t/onedrive-sync-issue/5229>\
**Category:** Support\
**Created:** [17 January 2020 15:48 UTC](https://discourse.joplinapp.org/t/onedrive-sync-issue/5229 "2020-01-17T15:48:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![banchose](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/banchose/32/2094_2.png) [@banchose](https://discourse.joplinapp.org/u/banchose)\
**Post date:** [17 January 2020 15:48 UTC](https://discourse.joplinapp.org/t/onedrive-sync-issue/5229/1 "2020-01-17T15:48:51Z")

</div>

Joplin version: 1.0.175 (prod, Linux)  
Linux: Arch (Linux aurora 5.4.12-arch1-1 #1 SMP PREEMPT Tue, 14 Jan 2020 21:44:31 +0000 x86\_64 GNU/Linux)

Having issues syncing with OneDrive on Linux. Similar behavior on my Windows instance. Has been working flawlessly. Seemed to start after attaching pdfs to a note. To troubleshoot, I Created an empty Joplin instance and used the sync target “OneDrive Dev” because it conveniently creates a new folder name under OneDrive App directory.

To recreate on Linux

New Joplin user instance  
flags.txt with debug entries copied to ~/.config/joplin-desktop  
Open Joplin  
Remove default notebook  
Authenticate to OneDrive successfully  
Create new notebook and note  
Attach pdf to the note.  
syncs successfully.  
Turn on encryption  
Start sync  
Error occurs

2020-01-17 10:33:48: “Starting scheduled sync”  
2020-01-17 10:33:48: “Sync: starting: Starting synchronisation to target 4… [1579275228331]”  
2020-01-17 10:33:48: “mkdir /drive/root:/Apps/JoplinDev/.sync”  
2020-01-17 10:33:48: “mkdir /drive/root:/Apps/JoplinDev/.lock”  
2020-01-17 10:33:48: “mkdir /drive/root:/Apps/JoplinDev/.resource”  
2020-01-17 10:33:48: “list /drive/root:/Apps/JoplinDev”  
2020-01-17 10:33:49: “get /drive/root:/Apps/JoplinDev/.sync/version.txt”  
2020-01-17 10:33:49: “put /drive/root:/Apps/JoplinDev/.sync/version.txt”, “null”  
2020-01-17 10:33:49: “stat /drive/root:/Apps/JoplinDev/78336b687e2545d7b71154e321ab7290.md”  
2020-01-17 10:33:50: “get /drive/root:/Apps/JoplinDev/78336b687e2545d7b71154e321ab7290.md”  
2020-01-17 10:33:50: “Sync: updateRemote: local has changes: Resource: (Local 78336b687e2545d7b71154e321ab7290): (Remote 78336b687e2545d7b71154e321ab7290.md)”  
2020-01-17 10:33:51: “put /drive/root:/Apps/JoplinDev/.resource/78336b687e2545d7b71154e321ab7290”, “{“path”:”/home/temp/.config/joplin-desktop/resources/78336b687e2545d7b71154e321ab7290.crypted",“source”:“file”}"  
2020-01-17 10:33:51: "SyntaxError: OneDriveApi::exec: Cannot parse JSON error:

 Runtime Error body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } } 

```
<body bgcolor="white">

        <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

        <h2> <i>Runtime Error</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
        <br><br>

        <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br>
```

---

<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:** [18 January 2020 14:33 UTC](https://discourse.joplinapp.org/t/onedrive-sync-issue/5229/2 "2020-01-18T14:33:07Z")

</div>

See here: [https://github.com/laurent22/joplin/issues/2166](https://github.com/laurent22/joplin/issues/2166)
