xyou365 / AutoRclone

AutoRclone: rclone copy/move/sync (automatically) with thousands of service accounts
https://www.gfan.loan/?p=235
1.36k stars 520 forks source link

SA failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: #74

Open xplorer990 opened 3 years ago

xplorer990 commented 3 years ago

rclone --drive-service-account-file=/home/username/AutoRclone-master-us/accounts/b2****c0.json ls 0**A:

username@DEVICE-NAME:~/AutoRclone-master-us$ rclone --drive-service-account-file=/home/xplorer990/AutoRclone-master-ei/accounts/b2**c0.json ls 0*A: 2021/01/29 02:07:25 Failed to ls: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0A, notFound

service accounts are added to source and destination Team Drive and email@sourcedomain.com and and email@destinationdomain.com.

------- Start AutoRclone log------

2021/01/28 04:54:04 DEBUG : rclone: Version "v1.53.4" starting with parameters ["rclone" "--config" "./rclone.conf" "copy" "--drive-server-side-across-configs" "--rc" "--rc-addr=localhost:5572" "-vv" "--ignore-existing" "--tpslimit" "3" "--transfers" "3" "--drive-chunk-size" "32M" "--drive-acknowledge-abuse" "--log-file=log_rclone.txt" "src001:" "dst001:"] 2021/01/28 04:54:04 NOTICE: Serving remote control on http://127.0.0.1:5572/ 2021/01/28 04:54:04 DEBUG : Using config file from "/home/username/AutoRclone-master-us/rclone.conf" 2021/01/28 04:54:04 INFO : Starting HTTP transaction limiter: max 3 transactions/s with burst 1 2021/01/28 04:54:04 DEBUG : Creating backend with remote "src001:" 2021/01/28 04:54:04 DEBUG : Creating backend with remote "dst001:" 2021/01/28 04:54:06 ERROR : : error reading source directory: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0**A, notFound 2021/01/28 04:54:06 DEBUG : Google drive root '': Waiting for checks to finish 2021/01/28 04:54:06 DEBUG : Google drive root '': Waiting for transfers to finish 2021/01/28 04:54:06 INFO : There was nothing to transfer 2021/01/28 04:54:06 ERROR : Attempt 1/3 failed with 1 errors and: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0****A, notFound 2021/01/28 04:54:07 ERROR : : error reading source directory: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0**A, notFound 2021/01/28 04:54:07 DEBUG : Google drive root '': Waiting for checks to finish 2021/01/28 04:54:07 DEBUG : Google drive root '': Waiting for transfers to finish 2021/01/28 04:54:07 INFO : There was nothing to transfer 2021/01/28 04:54:07 ERROR : Attempt 2/3 failed with 1 errors and: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0**A, notFound 2021/01/28 04:54:08 ERROR : : error reading source directory: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0**A, notFound 2021/01/28 04:54:08 DEBUG : Google drive root '': Waiting for checks to finish 2021/01/28 04:54:08 DEBUG : Google drive root '': Waiting for transfers to finish 2021/01/28 04:54:08 INFO : There was nothing to transfer 2021/01/28 04:54:08 ERROR : Attempt 3/3 failed with 1 errors and: failed to get Team/Shared Drive info: googleapi: Error 404: Shared drive not found: 0**A, notFound 2021/01/28 04:54:08 INFO : Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA - Errors: 1 (retrying may help) Elapsed time: 4.5s

------- End AutoRclone log------

What to do??? Please help!

mcdull commented 3 years ago

you need to add permission of both drives into all your accounts or group account.

xplorer990 commented 3 years ago

you need to add permission of both drives into all your accounts or group account.

Thanks a lot! Tried this but didn't work.

https://cloud.google.com/iam/docs/granting-changing-revoking-access