Cloud Sync Task: InvalidAuthenticationToken

TheHellSite

Dabbler
Joined
Mar 12, 2021
Messages
12
Hello,

a few weeks ago I enabled 2FA on my Microsoft account.
Because of that I had re-authenticate every device that was logged in to that account, which I did.

The cloud sync task has been working without any issues before that and also after that.
However today I noticed that SOME cloud sync tasks that are using the 2FA enabled microsoft account fail.
I said some because I have 4 tasks configured and 3 of them work just fine!
One of them doesn't.
Rebooting TrueNAS / Disabling-Enabling the task doesn't solve the issue.

See the error log of a dry run.
Code:
2021/04/20 14:47:47 ERROR : Windows/GoogleChrome_Portable/Data/profile/Default/Extensions/nmmhkkegccagdldgiimedpiccmgmieda/1.0.0.6_0/_locales/ko: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:47:47 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Checks:              4166 / 4166, 100%
Elapsed time:        50.3s

2021/04/20 14:48:00 ERROR : Windows/VSCode_Portable/resources/app/extensions/shaderlab/syntaxes: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:48:01 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 2 (retrying may help)
Checks:              4688 / 4688, 100%
Elapsed time:       1m4.3s

2021/04/20 14:48:10 ERROR : Local file system at /mnt/NAS_pool/nas/Data/OneDrive/Software: not deleting files as there were IO errors
2021/04/20 14:48:10 ERROR : Local file system at /mnt/NAS_pool/nas/Data/OneDrive/Software: not deleting directories as there were IO errors
2021/04/20 14:48:10 INFO  : There was nothing to transfer
2021/04/20 14:48:10 ERROR : Attempt 1/3 failed with 3 errors and: march failed with 2 error(s): first error: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:48:11 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks:              5063 / 5063, 100%
Elapsed time:      1m14.3s

2021/04/20 14:48:23 ERROR : Windows/PDF-XChangeEditor_Portable/Common/LeadTools/OcrResources: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:48:23 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Checks:              7620 / 7620, 100%
Elapsed time:      1m26.3s

2021/04/20 14:48:52 ERROR : Windows/GoogleChrome_Portable/Data/profile/Default/Storage/ext/nmmhkkegccagdldgiimedpiccmgmieda/def/GPUCache: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:48:53 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 2 (retrying may help)
Checks:              9141 / 9141, 100%
Elapsed time:      1m56.3s

2021/04/20 14:48:58 ERROR : Windows/GoogleChrome_Portable/Data/profile/Default/Extensions/pkedcjkdefgpdelpbcmbmeomcjbeemfm/8420.518.0.2_0/_locales/kn: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:48:58 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 3 (retrying may help)
Checks:              9317 / 9317, 100%
Elapsed time:       2m1.3s

2021/04/20 14:49:02 ERROR : Windows/VSCode_Portable/resources/app/extensions/ms-vscode.js-debug/src/ui/profiling: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:49:02 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 4 (retrying may help)
Checks:              9541 / 9541, 100%
Elapsed time:       2m5.3s

2021/04/20 14:49:18 ERROR : Local file system at /mnt/NAS_pool/nas/Data/OneDrive/Software: not deleting files as there were IO errors
2021/04/20 14:49:18 ERROR : Local file system at /mnt/NAS_pool/nas/Data/OneDrive/Software: not deleting directories as there were IO errors
2021/04/20 14:49:18 INFO  : There was nothing to transfer
2021/04/20 14:49:18 ERROR : Attempt 2/3 failed with 5 errors and: march failed with 4 error(s): first error: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:49:18 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks:             10053 / 10053, 100%
Elapsed time:      2m21.3s

2021/04/20 14:49:42 ERROR : Windows/GoogleChrome_Portable/Data/profile/Default/Extensions: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:49:42 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Checks:             13387 / 13387, 100%
Elapsed time:      2m45.3s

2021/04/20 14:49:44 ERROR : Windows/GoogleChrome_Portable/Data/profile/WidevineCdm: error reading source directory: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:49:44 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 2 (retrying may help)
Checks:             13434 / 13434, 100%
Elapsed time:      2m47.3s

2021/04/20 14:50:13 ERROR : Local file system at /mnt/NAS_pool/nas/Data/OneDrive/Software: not deleting files as there were IO errors
2021/04/20 14:50:13 ERROR : Local file system at /mnt/NAS_pool/nas/Data/OneDrive/Software: not deleting directories as there were IO errors
2021/04/20 14:50:13 INFO  : There was nothing to transfer
2021/04/20 14:50:13 ERROR : Attempt 3/3 failed with 3 errors and: march failed with 2 error(s): first error: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
2021/04/20 14:50:13 INFO  :
Transferred:                0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 3 (retrying may help)
Checks:             14631 / 14631, 100%
Elapsed time:      3m15.8s

2021/04/20 14:50:13 Failed to sync with 3 errors: last error was: march failed with 2 error(s): first error: couldn't list files: InvalidAuthenticationToken: Unable to initialize RPS
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I have 4 tasks configured and 3 of them work just fine!
Those probably still have the token from before the 2FA change (which will expire at some point and all 4 will not work).


Did you see this text when you set up 2FA?

Set up two-step verification
Two-step verification adds an extra layer of protection to your account. After you've turned it on, we'll ask you to enter an additional security code when you sign in. We'll provide this security code only to you.
In the following steps, we'll help you:

  1. Make sure you have up-to-date security info where you can receive security codes.
  2. Print or write down your recovery code.
  3. Create app passwords for apps and devices (such as Xbox 360, Windows Phone 8 (or earlier), or mail apps on your other devices) that don't support two-step verification codes.
I suspect it's the last one that you needed to pay attention to (even if it doesn't mention NAS products or other sync apps).

You will most likely need to set up an application password (and then re-do the cloud credentials using that method).
 

TheHellSite

Dabbler
Joined
Mar 12, 2021
Messages
12
Yes, it is working again.
But I didn't do anything since the issue is on microsofts side.
 

Mark Holtz

Contributor
Joined
Feb 3, 2015
Messages
124
Top