Cloud sync to Wasabi fails with "Can't mix absolute and relative paths"

Description

Set up a Cloud Sync task in FreeNAS to sync to Wasabi, I get an instant failure.

The settings are very straightforward:

Direction: PUSH

Remote folder: /

Local folder: /mnt/tank/folder

Transfer Mode: SYNC

No Snapshot

Exclusions:

/caches/**

I'm using the exact same settings to perform Cloud Sync to Backblaze B2 and that doesn't fail with the "Can't mix absolute and relative paths" error.

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 961, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/cloud_sync.py", line 1002, in sync
async with self.local_fs_lock_manager.lock(local_path, local_direction):
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/cloud_sync.py", line 473, in lock
if os.path.commonpath([k, path]) in [k, path]:
File "/usr/local/lib/python3.7/posixpath.py", line 514, in commonpath
raise ValueError("Can't mix absolute and relative paths") from None
ValueError: Can't mix absolute and relative paths

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Howard Ha September 11, 2020 at 6:54 PM

I opened the task again and looking more closely I see a space in front of the /mnt/tank/assets-three/ path.  Removing the space allows the task to run.

Bug Clerk September 10, 2020 at 12:39 PM

Vladimir Vinogradenko September 10, 2020 at 11:00 AM

please re-save the task that is causing issues, stripping leading whitespace from the local directory name.

Howard Ha September 10, 2020 at 4:38 AM
Edited

Very interesting, there's an extra path with a space in it (paths were edited)

 

Vladimir Vinogradenko September 9, 2020 at 1:01 PM

can you please post output of midclt call cloudsync.query | jq '.[].path'

Complete

Details

Assignee

Reporter

Labels

Impact

High

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created September 4, 2020 at 7:33 PM
Updated July 1, 2022 at 4:55 PM
Resolved September 10, 2020 at 12:39 PM