Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-105525

Can't disable Cloud Sync tasks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: TrueNAS 11.2-U8.1
    • Fix Version/s: 11.3-U2
    • Component/s: WebUI
    • Labels:
    • Support Suite Ticket:
      AOT-766-10004

      Description

      Comment from Caleb:

      Caleb St. John 

      looks like legacy UI is passing around a keyword argument to a method that doesn't expect it

       

      Customer traceback while trying to disable Cloud Sync:

      [2020/03/24 15:58:43] (WARNING) application.call_method():200 - Exception while calling cloudsync.update(*[1, {'description': 'Git', 'direction': 'PUSH', 'attributes': {'bucket': 'bfcs-test', 'encryption': 'AES256', 'folder': 'git'}, 'path': '/mnt/bfcs/pool/git', 'transfer_mode': 'SYNC', 'encryption': True, 'filename_encryption': False, 'encryption_password': 'B3Nj@m1n', 'encryption_salt': 'B3Nj@m1n', 'enabled': False, 'credentials': 1, 'schedule': {'minute': '00', 'hour': '00', 'dom': '*', 'month': '*', 'dow': '*'}}])
      Traceback (most recent call last):
        File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 166, in call_method
          result = await self.middleware.call_method(self, message)
        File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1093, 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 1040, in _call
          return await methodobj(*args)
        File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 295, in update
          f'{self._config.namespace}.update', self, self.do_update, [id, data]
        File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1040, 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 509, in do_update
          await self._validate(verrors, "cloud_sync_update", cloud_sync)
        File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 384, in _validate
          await provider.pre_save_task(data, credentials, verrors)
        File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/../rclone/remote/s3.py", line 48, in pre_save_task
          self._get_client(credentials).get_bucket_location, Bucket=task["attributes"]["bucket"]
        File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1000, in run_in_thread
          return await async_run_in_executor(loop, executor, method, *args, **kwargs)
        File "/usr/local/lib/python3.6/site-packages/middlewared/utils/asyncio_.py", line 38, in async_run_in_executor
          result = await loop.run_in_executor(executor, _noexec_wrapper, method, *args, **kwargs)
      TypeError: run_in_executor() got an unexpected keyword argument 'Bucket'

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                bill Bill O'Hanlon
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: