default bucket name in GCS

276 views
Skip to first unread message

GAEfan

unread,
Mar 12, 2014, 11:48:09 AM3/12/14
to google-a...@googlegroups.com
I migrated an older legacy app from blobstore to GCS, using these instructions:


So, I added a bucket using the GCS Developer Console.  What was not properly explained is that, by following these instructions, you are not using the free (5GB quota) default bucket, but a billable bucket.

Is there a way to make the new bucket I created the default bucket, to fall within the free quota?

Or, must I now go through the App Engine > Application Settings console to "Create a Google Cloud project as well as a Google Cloud Storage bucket for this application.", thereby getting the free default bucket, and then migrate everything over (again)?

Thank you.


Pertti Kellomäki

unread,
Mar 12, 2014, 2:32:24 PM3/12/14
to google-a...@googlegroups.com
+1. I am in the same boat (I think).

Pertti


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.



--
Pertti Kellomäki, Kesanto Enterprises
Your training in the cloud: <http://www.trainingcommons.com>

Stefano Ciccarelli

unread,
Mar 12, 2014, 5:05:32 PM3/12/14
to google-a...@googlegroups.com
I have the same problem, the default bucket I created is billed by the Cloud Platform Console and seems to not belong to GAE. 
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


--
Nel mondo esistono 10 categorie di persone, quelle che capiscono il binario e quelle che non lo capiscono.

Amy Unruh

unread,
Mar 13, 2014, 10:46:38 PM3/13/14
to google-a...@googlegroups.com
There is indeed a default auto-created bucket, with bucket name "your-app.appspot.com", that is getting rolled out and backfilled to existing apps and their associated projects.  Not all projects may have it yet.  If the 5GB quota is sufficient for your needs, you ought to be able to just start using it as you would any bucket.
  
Go to the Application Settings page for the app engine app you want to use that bucket with, and grab the app's service account address.
Then go to the cloud console (cloud.google.com/console) and make sure that service account is listed in the Permissions page of the project that includes this default bucket, with 'edit' permissions. 

Vinny P

unread,
Mar 13, 2014, 11:27:31 PM3/13/14
to google-a...@googlegroups.com
On Wed, Mar 12, 2014 at 10:48 AM, GAEfan <ken...@gmail.com> wrote:
Is there a way to make the new bucket I created the default bucket, to fall within the free quota?

Or, must I now go through the App Engine > Application Settings console to "Create a Google Cloud project as well as a Google Cloud Storage bucket for this application.", thereby getting the free default bucket, and then migrate everything over (again)?


The default bucket should exist for most (but not all) applications, provided that the App Engine ID is integrated into a cloud project.

If you'd like to test whether or not there's a default bucket ready to go, you can use your application's runtime to test for the name of the bucket: Go has DefaultBucketName ( https://godoc.org/code.google.com/p/appengine-go/appengine/file ), Java has getDefaultGcsBucketName ( https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/appidentity/AppIdentityService ) and PHP/Python have equivalents in the App Identity service.

 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
  

GAEfan

unread,
Mar 16, 2014, 3:08:41 PM3/16/14
to google-a...@googlegroups.com
Thanks Amy and Vinny.  I guess I was not clear...

I did realize that I could have gone to the app engine console to add the default bucket.   But I only discovered that AFTER I had already added the bucket via the Cloud Console, per these instructions:


where it says, "To use the Cloud Storage API, you MUST complete the following prerequisites:", and leads one to creating a bucket that is not the free default bucket.  So, I think those instructions are not clear.

My questions was, "After I have already created a bucket in the Cloud Console, is there a way to declare it the free default bucket?  Or, must the free default bucket always be the appname.appspot.com bucket, created via the AE console?"  I have already made a bucket and uploaded to it.  If I create the free default bucket via the App Engine Console, then I must transfer everything from the first bucket to the free default bucket.

I think the docs should be updated.

Also, the main app I want to do this with is still waiting for the free default bucket.  The GAE console message is, "Project creation is in progress.", and has been that way for several days.

Thanks

Amy Unruh

unread,
Mar 16, 2014, 8:11:40 PM3/16/14
to google-a...@googlegroups.com
You're right that the instructions are a bit confusing, sorry -- in this transitional period, not everyone has a default bucket yet that they can use.  I'll file an internal bug to improve the docs.
There's no way to make your own default bucket, and the auto-generated default will always have that name (appname.appspot.com).

The GAE admin console should not be wedged on "project creation in progress", however -- what is your app id?  You can send to me directly.

 -Amy


--

Stefano Ciccarelli

unread,
Mar 17, 2014, 4:22:03 AM3/17/14
to GAE Group
Amy,

I think I have another problem:

first of all on "Application Settings" tab I have a default Google Cloud Storage Bucket named cloudmotive.appspot.com (as my app is named);

the default bucket now holds
$ gsutil du -achs gs://cloudmotive.appspot.com
14.32 GB    gs://cloudmotive.appspot.com
14.32 GB    total

On the App Engine dashboard I read
Cloud Storage Standard Storage 0.00 GBytes 0.00$0.0027/ GByte-day $0.00

So I think that all that data is billed by the Cloud Console project and I don't know what happened to the free quota.

Can you help me to understand?

Stefano

Jason Chang

unread,
Jul 20, 2015, 8:31:08 PM7/20/15
to google-a...@googlegroups.com
Hi Amy,

I realized this post is one year old. I have exactly the same problem now with App Engine Release 1.9.24. I have no default bucket and I can not create the default one (project creation in progress takes forever). I would like to know if this is a problem that has been solved ?

Thanks,

Jason

Nick (Cloud Platform Support)

unread,
Jul 21, 2015, 1:16:54 PM7/21/15
to google-a...@googlegroups.com, jas...@google.com
Hey Jason,

It might be best to post your question on stackoverflow with all the details you can gather, as that forum is much more active than this one, and is better suited to specific issues. This forum is more for general discussion of the platform. We monitor stackoverflow as well.

Best of luck!

Nick
Reply all
Reply to author
Forward
0 new messages