GoogleCloudPlatform / GoogleCloudPlatform/gsutil

gsutil cp with no-clobber option from GCS to S3 returning access denied error

Open
#849 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am using below command to copy files from gcs to s3.

`gsutil -m cp -r -c -n `

This works fine as long as files not present in the destination(s3) i.e., files will be copied if not present. However, if I re-run the same command to copy missing files if any, I am being bombarded with below error for files which are already present but the missing files get copied successfully.

**AccessDeniedException: 403 AccessDenied**

Per my understanding, -n option should ignore files which are already present in the destination from being overwritten again.

If I do the reverse operation i.e., copying from s3 to gcs, gsutil cp -n command is behaving as expected.

The problem is only when copying from gcs to s3.

Please advise on this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.