Failed to copy: googleapi: Error 403: This file cannot be copied by the user., cannotCopyFile

What is the problem you are having with rclone?
I've copied thousands of files before in the same TeamDrive from a Google Drive Shortcut located in a folder in the same TeamDrive. Today I got the following error for the first time! I've not exceeded the daily limit of 750GB, the TeamDrive has only 10 files and 5 folders, and the Google Account has total access to the TeamDrive files.

"Failed to copy: googleapi: Error 403: This file cannot be copied by the user., cannotCopyFile"

What is your rclone version:
rclone v1.52.3

  • os/arch: windows/amd64
  • go version: go1.14.7

Which OS you are using and how many bits:
Windows 10 - 64Bits

The command you were trying to run

--drive-server-side-across-configs "Bot1:3" "Bot1:4" --order-by size,desc -P --max-transfer=730G -vv

The rclone config contents with secrets removed.

[Bot1]
type = drive
scope = drive
token = {"access_token":"******************************","token_type":"Bearer","refresh_token":"1//****************************","expiry":"2020-08-09T22:57:35.302698-05:00"}
team_drive = ******************

A log from the command with the -vv flag

C:\rclone\1.52.3> --drive-server-side-across-configs "Bot1:3" "Bot1:4" --order-by size,desc -P --max-transfer=730G -vv
2020/08/09 22:43:22 DEBUG : rclone: Version "v1.52.3" starting with parameters ["rclone" "copy" "--drive-server-side-across-configs" "Bot1:3" "Bot1:4" "--order-by" "size,desc" "-P" "--max-transfer=730G" "-vv"]
2020/08/09 22:43:22 DEBUG : Using config file from "C:\\Users\\user\\.config\\rclone\\rclone.conf"
2020-08-09 22:43:34 ERROR : File1.mp4: Failed to copy: googleapi: Error 403: This file cannot be copied by the user., cannotCopyFile
2020-08-09 22:43:34 ERROR : File2.mp4: Failed to copy: googleapi: Error 403: This file cannot be copied by the user., cannotCopyFile
2020-08-09 22:43:34 DEBUG : pacer: low level retry 1/10 (error googleapi: Error 403: User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly. You may monitor aggregate quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/drive.googleapis.com/quotas?project=202264815644, userRateLimitExceeded)
2020-08-09 22:43:35 DEBUG : pacer: Rate limited, increasing sleep to 1.461661256s
2020-08-09 22:43:35 DEBUG : pacer: Reducing sleep to 0s

For the one file with an error, can you try to copy that with --dump requests,responses and share the output?

Thanks for trying to help me. The problem is that it isn't a problem with a single file, all files have this problem. I added a Google Drive shortcut from another TeamDrive, the Google Account has access to both TeamDrives, the only problem is with that single shortcut. If I add other shortcuts pointing to the same TeamDrive Rclone copies the content without a single problem. If I add the shortcuts of the folders inside the original shortcut I want to copy, the same error pops up.

First I ran:

rclone copy --drive-server-side-across-configs --dump requests "Bot1:3" "Bot1:4" --order-by size,desc -P --max-transfer=730G -vv > drq.txt

And this are the results (I just included 1 example of multiple of them.)

2020-08-10 11:29:02 DEBUG : GET /drive/v3/files?alt=json&corpora=drive&driveId=************&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%***********%27+in+parents%29&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.52.2
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.14.4 gdcl/20200410
Accept-Encoding: gzip

{"modifiedTime":"2019-12-15T08:21:59.184000000Z","name":"File1.mkv","parents":["1**********"]}
2020-08-10 11:29:21 ERROR : File1.mkv: Failed to copy: googleapi: Error 403: This file cannot be copied by the user., cannotCopyFile
Transferred:   	         0 / 493.151 GBytes, 0%, 0 Bytes/s, ETA -
Errors:                10 (retrying may help)
Transferred:            0 / 457, 0%
Elapsed time:         5.5s
Transferring:

.
.
.
2020-08-10 11:29:04 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":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, must-revalidate, no-transform
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Mon, 10 Aug 2020 16:29:03 GMT
Expires: Mon, 10 Aug 2020 16:29:03 GMT
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

Then the other command:

rclone copy --drive-server-side-across-configs --dump responses "Bot1:3" "Bot1:4" --order-by size,desc -P --max-transfer=730G -vv > drs.txt	

And the results are:

2020-08-10 11:32:07 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":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, must-revalidate, no-transform
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Mon, 10 Aug 2020 16:32:07 GMT
Expires: Mon, 10 Aug 2020 16:32:07 GMT
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

23ca
{"incompleteSearch":false,"files":[{"id":"**************","name":"S","mimeType":"application/vnd.google-apps.folder","trashed":false,"parents":["**************"],"webViewLink":"https://drive.google.com/drive/folders/**************","createdTime":"2020-06-29T22:33:44.349Z","modifiedTime":"2020-06-29T22:33:44.349Z"}]}

2020-08-10 11:32:08 DEBUG : GET /drive/v3/files?alt=json&corpora=drive&driveId=**************&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%271SJux9s3VMAozsYLNxvHKTm7MHPRYpEFj%27+in+parents%29&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.52.2
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.14.4 gdcl/20200410
Accept-Encoding: gzip

b7
{"error":{"errors":[{"domain":"global","reason":"cannotCopyFile","message":"This file cannot be copied by the user."}],"code":403,"message":"This file cannot be copied by the user."}}
0
Transferred:   	         0 / 274.194 GBytes, 0%, 0 Bytes/s, ETA -
Errors:                 3 (retrying may help)
Transferred:            0 / 315, 0%
Elapsed time:         2.2s
Transferring:

Hope this is enough to help me :confused: , anything else I'll do it as fast as I can! Thank you for your time!

I got that as when problem solving, you need to break it down as listing out thousands of responses isn't helpful.

Let's focus on the one shortcut as it seems you may not have permissions I'd guess, but it isn't apparent yet.

Well If I visit the shortcut through the browser it has total access, I can view edit and delte files inside that folder, and as I said it is a shortcut that belongs to the same "family" of folders, the other shortcuts work amazingly, this is the only one poping up the issue.

So I don't know what to do :frowning:

Any other idea?

[Update]
I've tried to copy the file with AirExplorer and had te same issue but now with another name. The files type are .mkv / .mp4 and other video files. Neither Rclone nor AirExplorer should have problem with them. And I have unlimited storage, so it shouldn't be a problem.

So what do you think it the issue here? I really don't know what to do :frowning:

Any idea?
Here is the AirExplorer error if it helps...


(Error: This file type can not be downloaded)

Are the files you are trying to copy shortcuts? Sorry I'm not 100% clear from reading the above.

No, the file are accessed via Google Drive shortcut, they are in another TeamDrive where I have full access. They are video files.

Can you make a debug log with -vv --dump bodies of this happening and send the full thing to me? You can post it here of PM me a link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.