Hello,
I started to have some problems with cloud credentials for a OneDrive personal account after upgrading to 11.2-U5. The problem is that the settings for Drive Account Type as "PERSONAL" in Cloud Credentials is not saved and hence each time rclone is trying to make a sync is giving the error below:
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 167, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1098, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1046, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 549, in list_directory
return await self.ls(dict(cloud_sync, credentials=credentials), path)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 553, in ls
with RcloneConfig(config) as config:
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 59, in __enter__
config.update(dict(self.cloud_sync["attributes"], **self.provider.get_task_extra(self.cloud_sync)))
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/../rclone/remote/onedrive.py", line 28, in get_task_extra
}[task["credentials"]["attributes"].get("drive_type", "")]
KeyError: 'personal'
I have noticed that if I am very quick and input the PERSONAL setting in Cloud Credentials and then in less than 5 seconds I start the cloud sync task manual rclone is starting to sync my OneDrive folders to their equivalent volumes on FreeNAS. However the setting is then deleted again from Cloud Credentials and the cloud sync task gives the same error above.
What can I do to solve this issue?
Thanks a lot in advance!
I started to have some problems with cloud credentials for a OneDrive personal account after upgrading to 11.2-U5. The problem is that the settings for Drive Account Type as "PERSONAL" in Cloud Credentials is not saved and hence each time rclone is trying to make a sync is giving the error below:
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 167, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1098, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1046, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 549, in list_directory
return await self.ls(dict(cloud_sync, credentials=credentials), path)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 553, in ls
with RcloneConfig(config) as config:
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 59, in __enter__
config.update(dict(self.cloud_sync["attributes"], **self.provider.get_task_extra(self.cloud_sync)))
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/../rclone/remote/onedrive.py", line 28, in get_task_extra
}[task["credentials"]["attributes"].get("drive_type", "")]
KeyError: 'personal'
I have noticed that if I am very quick and input the PERSONAL setting in Cloud Credentials and then in less than 5 seconds I start the cloud sync task manual rclone is starting to sync my OneDrive folders to their equivalent volumes on FreeNAS. However the setting is then deleted again from Cloud Credentials and the cloud sync task gives the same error above.
What can I do to solve this issue?
Thanks a lot in advance!