OneDrive sync error from Debian: FetchError ENOTFOUND

Operating system

Linux

Joplin version

3.2.12

Desktop version info

Joplin 3.2.12 (prod, linux)

Client ID: 426ef4812035456389b87e7d6439b6f9
Sync Version: 3
Profile Version: 47
Keychain Supported: No

Revision: d6f1ca4

Backup: 1.4.2
Freehand Drawing: 2.14.0

Sync target

OneDrive

What issue do you have?

Hello,

I have been using Joplin on mobile (with OneSync), Windows and Debian. Recently the sync on Debian stopped working, when fetching I get this error:

2025-02-07 18:34:44: OneDriveApi: [error] Got unhandled error: ENOTFOUND request to https://my.microsoftpersonalcontent.com/personal/9f466b025ac22699/_layouts/15/download.aspx?UniqueId=fac759ef-90cf-4ac9-be32-ad5d663450b8&Translate=false&tempauth=v1e.eyJzaXRlaWQiOiJkYTI5OWM3Yi02OTE2LTQyNmEtYTRmZi1lYjA0N2EwODdmZTkiLCJhcHBfZGlzcGxheW5hbWUiOiJHcmFwaCIsImFwcGlkIjoiZTA5ZmMwZGUtYzk1OC00MjRmLTgzYTItZTU2YTcyMWQzMzFiIiwiYXVkIjoiMDAwMDAwMDMtMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL215Lm1pY3Jvc29mdHBlcnNvbmFsY29udGVudC5jb21AOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwiZXhwIjoiMTczODk1MzI3NCJ9.z4rc9RUg2xBtRd5q12HJRlt2G7SkPAGl-KGtkgLx_GfeVKxj-auFNB0AzX5xY-K4UOVZ6VH1dwQ7B_GMZabSFT1DIdcZbcgjkrjlvD5-6pXSizCTmovAna0rsbeJ3tuaKXiA33uT16shHflKRGrCIY8CQi-9FGKwEDX3_UgeH8IcWXO4jEsUqcVJ_DFyztfnssEO2tH4Fm0yBoQUVMmZ8SBt44vkC8O4rb0Y2M2LW9b0Mb6J23cvZHtijtDyUh_rfzYhvkXfAgxCk4OpD3neBy7KuPuCGR9B7tkd8O5KQFSm9ZFmBj0CEQr1oAspn-7wBJ-frlVukw7o8dX9QRkdHy7NccAmx67eBuSDJlWhe1baDEqjoCaJVl0eER5vwaurpud7dCMIp4Hx18UOwV59q0n8_iAEMBNMI67r3eLWmztm3uk44atSJJc1NdcWyHID.TwP2UHpAwTpLmJ2HcyRcoGlpmJqOtfyGK4w8TxLNpzk&ApiVersion=2.0 failed, reason: getaddrinfo ENOTFOUND my.microsoftpersonalcontent.com FetchError: request to https://my.microsoftpersonalcontent.com/personal/9f466b025ac22699/_layouts/15/download.aspx?UniqueId=fac759ef-90cf-4ac9-be32-ad5d663450b8&Translate=false&tempauth=v1e.eyJzaXRlaWQiOiJkYTI5OWM3Yi02OTE2LTQyNmEtYTRmZi1lYjA0N2EwODdmZTkiLCJhcHBfZGlzcGxheW5hbWUiOiJHcmFwaCIsImFwcGlkIjoiZTA5ZmMwZGUtYzk1OC00MjRmLTgzYTItZTU2YTcyMWQzMzFiIiwiYXVkIjoiMDAwMDAwMDMtMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL215Lm1pY3Jvc29mdHBlcnNvbmFsY29udGVudC5jb21AOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwiZXhwIjoiMTczODk1MzI3NCJ9.z4rc9RUg2xBtRd5q12HJRlt2G7SkPAGl-KGtkgLx_GfeVKxj-auFNB0AzX5xY-K4UOVZ6VH1dwQ7B_GMZabSFT1DIdcZbcgjkrjlvD5-6pXSizCTmovAna0rsbeJ3tuaKXiA33uT16shHflKRGrCIY8CQi-9FGKwEDX3_UgeH8IcWXO4jEsUqcVJ_DFyztfnssEO2tH4Fm0yBoQUVMmZ8SBt44vkC8O4rb0Y2M2LW9b0Mb6J23cvZHtijtDyUh_rfzYhvkXfAgxCk4OpD3neBy7KuPuCGR9B7tkd8O5KQFSm9ZFmBj0CEQr1oAspn-7wBJ-frlVukw7o8dX9QRkdHy7NccAmx67eBuSDJlWhe1baDEqjoCaJVl0eER5vwaurpud7dCMIp4Hx18UOwV59q0n8_iAEMBNMI67r3eLWmztm3uk44atSJJc1NdcWyHID.TwP2UHpAwTpLmJ2HcyRcoGlpmJqOtfyGK4w8TxLNpzk&ApiVersion=2.0 failed, reason: getaddrinfo ENOTFOUND my.microsoftpersonalcontent.com Code: ENOTFOUND FetchError: request to https://my.microsoftpersonalcontent.com/personal/9f466b025ac22699/_layouts/15/download.aspx?UniqueId=fac759ef-90cf-4ac9-be32-ad5d663450b8&Translate=false&tempauth=v1e.eyJzaXRlaWQiOiJkYTI5OWM3Yi02OTE2LTQyNmEtYTRmZi1lYjA0N2EwODdmZTkiLCJhcHBfZGlzcGxheW5hbWUiOiJHcmFwaCIsImFwcGlkIjoiZTA5ZmMwZGUtYzk1OC00MjRmLTgzYTItZTU2YTcyMWQzMzFiIiwiYXVkIjoiMDAwMDAwMDMtMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL215Lm1pY3Jvc29mdHBlcnNvbmFsY29udGVudC5jb21AOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwiZXhwIjoiMTczODk1MzI3NCJ9.z4rc9RUg2xBtRd5q12HJRlt2G7SkPAGl-KGtkgLx_GfeVKxj-auFNB0AzX5xY-K4UOVZ6VH1dwQ7B_GMZabSFT1DIdcZbcgjkrjlvD5-6pXSizCTmovAna0rsbeJ3tuaKXiA33uT16shHflKRGrCIY8CQi-9FGKwEDX3_UgeH8IcWXO4jEsUqcVJ_DFyztfnssEO2tH4Fm0yBoQUVMmZ8SBt44vkC8O4rb0Y2M2LW9b0Mb6J23cvZHtijtDyUh_rfzYhvkXfAgxCk4OpD3neBy7KuPuCGR9B7tkd8O5KQFSm9ZFmBj0CEQr1oAspn-7wBJ-frlVukw7o8dX9QRkdHy7NccAmx67eBuSDJlWhe1baDEqjoCaJVl0eER5vwaurpud7dCMIp4Hx18UOwV59q0n8_iAEMBNMI67r3eLWmztm3uk44atSJJc1NdcWyHID.TwP2UHpAwTpLmJ2HcyRcoGlpmJqOtfyGK4w8TxLNpzk&ApiVersion=2.0 failed, reason: getaddrinfo ENOTFOUND my.microsoftpersonalcontent.com at ClientRequest.<anonymous> (/tmp/.mount_JoplinB8zwxW/resources/app.asar/node_modules/@joplin/lib/node_modules/node-fetch/lib/index.js:1491:11) at ClientRequest.emit (node:events:519:28) at emitErrorEvent (node:_http_client:101:11) at TLSSocket.socketErrorListener (node:_http_client:504:5) at TLSSocket.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

I have tried:

  1. Reinstalling
  2. Going through the Sync Wizard again

I would be glad to have it working again! Help much appreciated. :slight_smile:

Screenshots

Possibly some kind of networking issue? You could try tethering mobile internet from your phone and connecting to that network on your Debian, and see if that makes any difference

I have tried out the suggestion, unfortunately to no avail. Joplin will fetch a dozen or so till two hundred notes, seemingly at random, and then return the error.

In synchronization, advanced settings, try changing max concurrent connections to 1.

Also, when you say that you went through the sync wizard again, does that mean you created a new profile and then did the initial sync again from scratch?

I hadn't tried creating a new profile before, but now that you've mentioned it, I have given it a go. This time the desktop app will not fetch a single file, which makes me think that the Apps/Graph folder on OneDrive might be at the core of the issue, as in: what if the app is looking for Apps/Joplin by default but the initial synchronization started putting my notes in the other directory? I will look into exporting my notes, deleting the /Graph directory and resyncing everything from scratch when I find a moment.

Do you mean that the sync produces an error before any files are synced, or rather that the sync completes successfully but there are no notes downloaded?

There have been a number of issues relating to OneDrive sync reported over the last several months, one of which was caused by OneDrive randomly deciding to allocate a new 'special' folder for Joplin's data, which breaks the two way sync (I think all the reported issues are likely due to this problem, though there was insufficient information to confirm). In most cases this has resulted in some or all of the user's notes being deleted, but I think in your case your Linux client has instead got stuck due an authentication problem, rather than switching to a new special folder successfully. I assert this because assuming in your case you are able to complete sync on a new profile, but with no notes actually synced, this suggests on your new profile OneDrive has allocated a separate special folder for Joplin's data, using the new authentication which you set up in the sync wizard. You should see either both a 'Joplin' and a 'Graph' folder in the App directory on OneDrive, or a 'Graph' and a 'Graph 1' folder if this is true.

Regarding the risk of the OneDrive issues causing loss of notes, I have implemented a safeguard to protect against this scenario which extends the existing fail-safe mechanism, which has literally just been built into a new Joplin release within the last few days. You can get this change now, if you want to use the latest pre-releases for desktop and mobile, but if you want to stick to the mainline releases you might need to wait a few months to get that feature.

For full details see PR Desktop, Mobile: Harden failsafe logic to check for the presence of info.json, rather than just the item count by mrjo118 · Pull Request #11750 · laurent22/joplin · GitHub which has been added to the 3.3.1 release of desktop and Android

That sounds like the way to go. If there are multiple folders with names Joplin, Graph, Graph 1 etc, make sure you delete all of them

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