dpca4790 2015-01-24 18:08
浏览 23
已采纳

如何调试“无默认机器人”?

I have an Application (written in Go) running on Google AppEngine and am in the process of moving to Managed VMs. The App has been embedded in a Docker container with slight modifications to Dockerfile.

The local development server started by gcloud preview app run app.yaml runs fine and serves as expected.

When trying to deploy, however, I run into the following error.

Using gcloud's --verbosity debug I was able to isolate the request causing troubles (sorry for repeated output):

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]

Note: The real application ID was replaced with example, the prefix s~ is present in original output. Similarily I replaced the location of app.yaml with /path/to.

My gcloud is up to date:

$ 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

Deploying the exact same app (same directory, same files) to a different project works.

  • 写回答

1条回答 默认 最新

  • dpf5207 2015-03-12 09:07
    关注

    I managed to resolve this with some help on google-appengine@googlegroups.com (the legacy support community for Google App Engine).

    It turned out that for some reason "Cloud Integration" was not correctly set up for my project. I had to navigate to "Application Settings" on appspot.com where "Cloud Integration" (it's quite far down on the page) would show following error: "An error occured when creating the project. Please retry."

    Hitting "Retry" and waiting a few minutes did the trick.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。