# Sync problem on windows work computer with onedrive

**URL:** <https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279>\
**Category:** Support\
**Created:** [8 December 2021 11:58 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279 "2021-12-08T11:58:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Magnus](https://discourse.joplinapp.org/u/Magnus)\
**Post date:** [8 December 2021 11:58 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/1 "2021-12-08T11:58:08Z")

</div>

Hello  
I am trying to sync joplin with my onedrivel from my work computer, but i get this error:

Last error: Error: Could not execute request after multiple attempts: GET ://graph.microsoft.com/v1.0/drive/root:/Apps/Joplin/info.json:/content

On the website it says the following:

{"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty.","innerError":{"date":"2021-12-08T11:53:56","request-id":"09afdbe9-e4ab-4fc9-8bef-d0ce6e52c7ce","client-request-id":"09afdbe9-e4ab-4fc9-8bef-d0ce6e52c7ce"}}}

I am using version: 2.5.12

I am able to do it from my private computer but not from my work computer, anybody that knows what to do?

---

<div class="post-metadata">

**Author:** ![Daeraxa](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/daeraxa/32/6172_2.png) [@Daeraxa](https://discourse.joplinapp.org/u/Daeraxa)\
**Post date:** [8 December 2021 12:14 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/2 "2021-12-08T12:14:20Z")

</div>

Is it OneDrive for business? So far as I know it isn't supported, only personal OneDrive syncing currently works.

---

<div class="post-metadata">

**Author:** ![graphit0](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/graphit0/32/3435_2.png) [@graphit0](https://discourse.joplinapp.org/u/graphit0)\
**Post date:** [8 December 2021 12:17 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/3 "2021-12-08T12:17:14Z")

</div>

One potential solution may be to reset the profile as posted here

> <https://github.com/laurent22/joplin/issues/161#issuecomment-356994067>
>
> \### Operating system
> 
> \- \[\] Windows
> \- \[X\] macOS
> \- \[\] Linux
> \- \[\] Android
> …- \[\] iOS
> 
> \### Application
> 
> \- \[\] Desktop
> \- \[\] Mobile
> \- \[X\] Terminal
> 
> \*If it is a bug if possible please provide a screenshot showing the problem\*
> 
> \*If there is an error, please copy and paste the full error message\*
> 
> \---
> 
> I've recently set up Joplin on a second machine, made some notes, and synced with OneDrive. It all worked, including retrieving the notes created on the first machine I installed Joplin on.
> 
> I've now tried to sync on the first macine again (my macOS laptop), and the new notes aren't coming in. According to the logs, Joplin seems to think the OneDrive token has expired, and keeps trying to renew it until it finally gives up. The logs will be pasted below, with the token removed.
> 
> I did try to run \`joplin config sync.3.auth = ""\` to unset the key (which I verified with \`joplin config sync.3.auth\`) and reran sync. It went through the oauth setup again, and seemed to succeed. Running \`joplin config sync.3.auth\` again showed that the auth key was again set properly. It still did not retrieve the new notes, though, and had the same errors. The logs below are from the run following redoing the auth token, so the token was less than a minute old.
> 
> \`\`\`
> 2018-01-11 10:12:33: "Profile directory: /Users/patrickaikens/.config/joplin"
> 2018-01-11 10:12:33: "Trying to load 0 master keys..."
> 2018-01-11 10:12:33: "Loaded master keys: 0"
> 2018-01-11 10:12:34: "Setting up recurrent sync with interval 300"
> 2018-01-11 10:12:34: "Reducer action", "SETTING\_UPDATE\_ALL"
> 2018-01-11 10:12:34: "Refreshing notes:", "null", "null"
> 2018-01-11 10:12:34: "Reducer action", "NOTE\_UPDATE\_ALL, "{\\"options\\":{\\"order\\":\[{\\"by\\":\\"user\_updated\_time\\",\\"dir\\":\\"DESC\\"}\],\\"uncompletedTodosOnTop\\":true},\\"parentId\\":null}""
> 2018-01-11 10:12:34: "Reducer action", "NOTE\_SELECT, "
> 2018-01-11 10:12:34: "Render: root"
> 2018-01-11 10:12:34: "Render: mainWindow"
> 2018-01-11 10:12:34: "Render: vLayout"
> 2018-01-11 10:12:34: "Render: hLayout"
> 2018-01-11 10:12:34: "Rebuilding items...", "null", "", "null"
> 2018-01-11 10:12:34: "Render: folderList"
> 2018-01-11 10:12:34: "Render: noteList"
> 2018-01-11 10:12:34: "Render: noteLayout"
> 2018-01-11 10:12:34: "Render: noteText"
> 2018-01-11 10:12:34: "Render: statusBar"
> 2018-01-11 10:12:34: "Trying to load 0 master keys..."
> 2018-01-11 10:12:34: "Loaded master keys: 0"
> 2018-01-11 10:12:34: "Reducer action", "MASTERKEY\_REMOVE\_NOT\_LOADED"
> 2018-01-11 10:12:34: "Scheduling sync operation..."
> 2018-01-11 10:12:34: "Setting up recurrent sync with interval 300"
> 2018-01-11 10:12:34: "Reducer action", "FOLDER\_UPDATE\_ALL"
> 2018-01-11 10:12:34: "Reducer action", "TAG\_UPDATE\_ALL"
> 2018-01-11 10:12:34: "Reducer action", "FOLDER\_SELECT, e7fe4bc584e04f989ac41cd345ca6dc4"
> 2018-01-11 10:12:34: "Refreshing notes:", "2", "e7fe4bc584e04f989ac41cd345ca6dc4"
> 2018-01-11 10:12:34: "Reducer action", "NOTE\_UPDATE\_ALL, "{\\"options\\":{\\"order\\":\[{\\"by\\":\\"user\_updated\_time\\",\\"dir\\":\\"DESC\\"}\],\\"uncompletedTodosOnTop\\":true},\\"parentId\\":\\"e7fe4bc584e04f989ac41cd345ca6dc4\\"}""
> 2018-01-11 10:12:34: "Reducer action", "NOTE\_SELECT, "
> 2018-01-11 10:12:34: "Rebuilding items...", "Folder", "e7fe4bc584e04f989ac41cd345ca6dc4", "null"
> 2018-01-11 10:12:34: "Render: folderList"
> 2018-01-11 10:12:34: "Render: noteList"
> 2018-01-11 10:12:34: "Render: noteText"
> 2018-01-11 10:12:35: "DecryptionWorker: starting decryption..."
> 2018-01-11 10:12:35: "DecryptionWorker: completed decryption."
> 2018-01-11 10:12:35: "Shortcut:", ":", "Enter command line mode"
> 2018-01-11 10:12:35: "Render: statusBar"
> 2018-01-11 10:12:38: "Got command: sync"
> 2018-01-11 10:12:38: "execCommand()", "\["sync"\]"
> 2018-01-11 10:12:38: "Saving updated OneDrive auth."
> 2018-01-11 10:12:38: "Render: statusBar"
> 2018-01-11 10:12:38: "Reducer action", "SYNC\_STARTED"
> 2018-01-11 10:12:38: "Sync: starting: Starting synchronisation to target 3... \[1515683558336\]"
> 2018-01-11 10:12:38: "Reducer action", "SYNC\_REPORT\_UPDATE"
> 2018-01-11 10:12:38: "mkdir /drive/root:/Apps/Joplin/.sync"
> 2018-01-11 10:12:38: "Render: statusBar"
> 2018-01-11 10:12:38: "mkdir /drive/root:/Apps/Joplin/.resource"
> 2018-01-11 10:12:38: "delta /drive/root:/Apps/Joplin"
> 2018-01-11 10:12:39: "Token expired: refreshing..."
> 2018-01-11 10:12:39: "Saving updated OneDrive auth."
> 2018-01-11 10:12:39: "Reducer action", "SETTING\_UPDATE\_ONE"
> 2018-01-11 10:12:40: "Token expired: refreshing..."
> 2018-01-11 10:12:40: "Saving updated OneDrive auth."
> 2018-01-11 10:12:40: "Reducer action", "SETTING\_UPDATE\_ONE"
> 2018-01-11 10:12:40: "Token expired: refreshing..."
> 2018-01-11 10:12:41: "Saving updated OneDrive auth."
> 2018-01-11 10:12:41: "Reducer action", "SETTING\_UPDATE\_ONE"
> 2018-01-11 10:12:41: "Token expired: refreshing..."
> 2018-01-11 10:12:41: "Saving updated OneDrive auth."
> 2018-01-11 10:12:41: "Reducer action", "SETTING\_UPDATE\_ONE"
> 2018-01-11 10:12:42: "Token expired: refreshing..."
> 2018-01-11 10:12:42: "Saving updated OneDrive auth."
> 2018-01-11 10:12:42: "Reducer action", "SETTING\_UPDATE\_ONE"
> 2018-01-11 10:12:42: "Error: Could not execute request after multiple attempts: GET https://s2s-api.onedrive.com/v1.0/drives('me')/items('root%252FApps%252FJoplin')/oneDrive.delta?token=\<redacted\>
> Error: Could not execute request after multiple attempts: GET https://s2s-api.onedrive.com/v1.0/drives('me')/items('root%252FApps%252FJoplin')/oneDrive.delta?token=\<redacted\>
> at OneDriveApi.exec (/usr/local/Cellar/joplin/0.10.87/libexec/lib/node\_modules/joplin/lib/onedrive-api.js:244:9)
> at \<anonymous\>
> at process.\_tickCallback (internal/process/next\_tick.js:160:7)"
> 2018-01-11 10:12:42: "Sync: finished: Synchronisation finished \[1515683558336\]"
> 2018-01-11 10:12:42: "Reducer action", "SYNC\_REPORT\_UPDATE"
> 2018-01-11 10:12:42: "Operations completed: "
> 2018-01-11 10:12:42: "Total folders: 4"
> 2018-01-11 10:12:42: "Total notes: 2"
> 2018-01-11 10:12:42: "Total resources: 0"
> 2018-01-11 10:12:42: "There was some errors:"
> 2018-01-11 10:12:42: "Error: Could not execute request after multiple attempts: GET https://s2s-api.onedrive.com/v1.0/drives('me')/items('root%252FApps%252FJoplin')/oneDrive.delta?token=\<redacted\>
> Error: Could not execute request after multiple attempts: GET https://s2s-api.onedrive.com/v1.0/drives('me')/items('root%252FApps%252FJoplin')/oneDrive.delta?token=\<redacted\>
> at OneDriveApi.exec (/usr/local/Cellar/joplin/0.10.87/libexec/lib/node\_modules/joplin/lib/onedrive-api.js:244:9)
> at \<anonymous\>
> at process.\_tickCallback (internal/process/next\_tick.js:160:7)"
> 2018-01-11 10:12:42: "Reducer action", "SYNC\_COMPLETED"
> 2018-01-11 10:12:42: "Reducer action", "FOLDER\_SELECT, e7fe4bc584e04f989ac41cd345ca6dc4"
> 2018-01-11 10:12:42: "Refreshing notes:", "2", "e7fe4bc584e04f989ac41cd345ca6dc4"
> 2018-01-11 10:12:42: "Reducer action", "NOTE\_UPDATE\_ALL, "{\\"options\\":{\\"order\\":\[{\\"by\\":\\"user\_updated\_time\\",\\"dir\\":\\"DESC\\"}\],\\"uncompletedTodosOnTop\\":true},\\"parentId\\":\\"e7fe4bc584e04f989ac41cd345ca6dc4\\"}""
> 2018-01-11 10:12:42: "Reducer action", "NOTE\_SELECT, "
> 2018-01-11 10:12:42: "Render: root"
> 2018-01-11 10:12:42: "Render: mainWindow"
> 2018-01-11 10:12:42: "Render: vLayout"
> 2018-01-11 10:12:42: "Render: hLayout"
> 2018-01-11 10:12:42: "Render: folderList"
> 2018-01-11 10:12:42: "Render: noteList"
> 2018-01-11 10:12:42: "Render: noteLayout"
> 2018-01-11 10:12:42: "Render: noteText"
> 2018-01-11 10:12:42: "Render: statusBar"
> 2018-01-11 10:12:43: "Shortcut:", ":", "Enter command line mode"
> 2018-01-11 10:12:43: "Render: statusBar"
> 2018-01-11 10:12:44: "Got command: q"
> \`\`\`

Please make sure you have a backup before fiddling with the profile.

Similar (unsolved) thread with this error:

> [@Error synchronizing to OneDrive after enabling encryption E2E](https://discourse.joplinapp.org/t/error-synchronizing-to-onedrive-after-enabling-encryption-e2e/15102):
>
> I need to know if this is a user error or if this is a bug. If found to be a bug, I will follow up on a bug ticket in Github. I am getting this error when synchronizing: Last error: Error: Could not execute request after multiple attempts: PUT [https://graph.microsoft.com/v1.0/drive/root:/Apps/Joplin/.resource/0cfa2966ed](https://graph.microsoft.com/v1.0/drive/root:/Apps/Joplin/.resource/0cfa2966ed)...:/createUploadSession Joplin for Desktop version: 1.7.11 (prod, linux) Sync Issue Syncing with OneDrive OS: Oracle Linux 8.3 I have 2FA enabled on my OneDrive account Er…

---

<div class="post-metadata">

**Author:** ![Magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Magnus](https://discourse.joplinapp.org/u/Magnus)\
**Post date:** [8 December 2021 13:30 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/4 "2021-12-08T13:30:55Z")

</div>

It is not Onedrive for business

---

<div class="post-metadata">

**Author:** ![Magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Magnus](https://discourse.joplinapp.org/u/Magnus)\
**Post date:** [8 December 2021 13:43 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/5 "2021-12-08T13:43:15Z")

</div>

I will try to reset the profile when i get time.

And to the similar error, i dont get that error in log i get:  
2021-12-08 14:33:32: "DecryptionWorker: cannot start because no master key is currently loaded."  
2021-12-08 14:37:14: "Trying to reload note that has been deleted:", "null"

---

<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:** [30 December 2021 11:19 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/6 "2021-12-30T11:19:42Z")

</div>

OneDrive for Business is supported btw 😉

---

<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:** [29 January 2022 11:20 UTC](https://discourse.joplinapp.org/t/sync-problem-on-windows-work-computer-with-onedrive/22279/7 "2022-01-29T11:20:27Z")

</div>

Closed on 29 January 2022 11:20 UTC

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