Brian
Brian

Reputation: 85

Where is the GAE/GCS project default staging bucket?

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?

Upvotes: 3

Views: 1374

Answers (3)

RVJ Callanan
RVJ Callanan

Reputation: 227

For others who have encountered this issue, there may be a more obvious solution.

I had a similar issue as the OP with a lapsed "proof-of-concept" project. But the suggested solutions had no effect.

On further investigation, I noticed that billing has not been enabled for the project. Once I linked the project to a billing account, the associated cloud buckets were automatically created.

Upvotes: 0

LundinCast
LundinCast

Reputation: 9810

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:

  • From command-line with Cloud SDK installed and initialized with your project (or directly from Cloud Shell), run the 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.
  • Deploy a new App Engine version via gcloud app deploy. Under the hood, Cloud SDK will run the repair command if needed to restore the bucket.

Upvotes: 3

Alexey Maloletkin
Alexey Maloletkin

Reputation: 1099

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.

Upvotes: 1

Related Questions