Reputation: 31
Trying to set up logging on a GCS bucket. every time i enter the command to set logging i get the error below. "Command exception: "logging" command does not support "file://" URLs. did you mean to usea gs:// URL?" is it my test logs bucket that has the error or my bucket covered by the logging command?
Upvotes: 3
Views: 1358
Reputation: 13071
I encountered the same error when following this tutorial https://cloud.google.com/nodejs/getting-started/using-cloud-storage.
Solution was simple. I forgot my 2 forward slashes: //
after gs:
Wrong commands:
$ gsutil mb gs:tony-project-123
$ gsutil defacl set public-read gs:tony-project-123
Right commands:
$ gsutil mb gs://tony-project-123
$ gsutil defacl set public-read gs://tony-project-123
Upvotes: 2