What is the problem you are having with rclone?
rclone copy fails with Invalid Grant
Run the command 'rclone version' and share the full output of the command.
% rclone version
rclone v1.61.1
- os/version: darwin 13.1 (64 bit)
- os/kernel: 22.2.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.19.4
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
IBM COS
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -v -P copy gp-cos:cpdemo-backup techzone-cos:playground-temp
The rclone config contents with secrets removed.
{
"gp-cos": {
"access_key_id": "",
"acl": "public-read-write",
"endpoint": "s3.us-east.cloud-object-storage.appdomain.cloud",
"location_constraint": "us-east-standard",
"provider": "IBMCOS",
"region": "us-east",
"secret_access_key": "",
"type": "s3"
},
"techzone-cos": {
"access_key_id": "",
"acl": "public-read-write",
"endpoint": "s3.us-south.cloud-object-storage.appdomain.cloud",
"provider": "IBMCOS",
"region": "us-south",
"secret_access_key": "",
"type": "s3"
}
}
A log from the command with the -vv
flag
% rclone -v -P copy gp-cos:cpdemo-backup techzone-cos:playground-temp -vv
2023/01/05 18:56:29 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "-v" "-P" "copy" "gp-cos:cpdemo-backup" "techzone-cos:playground-temp" "-vv"]
2023/01/05 18:56:29 DEBUG : Creating backend with remote "gp-cos:cpdemo-backup"
2023/01/05 18:56:29 DEBUG : Using config file from "/Users/pgirish/.config/rclone/rclone.conf"
2023/01/05 18:56:29 DEBUG : Creating backend with remote "techzone-cos:playground-temp"
2023-01-05 18:56:30 DEBUG : S3 bucket playground-temp: Waiting for checks to finish
2023-01-05 18:56:30 DEBUG : S3 bucket playground-temp: Waiting for transfers to finish
2023-01-05 18:56:31 ERROR : pgirish.json: Failed to copy: InvalidGrant: Invalid Grant
status code: 400, request id: bfbdf4fc-cf94-45a9-b6af-fdffb16458e8, host id:
2023-01-05 18:56:31 ERROR : Attempt 1/3 failed with 1 errors and: InvalidGrant: Invalid Grant
status code: 400, request id: bfbdf4fc-cf94-45a9-b6af-fdffb16458e8, host id:
2023-01-05 18:56:32 DEBUG : S3 bucket playground-temp: Waiting for checks to finish
2023-01-05 18:56:32 DEBUG : S3 bucket playground-temp: Waiting for transfers to finish
2023-01-05 18:56:33 ERROR : pgirish.json: Failed to copy: InvalidGrant: Invalid Grant
status code: 400, request id: fb784386-9daa-48eb-ac78-e3d1f1c922ef, host id:
2023-01-05 18:56:33 ERROR : Attempt 2/3 failed with 1 errors and: InvalidGrant: Invalid Grant
status code: 400, request id: fb784386-9daa-48eb-ac78-e3d1f1c922ef, host id:
2023-01-05 18:56:33 DEBUG : S3 bucket playground-temp: Waiting for checks to finish
2023-01-05 18:56:33 DEBUG : S3 bucket playground-temp: Waiting for transfers to finish
2023-01-05 18:56:34 ERROR : pgirish.json: Failed to copy: InvalidGrant: Invalid Grant
status code: 400, request id: 2cdc1477-33fc-478d-9b2b-79cf5c578c73, host id:
2023-01-05 18:56:34 ERROR : Attempt 3/3 failed with 1 errors and: InvalidGrant: Invalid Grant
status code: 400, request id: 2cdc1477-33fc-478d-9b2b-79cf5c578c73, host id:
Transferred: 12.738 KiB / 12.738 KiB, 100%, 2.829 KiB/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 5.4s
2023/01/05 18:56:34 INFO :
Transferred: 12.738 KiB / 12.738 KiB, 100%, 2.829 KiB/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 5.4s
2023/01/05 18:56:34 DEBUG : 9 go routines active
2023/01/05 18:56:34 Failed to copy: InvalidGrant: Invalid Grant
status code: 400, request id: 2cdc1477-33fc-478d-9b2b-79cf5c578c73, host id: