托管VM未在生产中运行

时间:2015-09-03 15:50:11

标签: python google-app-engine google-cloud-platform google-app-engine-python managed-vm

我正在尝试将托管VM应用程序部署到Google云平台,我收到以下错误:

ERROR: (gcloud.preview.app.deploy) Not enough VMs ready (0/1 ready, 1 still deploying).
Deployed Version: converter:dev.386894231648366298

此外,模块返回503 http错误。

app.yaml是:

application: XXXXXXX
module:      converter
version: "dev"
runtime: python27
vm: true
api_version: 1
threadsafe: yes
manual_scaling:
  instances: 1
handlers:
- url: /.*
  script: urls.application
libraries:
- name: webapp2
  version: latest

url.py是:

import webapp2
class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.write('ok')
application = webapp2.WSGIApplication([
    ('/', MainHandler)
], debug=True)

我使用Dockerfile:

FROM gcr.io/google_appengine/python-compat
ADD . /app/

gcloud版本:

Google Cloud SDK 0.9.75
app 2015.08.23
app-engine-python 1.9.25
app-engine-python-extras 1.9.21
beta 2015.08.17
bq 2.0.18
bq-nix 2.0.18
core 2015.08.23
core-nix 2015.06.02
gae-python-launcher-mac 1.9.18
gcloud 2015.08.23
gcutil-nix 1.16.5
gsutil 4.13
gsutil-nix 4.12
preview 2015.08.23
preview-extensions-darwin-x86_64 0.10.1

我做错了什么?

0 个答案:

没有答案