Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Storage 'static' bucketname not available

I am currently structuring a web application to serve out segments of our database represented as html iframes. I need to host my Django app's static files (such as bootstrap) in a static file store on Google Cloud Storage in order to correctly represent the HTML elements. However, when I try to create a bucket called 'static', GCS replies with the following error:

Sorry, that name is not available. Please try a different one.

Not only that, it is not allowing me to access or modify the URI, displaying a "Forbidden" message when I attempt to.

Does anyone know how to change this default setting by Google? There is no documentation regarding this..

like image 453
kungfuspider Avatar asked Aug 04 '14 20:08

kungfuspider


1 Answers

It seems that the bucket with the given name has been already created by someone else. You have to choose a globally unique name.

Bucket names reside in a single Google Cloud Storage namespace. As a consequence, every bucket name must be unique across the entire Google Cloud Storage namespace. If you try to create a bucket with a bucket name that is already taken, Google Cloud Storage responds with an error message.

Use another name or use the default bucket. If your app was created after the App Engine 1.9.0 release, it should have a default GCS bucket named [your-app-id].appspot.com available. You can create your static files in that bucket and mimic directory structure as follows.

[your-app-id].appspot.com/static/my-file-1
like image 58
pgiecek Avatar answered Oct 17 '22 01:10

pgiecek