What is the problem you are having with rclone?
Attempting to server-side move some My Drive files to a shared drive fail with shareOutNotPermittedForContent. Note that the majority of files move without issue, so it seems this is a file-specific setting of some sort. I've tried searching and have found literally nothing on this specific error message.
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.1
- os/version: Microsoft Windows 11 Pro 21H2 (64 bit)
- os/kernel: 10.0.22000.1335 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.19.3
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
2023/01/02 16:29:17 DEBUG : rclone: Version "v1.60.1" starting with parameters ["C:\\Users\\Chad\\Documents\\PowerShell\\Modules\\TMCTools\\bin\\rclone.exe" "move" "--check-first" "--config" "C:\\Users\\Chad\\AppData\\Local\\Temp\\tmpBD03.tmp" "--log-file" "C:\\Users\\Chad\\Domains\\Customers\\Oliver Technology\\rclone\\Move_20230102_162917\\amy.lathers@fixedlaw.com.log" "--order-by" "size,mixed" "--retries" "1" "--stats" "5s" "--stats-one-line-date" "--update" "--user-agent" "ISV|Transend Corporation|TMCTools/1.0" "--log-level" "DEBUG" "--dump" "bodies" "--max-depth" "20" "--server-side-across-configs" "--drive-skip-dangling-shortcuts" "--drive-skip-shortcuts" "--drive-auth-owner-only" "--create-empty-src-dirs" "--delete-empty-src-dirs" "Source:" "Temp:"]
The rclone config contents with secrets removed.
[Source]
type = drive
scope = drive
service_account_file = C:\Users\Chad\Domains\Example\source.json
impersonate = user@example.org
[Temp]
type = drive
scope = drive
team_drive = 0AJA2r-LizjkBUk9PVA
service_account_file = C:\Users\Chad\Domains\Example\source.json
impersonate = user@example.org
A log from the command with the -vv
flag
2023/01/02 16:29:25 DEBUG : HTTP REQUEST (req 0xc00089ac00)
2023/01/02 16:29:25 DEBUG : PATCH /drive/v3/files/1annyPM1bA5vtV7_0Bk9VobCnthOczdVN?addParents=0AJA2r-LizjkBUk9PVA&alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%2CresourceKey&prettyPrint=false&removeParents=0AMmFwJUa1GiJUk9PVA&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: ISV|Transend Corporation|TMCTools/1.0
Content-Length: 113
Authorization: XXXX
Content-Type: application/json
X-Goog-Api-Client: gl-go/1.19.3 gdcl/0.91.0
Accept-Encoding: gzip
{"description":"TX_Courthouses.csv","modifiedTime":"2021-03-15T14:42:41.000000000Z","name":"TX_Courthouses.csv"}
2023/01/02 16:29:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/02 16:29:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/02 16:29:25 DEBUG : HTTP RESPONSE (req 0xc00089ac00)
2023/01/02 16:29:25 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private, max-age=0
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Mon, 02 Jan 2023 22:29:25 GMT
Expires: Mon, 02 Jan 2023 22:29:25 GMT
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
b7
{"error":{"errors":[{"domain":"global","reason":"shareOutNotPermittedForContent","message":"Bad Request. User message: \"\""}],"code":400,"message":"Bad Request. User message: \"\""}}
0
2023/01/02 16:29:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/02 16:29:25 ERROR : TX_Courthouses.csv: Couldn't move: googleapi: Error 400: Bad Request. User message: "", shareOutNotPermittedForContent