Python script failure during Cloud Sync Task with Microsoft Onedrive, error: "InvalidAuthenticationToken: Unable to initialize RPS"

Description

I received an error message stating "Cloud sync task "Mark (OneDrive)" failed". When I reviewed the log for the Cloud Sync job, I saw the following:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1070, in sync
await self._sync(cloud_sync, options, job)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1117, in _sync
await rclone(self.middleware, job, cloud_sync, options["dry_run"])
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 236, in rclone
raise ValueError(message)
ValueError: rclone failed with exit code 1

I checked /var/db/system/cores/ for any core crashes, but it was empty. When I manually re-ran the job, it completed successfully. In reviewing the attached log 1010.log, it appears to be related to an temporary issue at Microsoft's end.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk September 20, 2021 at 11:54 AM

Bug Clerk September 20, 2021 at 11:40 AM

Mark Holtz September 18, 2021 at 10:37 AM

Issue is probably related to NAS-111826-Update rclone to 1.56.0 based upon https://github.com/rclone/rclone/issues/5270 

Mark Holtz September 18, 2021 at 10:33 AM

I experienced the issue again today. 

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1095, in sync_onetime
await self._sync(cloud_sync, options, job)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1117, in _sync
await rclone(self.middleware, job, cloud_sync, options["dry_run"])
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 236, in rclone
raise ValueError(message)
ValueError: rclone failed with exit code 1

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created September 17, 2021 at 8:14 AM
Updated July 6, 2022 at 8:57 PM
Resolved October 5, 2021 at 9:31 PM