dow46218
2019-02-03 03:14
浏览 105
已采纳

使用Go111将helloworld部署到App Engine flexible失败

I'm attempting to deploy the helloworld app (source code here) to app engine flexible. When I deploy this without any changes to the code, everything works fine. But I want to use go1.11, so I changed the app.yaml to say

runtime: go111    # changed from runtime: go

and I get the error:

Beginning deployment of service [default]...
Building and pushing image for service [default]
ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [go111].  Please correct the errors and try again.

This is not a very helpful error message and googling hasn't helped so far as well. What can I do to debug/fix this issue?

图片转代码服务由CSDN问答提供 功能建议

我正在尝试部署helloworld应用(源代码此处),以灵活应用引擎。 当我部署此代码而不对代码进行任何更改时,一切正常。 但是我想使用go1.11,因此我将app.yaml更改为

  runtime:go111#从运行时更改为:go 
   
 
 

,我得到错误:

 开始部署服务[默认] ... 
为服务[默认]构建并推送映像
ERROR  :(gcloud.app.deploy)您的应用程序不能满足[go111]类型的运行时的所有要求。 请更正错误,然后重试。
   
 
 

这不是一个非常有用的错误消息,并且对谷歌搜索也没有帮助。 我该怎么做才能调试/修复此问题?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dsgd5756 2019-02-03 10:37
    已采纳

    App Engine Documentation Go Flexible Environment

    app.yaml Configuration File

    runtime: go

    This setting is required. It is the name of the App Engine language runtime used by this application. To specify Go, use go, and it will default to the latest supported Go version; alternatively, specify one of the following supported release versions: go1.10, go1.9, or go1.8.


    I want to use go1.11, so I changed the app.yaml to say runtime: go111

    ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [go111]. Please correct the errors and try again.

    Think about it for a moment. Is runtime of type go111 go1.11 or go11.1?


    Read the error message.

    ERROR: runtime of type [go111].

    Read the documentation.

    specify one of the following supported release versions: go1.10

    Which would make Go 1.11 go1.11.

    You used go111 and got

    ERROR: runtime of type [go111].
    

    What happens if you follow the instructions in the documentation and use go1.11 for Go 1.11?

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题