存取 Google Cloud 控制台和 Cloud Shell Reviews
189836 reviews
Error when execute task 3, step 9. when trying to set cat.jpg on bucket permission into public Below is the error, kindly take a look. thanks student_00_d4fb7442643d@cloudshell:~ (qwiklabs-gcp-00-c0c45ae55a0d)$ gsutil iam ch allUsers:objectViewer gs://$MY_BUCKET_NAME_1 ERROR 1010 14:43:22.559433 retry_decorator.py] Retrying in 1.07 seconds ... Traceback (most recent call last): File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 476, in SetBucketIamPolicy return self.api_client.buckets.SetIamPolicy(apitools_request, File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/third_party/storage_apitools/storage_v1_client.py", line 466, in SetIamPolicy return self._RunMethod( File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/base_api.py", line 737, in _RunMethod return self.ProcessHttpResponse(method_config, http_response, request) File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/base_api.py", line 743, in ProcessHttpResponse self.__ProcessHttpResponse(method_config, http_response, request)) File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/base_api.py", line 609, in __ProcessHttpResponse raise exceptions.HttpError.FromResponse( apitools.base.py.exceptions.HttpError: HttpError accessing <https://storage.googleapis.com/storage/v1/b/qwiklabs-gcp-00-c0c45ae55a0d/iam?alt=json>: response: <{'x-guploader-uploadid': 'ADPycdtzjyxRPcaJ7iWZrx97yvUBk69yrR2HhXiwO53Op_dLZijyxVXC4BQpQHDPkZrpqf-R43H5SJgHOLz2iFkQPPVVUw', 'content-type': 'application/json; charset=UTF-8', 'date': 'Tue, 10 Oct 2023 14:43:22 GMT', 'vary': 'Origin, X-Origin', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'expires': 'Mon, 01 Jan 1990 00:00:00 GMT', 'pragma': 'no-cache', 'content-length': '476', 'server': 'UploadServer', 'status': '412'}>, content <{ "error": { "code": 412, "message": "The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced.", "errors": [ { "message": "The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced.", "domain": "global", "reason": "conditionNotMet", "locationType": "header", "location": "If-Match" } ] } } > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/retry-decorator/retry_decorator/retry_decorator.py", line 20, in f_retry return f(*args, **kwargs) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/commands/iam.py", line 542, in _PatchIamHelperInternal self._SetIamHelperInternal(storage_url, policy, thread_state=thread_state) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/commands/iam.py", line 449, in _SetIamHelperInternal gsutil_api.SetBucketIamPolicy(storage_url.bucket_name, File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/cloud_api_delegator.py", line 234, in SetBucketIamPolicy return self._GetApi(provider).SetBucketIamPolicy(bucket_name, policy) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 479, in SetBucketIamPolicy self._TranslateExceptionAndRaise(e, bucket_name=bucket_name) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 2260, in _TranslateExceptionAndRaise raise translated_exception gslib.cloud_api.PreconditionException: PreconditionException: 412 The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced. ERROR 1010 14:43:24.255321 retry_decorator.py] Retrying in 1.91 seconds ... Traceback (most recent call last): File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 476, in SetBucketIamPolicy return self.api_client.buckets.SetIamPolicy(apitools_request, File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/third_party/storage_apitools/storage_v1_client.py", line 466, in SetIamPolicy return self._RunMethod( File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/base_api.py", line 737, in _RunMethod return self.ProcessHttpResponse(method_config, http_response, request) File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/base_api.py", line 743, in ProcessHttpResponse self.__ProcessHttpResponse(method_config, http_response, request)) File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/base_api.py", line 609, in __ProcessHttpResponse raise exceptions.HttpError.FromResponse( apitools.base.py.exceptions.HttpError: HttpError accessing <https://storage.googleapis.com/storage/v1/b/qwiklabs-gcp-00-c0c45ae55a0d/iam?alt=json>: response: <{'x-guploader-uploadid': 'ADPycdu2Q-TipQTKnbtuLc67aJFMus1RYaiav-YaWuJlnrgZfDmTepD7feKde0RTL036B8ae2QH3vh51_hZX3fUsVc5Ew0xSuhrf', 'content-type': 'application/json; charset=UTF-8', 'date': 'Tue, 10 Oct 2023 14:43:24 GMT', 'vary': 'Origin, X-Origin', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'expires': 'Mon, 01 Jan 1990 00:00:00 GMT', 'pragma': 'no-cache', 'content-length': '476', 'server': 'UploadServer', 'status': '412'}>, content <{ "error": { "code": 412, "message": "The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced.", "errors": [ { "message": "The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced.", "domain": "global", "reason": "conditionNotMet", "locationType": "header", "location": "If-Match" } ] } } > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/google-cloud-sdk/platform/gsutil/third_party/retry-decorator/retry_decorator/retry_decorator.py", line 20, in f_retry return f(*args, **kwargs) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/commands/iam.py", line 542, in _PatchIamHelperInternal self._SetIamHelperInternal(storage_url, policy, thread_state=thread_state) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/commands/iam.py", line 449, in _SetIamHelperInternal gsutil_api.SetBucketIamPolicy(storage_url.bucket_name, File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/cloud_api_delegator.py", line 234, in SetBucketIamPolicy return self._GetApi(provider).SetBucketIamPolicy(bucket_name, policy) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 479, in SetBucketIamPolicy self._TranslateExceptionAndRaise(e, bucket_name=bucket_name) File "/usr/lib/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 2260, in _TranslateExceptionAndRaise raise translated_exception gslib.cloud_api.PreconditionException: PreconditionException: 412 The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced. PreconditionException: 412 The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced. student_00_d4fb7442643d@cloudshell:~ (qwiklabs-gcp-00-c0c45ae55a0d)$
Munawar S. · Reviewed about 3 years ago
Кочербаева Ш. · Reviewed about 3 years ago
Nainsi k. · Reviewed about 3 years ago
Bayu Dwi S. · Reviewed about 3 years ago
Richard B. · Reviewed about 3 years ago
Marius G. · Reviewed about 3 years ago
Rahul J. · Reviewed about 3 years ago
Nilesh Tiwari 2. · Reviewed about 3 years ago
Anwita B. · Reviewed about 3 years ago
Amisha T. · Reviewed about 3 years ago
Shreya G. · Reviewed about 3 years ago
Jan A. · Reviewed about 3 years ago
Kabieva M. · Reviewed about 3 years ago
Chan A. · Reviewed about 3 years ago
Excellent
Saleem H. · Reviewed about 3 years ago
Ashwini B. · Reviewed about 3 years ago
Maciej K. · Reviewed about 3 years ago
DIVIT E G K. · Reviewed about 3 years ago
Excellent. A lot to fit in an hour
Moses M. · Reviewed about 3 years ago
Srija k. · Reviewed about 3 years ago
I was 100% satisfied with my experience using the lab.
Chukwuma e. · Reviewed about 3 years ago
jayadeep a. · Reviewed about 3 years ago
Amisha T. · Reviewed about 3 years ago
Ben I. · Reviewed about 3 years ago
varayogula s. · Reviewed about 3 years ago
We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.