Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcs_upload error: Cannot insert legacy ACL for an object when uniform bucket-level access is enabled #121

Closed
ndrubins opened this issue May 12, 2020 · 2 comments

Comments

@ndrubins
Copy link

Hi,

I apologize if this is a usage or google cloud storage settings issue but I couldn't really find any relevant online documentation.

I'm simply trying to upload a file with this command:

googleCloudStorageR::gcs_upload("test/my_test.csv")

And after these two messages:

2020-05-11 18:57:19 -- File size detected as 368 bytes
2020-05-11 18:57:20> Request Status Code: 400

I get this error:
Error: API returned: Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access.

Any idea how to solve this?

@MarkEdmondson1234
Copy link
Collaborator

This happens if the bucket has all permissions set at bucket level and is solved in issue #111. It’s not on CRAN yet but you can install the GitHub version to fix it.

@ndrubins
Copy link
Author

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants