如何调试 "No default robot"?
How do I debug "No default robot"?
我有一个应用程序(用 Go 编写)运行正在 Google AppEngine 上运行,并且正在迁移到托管 VM。该应用程序已嵌入 Docker 容器中,对 Dockerfile
.
稍作修改
本地开发服务器由 gcloud preview app run app.yaml
运行 启动并正常运行。
然而,在尝试部署时,我 运行 出现以下错误。
使用 gcloud
的 --verbosity debug
我能够隔离导致问题的请求(抱歉重复输出):
INFO: Preparing project for VM runtimes.
DEBUG: Running [appcfg.py] with: appcfg.py --application=coduno --called_by_gcloud --noisy --oauth2 --oauth2_credential_file=/Users/flowlo/.config/gcloud/legacy_credentials/flowlo@example.com/singlestore.json --skip_sdk_update_check --version=master prepare_vm_runtime
11:53 AM Host: appengine.google.com
DEBUG: _Authenticate configuring auth; needs_auth=False
DEBUG: Sending request to https://appengine.google.com/api/vms/prepare?app_id=coduno headers={'X-appcfg-api-version': '1', 'content-length': '0', 'Content-Type': 'application/octet-stream'} body=
DEBUG: Got http error 400, this is try #1
DEBUG: Unexpected results: {'status': '400', 'content-length': '65', 'expires': 'Fri, 01 Jan 1990 00:00:00 GMT', 'server': 'Google Frontend', 'cache-control': 'no-cache', 'date': 'Tue, 10 Mar 2015 10:53:09 GMT', 'content-type': 'text/plain'}
Error 400: --- begin server output ---
Failed Project Preparation (app_id='s~example'). No default robot.
--- end server output ---
DEBUG: Received error code [1] while running: [appcfg.py --application=example --called_by_gcloud --noisy --oauth2 --oauth2_credential_file=/Users/lorenz/.config/gcloud/legacy_credentials/flowlo@example.com/singlestore.json --skip_sdk_update_check --version=master prepare_vm_runtime]
注意:真实的应用程序 ID 已替换为 example
,前缀 s~
出现在原始输出中。类似地,我将 app.yaml
的位置替换为 /path/to
。
我的 gcloud
是最新的:
$ gcloud --version
Google Cloud SDK 0.9.50
app 2015.03.03
app-engine-go-darwin-x86_64 1.9.18
app-engine-java 1.9.18
app-engine-managed-vms 2015.01.22
app-engine-python 1.9.18
app-engine-python-extras 1.9.18
bq 2.0.18
bq-nix 2.0.18
compute 2015.03.03
core 2015.03.03
core-nix 2014.10.20
dns 2015.03.03
gae-go 2015.03.03
gae-go-nix 2014.09.10
gae-python 2014.05.06
gae-python-launcher-mac 1.9.18
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.9
gsutil-nix 4.6
preview 2015.03.03
preview-extensions-darwin-x86_64 0.11.0
sql 2015.03.03
将完全相同的应用程序(相同的目录,相同的文件)部署到不同的项目。
我在 google-appengine@googlegroups.com
(Google App Engine 的传统支持社区)上通过 some help 设法解决了这个问题。
原来由于某种原因 "Cloud Integration" 没有为我的项目正确设置。我必须导航到 appspot.com 上的 "Application Settings",其中 "Cloud Integration"(它在页面的最下方)会显示以下错误:“An error occured when creating the project. Please retry.”
点击 "Retry" 并等待几分钟就成功了。
我有一个应用程序(用 Go 编写)运行正在 Google AppEngine 上运行,并且正在迁移到托管 VM。该应用程序已嵌入 Docker 容器中,对 Dockerfile
.
本地开发服务器由 gcloud preview app run app.yaml
运行 启动并正常运行。
然而,在尝试部署时,我 运行 出现以下错误。
使用 gcloud
的 --verbosity debug
我能够隔离导致问题的请求(抱歉重复输出):
INFO: Preparing project for VM runtimes.
DEBUG: Running [appcfg.py] with: appcfg.py --application=coduno --called_by_gcloud --noisy --oauth2 --oauth2_credential_file=/Users/flowlo/.config/gcloud/legacy_credentials/flowlo@example.com/singlestore.json --skip_sdk_update_check --version=master prepare_vm_runtime
11:53 AM Host: appengine.google.com
DEBUG: _Authenticate configuring auth; needs_auth=False
DEBUG: Sending request to https://appengine.google.com/api/vms/prepare?app_id=coduno headers={'X-appcfg-api-version': '1', 'content-length': '0', 'Content-Type': 'application/octet-stream'} body=
DEBUG: Got http error 400, this is try #1
DEBUG: Unexpected results: {'status': '400', 'content-length': '65', 'expires': 'Fri, 01 Jan 1990 00:00:00 GMT', 'server': 'Google Frontend', 'cache-control': 'no-cache', 'date': 'Tue, 10 Mar 2015 10:53:09 GMT', 'content-type': 'text/plain'}
Error 400: --- begin server output ---
Failed Project Preparation (app_id='s~example'). No default robot.
--- end server output ---
DEBUG: Received error code [1] while running: [appcfg.py --application=example --called_by_gcloud --noisy --oauth2 --oauth2_credential_file=/Users/lorenz/.config/gcloud/legacy_credentials/flowlo@example.com/singlestore.json --skip_sdk_update_check --version=master prepare_vm_runtime]
注意:真实的应用程序 ID 已替换为 example
,前缀 s~
出现在原始输出中。类似地,我将 app.yaml
的位置替换为 /path/to
。
我的 gcloud
是最新的:
$ gcloud --version
Google Cloud SDK 0.9.50
app 2015.03.03
app-engine-go-darwin-x86_64 1.9.18
app-engine-java 1.9.18
app-engine-managed-vms 2015.01.22
app-engine-python 1.9.18
app-engine-python-extras 1.9.18
bq 2.0.18
bq-nix 2.0.18
compute 2015.03.03
core 2015.03.03
core-nix 2014.10.20
dns 2015.03.03
gae-go 2015.03.03
gae-go-nix 2014.09.10
gae-python 2014.05.06
gae-python-launcher-mac 1.9.18
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.9
gsutil-nix 4.6
preview 2015.03.03
preview-extensions-darwin-x86_64 0.11.0
sql 2015.03.03
将完全相同的应用程序(相同的目录,相同的文件)部署到不同的项目。
我在 google-appengine@googlegroups.com
(Google App Engine 的传统支持社区)上通过 some help 设法解决了这个问题。
原来由于某种原因 "Cloud Integration" 没有为我的项目正确设置。我必须导航到 appspot.com 上的 "Application Settings",其中 "Cloud Integration"(它在页面的最下方)会显示以下错误:“An error occured when creating the project. Please retry.”
点击 "Retry" 并等待几分钟就成功了。