我无法使用App Engine(Java Flexible)进行部署,只能收到标题中的信息,这些信息不是很有用。 我尝试使用本教程部署helloworld-servlet示例应用程序(https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/helloworld-servlet)只是为了让它保持简单,但我仍然遇到同样的错误。
这是logm,失败,部分日志(启用了http-logging):
[INFO] GCLOUD: -- headers start --
[INFO] GCLOUD: -content-encoding: gzip
[INFO] GCLOUD: alt-svc: quic=":443"; ma=2592000; v="39,38,37,35"
[INFO] GCLOUD: cache-control: private
[INFO] GCLOUD: content-length: 588
[INFO] GCLOUD: content-location: https://appengine.googleapis.com/v1/apps/ticksterimportexport/operations/921b89d2-7eaa-41a1-87d2-c4be496793a0?alt=json
[INFO] GCLOUD: content-type: application/json; charset=UTF-8
[INFO] GCLOUD: date: Wed, 06 Sep 2017 05:46:41 GMT
[INFO] GCLOUD: server: ESF
[INFO] GCLOUD: status: 200
[INFO] GCLOUD: transfer-encoding: chunked
[INFO] GCLOUD: vary: Origin, X-Origin, Referer
[INFO] GCLOUD: x-content-type-options: nosniff
[INFO] GCLOUD: x-frame-options: SAMEORIGIN
[INFO] GCLOUD: x-xss-protection: 1; mode=block
[INFO] GCLOUD: -- headers end --
[INFO] GCLOUD: -- body start --
[INFO] GCLOUD: {
[INFO] GCLOUD: "name": "apps/ticksterimportexport/operations/921b89d2-7eaa-41a1-87d2-c4be496793a0",
[INFO] GCLOUD: "metadata": {
[INFO] GCLOUD: "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
[INFO] GCLOUD: "method": "google.appengine.v1.Versions.CreateVersion",
[INFO] GCLOUD: "insertTime": "2017-09-06T05:46:06.731Z",
[INFO] GCLOUD: "user": "produktion@atg.se",
[INFO] GCLOUD: "target": "apps/ticksterimportexport/services/default/versions/20170906t064538",
[INFO] GCLOUD: "ephemeralMessage": "Deployment failed. Attempting to cleanup deployment artifacts."
[INFO] GCLOUD: },
[INFO] GCLOUD: "done": true,
[INFO] GCLOUD: "error": {
[INFO] GCLOUD: "code": 13,
[INFO] GCLOUD: "message": "Unexpected Error. ()"
[INFO] GCLOUD: }
[INFO] GCLOUD: }
[INFO] GCLOUD:
[INFO] GCLOUD: -- body end --
[INFO] GCLOUD: total round trip time (request+response): 0.177 secs
[INFO] GCLOUD: ---- response end ----
[INFO] GCLOUD: ----------------------
[INFO] GCLOUD: failed.
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()
似乎一切顺利,直到服务启动。 如果我查看容器注册表下的控制面板,我可以看到我的容器映像,但是没有已部署的服务实例,并且无法访问。
这是我的应用的链接: https://hello-world-project-179013.appspot.com
我非常感谢有关此事的任何意见。 提前谢谢!