5

I'm trying to deploy my direction app in Google Cloud Console using the terminal with:

gcloud app deploy

But I get this error:

peter@cloudshell:~/direction-proxy (myapp-3f67k)$ gcloud app deploy
ERROR: (gcloud.app.deploy) Staging command [/usr/lib/google-cloud-sdk/platform/google_appengine/go-app-stager /home/peter/direction-proxy/app.yaml /home/peter/direction-proxy /tmp/tmpw9zlbhhe/tmp74n__vq4] failed with return code [1].
------------------------------------ STDOUT ------------------------------------
------------------------------------ STDERR ------------------------------------
2020/06/19 13:08:51 invalid runtime value go
--------------------------------------------------------------------------------

This is my app.yaml file that I think it produces this error but I have hard times understanding. I'm very new to Go.

runtime: go
api_version: go1

handlers:
- url: /.*
  script: _go_app
  login: admin
Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Lis Dya
  • 317
  • 3
  • 14
  • 1
    Migrate the application to runtime `go11` or later. See https://cloud.google.com/appengine/docs/standard/go111/go-differences for info on how to migrate the application. The most recent runtime is `go113`. See https://cloud.google.com/appengine/docs/standard/go/runtime. – Charlie Tumahai Jun 19 '20 at 10:43
  • @MuffinTop If I check the version using `go version` I get `go1.13 linux/amd64`. Is that migration to 1.11 sufficient? – Lis Dya Jun 19 '20 at 13:26
  • 1
    Because you are using Go version 1.13 in your local development environment, I would think that you want to use the `go113` runtime on App Engine. Follow the migration instructions linked from my previous comment. Edit the app.yaml to specify `runtime: go113`. – Charlie Tumahai Jun 19 '20 at 14:55
  • @MuffinTop No, I'm using only the online version. – Lis Dya Jun 19 '20 at 14:56
  • Your local environment is the place where you are typing commands like `gcloud app deploy` and `go version`. – Charlie Tumahai Jun 19 '20 at 14:58

0 Answers0