STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
rclone copy fails sometimes, with “googleapi: Error 400: kms_key_name cannot be present for copy., invalid” error. There is no specific time or file when this occurs. All files that are uploaded are newly created files and uploaded to new directories.
Run the command 'rclone version' and share the full output of the command.
rclone v1.70.3
- os/version: redhat 8.10 (64 bit)
- os/kernel: 4.18.0-553.58.1.el8_10.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Cloud storage
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy /backup/XYZ/XYZ.img.000001 remote1:bucket1/XYZ-20250731_144613/ --config /root/.config/rclone/rclone.conf
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[remote1]
type = google cloud storage
project_number = XXX
service_account_file = /root/gcscred/remote.json
bucket_policy_only = true
location = europe-west3
storage_class = COLDLINE
A log from the command that you were trying to run with the -vv
flag
2025/08/10 13:04:44 ERROR : XYZ.img.000001: Failed to set modification time: googleapi: Error 400: kms_key_name cannot be present for copy., invalid
2025/08/10 13:04:44 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: Error 400: kms_key_name cannot be present for copy., invalid
2025/08/10 13:05:09 ERROR : XYZ.img.000001: Failed to set modification time: googleapi: Error 400: kms_key_name cannot be present for copy., invalid
2025/08/10 13:05:09 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: Error 400: kms_key_name cannot be present for copy., invalid
2025/08/10 13:05:38 ERROR : XYZ.img.000001: Failed to set modification time: googleapi: Error 400: kms_key_name cannot be present for copy., invalid
2025/08/10 13:05:38 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: Error 400: kms_key_name cannot be present for copy., invalid
2025/08/10 13:05:38 Failed to copy: googleapi: Error 400: kms_key_name cannot be present for copy., invalid