我如何调试"没有默认机器人"?

时间:2015-01-24 18:08:06

标签: google-app-engine go docker

我在Google AppEngine上运行了一个应用程序(用Go编写),我正在迁移到托管虚拟机。该应用程序已嵌入Docker容器中,稍加修改Dockerfile

gcloud preview app run app.yaml启动的本地开发服务器正常运行并按预期运行。

但是,在尝试部署时,我遇到了以下错误。

使用gcloud的{​​{1}}我能够隔离导致麻烦的请求(抱歉重复输出):

--verbosity debug

注意:实际应用程序ID已替换为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] ,原始输出中存在前缀example。我同样用s~替换app.yaml的位置。

我的/path/to是最新的:

gcloud

将完全相同的应用程序(相同的目录,相同的文件)部署到不同的项目中。

1 个答案:

答案 0 :(得分:0)

我设法通过google-appengine@googlegroups.com(Google App Engine的旧版支持社区)上的some help解决此问题。

事实证明,由于某种原因,“云集成”没有为我的项目正确设置。我不得不导航到appspot.com上的“应用程序设置”,其中“云集成”(它在页面上相当远的位置)会显示以下错误:“An error occured when creating the project. Please retry.

点击“重试”并等待几分钟就可以了。