Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-104819

Cloud Sync Task fails when using single file

    XMLWordPrintable

    Details

      Description

      I updated to 11.3 RC2 yesterday - now the cloud sync tasks are failing that only sync a single file.

      Error: Traceback (most recent call last):
        File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 349, in run
          await self.future
        File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 386, in __run_body
          rv = await self.method(*([self] + args))
        File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 949, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/cloud_sync.py", line 909, in sync
          await rclone(self.middleware, job, cloud_sync)
        File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/cloud_sync.py", line 134, in rclone
          await middleware.run_in_thread(check_local_path, cloud_sync["path"])
        File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
          return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
        File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/cloud_sync.py", line 127, in check_local_path
          raise CallError(f"{path!r} is not a directory")
      middlewared.service_exception.CallError: [EFAULT] '/mnt/pool-1/media/movies/index.txt' is not a directory
      

      But single files should be allowed - the GUI says so, and the rclone documentation mentions this feature too.

      Thanks

      Stefan

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                stefan.schramek Stefan Schramek
                Watchers:
                JGM, Joe Maloney, Rick Mesta, Stefan Schramek, Vladimir Vinogradenko, William Grzybowski
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated: