2015-07-03 51 views
2

我有一個問題,飛鏢設置了飛鏢應用程序引擎,gcloud預覽錯誤

建立App Engine開發

我用
OS X 10.10
飛鏢SDK 1.11.1
谷歌雲SDK 0.9.67

繼承人的錯誤:

WC-Johndoe:dartsample Johndoe$ gcloud preview app run app.yaml 
Module [default] found in file [/Users/Johndoe/Repos/dartsample/app.yaml] 
INFO: Looking for the Dockerfile in /Users/Johndoe/Repos/dartsample 
INFO: Using Dockerfile found in /Users/Johndoe/Repos/dartsample 
INFO  2015-07-03 21:31:15,783 devappserver2.py:762] Skipping SDK update check. 
INFO  2015-07-03 21:31:16,009 api_server.py:204] Starting API server at: http://localhost:53927 
INFO  2015-07-03 21:31:16,010 api_server.py:629] Applying all pending transactions and saving the datastore 
INFO  2015-07-03 21:31:16,010 api_server.py:632] Saving search indexes 
Traceback (most recent call last): 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 83, in <module> 
    _run_file(__file__, globals()) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 79, in _run_file 
    execfile(_PATHS.script_file(script_name), globals_) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 1027, in <module> 
    main() 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 1020, in main 
    dev_server.start(options) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 817, in start 
    self._dispatcher.start(options.api_host, apis.port, request_data) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 193, in start 
    _module, port = self._create_module(module_configuration, port) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 278, in _create_module 
    threadsafe_override=threadsafe_override) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 1539, in __init__ 
    super(ManualScalingModule, self).__init__(**kwargs) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 558, in __init__ 
    self._module_configuration) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 259, in _create_instance_factory 
    module_configuration=module_configuration) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_factory.py", line 71, in __init__ 
    8 if runtime_config_getter().threadsafe else 1, 10) 
    File "/Users/Johndoe/Library/Cloud/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 394, in _get_runtime_config 
    raise ValueError('The --custom_entrypoint flag must be set for ' 
ValueError: The --custom_entrypoint flag must be set for custom runtimes 
ERROR: (gcloud.preview.app.run) DevAppSever failed with error code [1] 

................................ ...........

+0

由於dart是一個自定義運行時,並且系統告訴您使用「--custom_entrypoint」,您是否嘗試運行「gcloud預覽應用程序運行app.yaml --custom_entrypoint」? – Patrice

+0

「無法識別的參數:--custom_entrypoint」 – miguelv

+1

我也返回「無法識別的參數:--custom_entrypoint」 –

回答

3

快速查看this顯示了最近版本的Google雲SDK的問題。在進一步更新之前,使用其他一些SDK(如dart)會出現問題。

爲鏈接,以解決此問題,回撥使用終端的命令您的谷歌雲SDK版本中提到,:

gcloud config set component_manager/fixed_sdk_version 0.9.64 
gcloud components update 

恢復到雲SDK的當前版本通過:

gcloud config unset --scope=installation component_manager/fixed_sdk_version 
gcloud components update 
+1

它的工作原理和看起來像0.9.65也可行,非常感謝! –

相關問題