Am I misstaken or doing it wrong ? :)

Trying to move data from myDrive to Shared Drive. Shared drive is not accassible? (Using Service account with domain wide Delegation)

rclone -v --drive-impersonate @ move myDrive:"/MyTest" Test:"/Special/" --drive-server-side-across-configs --gcs-object-acl projectPrivate

2022/06/02 10:29:51 ERROR : MytestDoc1.docx: Couldn't move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 10:29:51 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 10:29:52 ERROR : MytestDoc1.docx: Couldn't move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 10:29:52 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 10:29:53 ERROR : MytestDoc1.docx: Couldn't move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 10:29:53 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 10:29:53 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Checks: 3 / 3, 100%
Elapsed time: 3.3s

rclone -V

rclone v1.57.0

  • os/version: darwin 12.4 (64 bit)

  • os/kernel: 21.5.0 (arm64)

  • os/type: darwin

  • os/arch: arm64

  • go/version: go1.17.2

  • go/linking: dynamic

  • go/tags: cmount

Using Google Drive

cat .config/rclone/rclone.conf                                  
[myDrive]
type = drive
scope = drive
service_account_file = /Users/xxxx/Google.json
team_drive = 

[Test]
type = drive
scope = drive
service_account_file = /Users/xxxx/Google.json
team_drive = 0AF4VdFQancVWUk9PVA

Log -vv

2022/06/02 11:02:46 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "-vv" "--drive-impersonate" "ronald.blaas@avrotros.nl" "move" "myDrive:/MyTest" "Test:/Special/" "--drive-server-side-across-configs" "--gcs-object-acl" "projectPrivate"]
2022/06/02 11:02:46 DEBUG : Creating backend with remote "myDrive:/MyTest"
2022/06/02 11:02:46 DEBUG : Using config file from "/Users/ronald/.config/rclone/rclone.conf"
2022/06/02 11:02:46 DEBUG : myDrive: detected overridden config - adding "{CAwY_}" suffix to name
2022/06/02 11:02:46 DEBUG : Google drive root 'MyTest': 'root_folder_id = 0AN-USXy0hb17Uk9PVA' - save this in the config to speed up startup
2022/06/02 11:02:47 DEBUG : fs cache: renaming cache item "myDrive:/MyTest" to be canonical "myDrive{CAwY_}:MyTest"
2022/06/02 11:02:47 DEBUG : Creating backend with remote "Test:/Special/"
2022/06/02 11:02:47 DEBUG : Test: detected overridden config - adding "{CAwY_}" suffix to name
2022/06/02 11:02:47 DEBUG : fs cache: renaming cache item "Test:/Special/" to be canonical "Test{CAwY_}:Special"
2022/06/02 11:02:48 DEBUG : Google drive root 'Special': Waiting for checks to finish
2022/06/02 11:02:48 DEBUG : Google drive root 'Special': Waiting for transfers to finish
2022/06/02 11:02:48 ERROR : MytestDoc1.docx: Couldn't move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 11:02:48 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 11:02:48 DEBUG : Google drive root 'Special': Waiting for checks to finish
2022/06/02 11:02:48 DEBUG : Google drive root 'Special': Waiting for transfers to finish
2022/06/02 11:02:49 ERROR : MytestDoc1.docx: Couldn't move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 11:02:49 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 11:02:49 DEBUG : Google drive root 'Special': Waiting for checks to finish
2022/06/02 11:02:49 DEBUG : Google drive root 'Special': Waiting for transfers to finish
2022/06/02 11:02:49 ERROR : MytestDoc1.docx: Couldn't move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 11:02:49 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound
2022/06/02 11:02:49 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Checks:                 3 / 3, 100%
Elapsed time:         3.4s

2022/06/02 11:02:49 DEBUG : 13 go routines active
2022/06/02 11:02:49 Failed to move: failed to make directory: googleapi: Error 404: File not found: 0AF4VdFQancVWUk9PVA., notFound

So my question is if I understand Domain Wide Delegation
It could be Google has changed something (which they do all the time)
But I have setup a service account and I can read Shared Drive when I use --drive-impersonate. But as an Admin I want to move data (in this particular case) from a MyDrive to a Shared Drive.

I have done this before with success but I am unable to do it now.

Any insight is appreciated :slight_smile:

I'm not sure I can be very helpful about this, but I do know that those 404 errors are likely permissions errors rather than anything else so you need to make sure that the service account used in the destination has access to things in the source.

Also note that --drive-impersonate is applying to both source and destination - I don't know if you wanted that. If not you can add it to the config file or use the Test,impersonate=me@example.com: syntax