I have a Google App Engine Standard project, let's call it my-project. (Not it's real id.) It is located at: my-project.appspot.com
It has a default GCS bucket with the same name. Using a browser I can view the bucket at: https://storage.googleapis.com/my-project.appspot.com (So-far, so good!)
The Google documentation states:
Note: When you create a default bucket, you also get a staging bucket with the same name except that staging. is prepended to it. You can use this staging bucket for temporary files used for staging and test purposes; it also has a 5 GB limit, but it is automatically emptied on a weekly basis.
However, I can not see a staging. bucket in my project console.
Using a browser, if I try to visit my staging bucket at:
https://storage.googleapis.com/staging.my-project.appspot.com
I get the following error message:
<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist.</Message>
</Error>
Could someone let me know if the Google documentation is in error, otherwise could you please let me know where I can find my staging bucket?
The staging.my-project.appspot.com bucket should have been created indeed when you initialized your App Engine application. You may have deleted it inadvertently or there may have been an issue during initialization but anyway, you have several options to recover it:
gcloud beta app repair command. This will restore required App Engine features like the App Engine service account if it has been deleted or any missing default Storage buckets, in this case the staging.... one.gcloud app deploy. Under the hood, Cloud SDK will run the repair command if needed to restore the bucket.It should be accessible at https://console.cloud.google.com/storage/browser/staging.my-project.appspot.com?project=my-project
Or you can go https://console.cloud.google.com/storage/browser?project=my-project and locate it from here.
One interesting thing - for my staging bucket TTL set for 14 days not for 7 as specified in documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With