0

我正在尝试将托管 VM 应用程序部署到谷歌云平台,但出现以下错误:

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

我究竟做错了什么?

4

0 回答 0