Google Cloud Storage“静态"存储桶名称不可用 [英] Google Cloud Storage 'static' bucketname not available

查看:109
本文介绍了Google Cloud Storage“静态"存储桶名称不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在构建一个Web应用程序,以服务数据库中以html iframe表示的段.我需要将Django应用程序的静态文件(例如引导程序)托管在Google Cloud Storage上的静态文件存储中,以便正确表示HTML元素.但是,当我尝试创建一个名为静态"的存储桶时,GCS会回复以下错误:

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.

不仅如此,它不允许我访问或修改URI,并在尝试访问时显示禁止访问"消息.

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

有人知道如何通过Google更改此默认设置吗?没有与此有关的文档.

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

推荐答案

似乎其他人已经创建了具有给定名称的存储桶.您必须选择一个全球唯一的名称.

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

存储桶名称位于单个Google Cloud Storage名称空间中.因此,每个存储段名称在整个Google Cloud Storage名称空间中都必须是唯一的.如果您尝试使用已使用的存储桶名称创建存储桶,则Google Cloud Storage会显示一条错误消息.

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.

使用其他名称或使用默认存储桶.如果您的应用是在App Engine 1.9.0版本之后创建的,则它应具有一个名为[your-app-id].appspot.com的默认GCS存储桶.您可以按照以下步骤在该存储桶和目录结构中创建静态文件.

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

这篇关于Google Cloud Storage“静态"存储桶名称不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆