2015-12-02 129 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