2015-12-02 73 views
3

尝试设置GCS桶上的日志记录。每次我输入命令设置日志记录时,我都会看到下面的错误信息。 “”命令异常:“logging”命令不支持“file://”URLs。你是否想要使用gs:// URL?“是我的测试日志存储桶有错误还是我的存储桶被日志记录命令覆盖?设置GCS桶中的日志记录

enter image description here

+0

欢迎SO。请参阅。 http://stackoverflow.com/help/how-to-ask – VC1

+0

我认为你的问题是你传递的文字'[-o日志]'。您需要完全删除它,或者删除括号并为日志前缀选择一个值。 – jterrace

+0

经过一段时间的鬼混后,有人指出了我。谢谢回复。当我这样做时,要多睡一会儿。 –

回答

1

我下面这个教程https://cloud.google.com/nodejs/getting-started/using-cloud-storage时遇到了同样的错误。
解决方案很简单。我忘了我2斜杠://gs:

错误命令:

$ gsutil mb gs:tony-project-123 
$ gsutil defacl set public-read gs:tony-project-123 

正确的命令:

$ gsutil mb gs://tony-project-123 
$ gsutil defacl set public-read gs://tony-project-123