Go 1.11 application panic after upgrade

58 views
Skip to first unread message

Matt Baer

unread,
Nov 11, 2019, 9:34:59 AM11/11/19
to Google App Engine

After following the instructions for upgrading from Go 1.9 to 1.11 and then running `go run .` as mentioned in the docs, my web application builds, but crashes on the first request it receives:

panic: Metadata fetch failed for 'instance/attributes/gae_project': Get http://metadata/computeMetadata/v1/instance/attributes/gae_project: dial tcp: lookup metadata on 127.0.0.53:53: server misbehaving

goroutine
30 [running]:
google
.golang.org/appengine/internal.mustGetMetadata(0xaa8a5f, 0x1f, 0x0, 0x0, 0x0)
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/metadata.go:34 +0x148
google
.golang.org/appengine/internal.partitionlessAppID(0xaa15e4, 0x15)
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/identity_vm.go:112 +0xa2
google
.golang.org/appengine/internal.DefaultTicket.func1()
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/api.go:294 +0x9d
sync
.(*Once).Do(0x123fa30, 0xaea880)
       
/usr/local/go/src/sync/once.go:44 +0xb3
google
.golang.org/appengine/internal.DefaultTicket(0xc0003e23f0, 0x99a9c0)
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/api.go:289 +0x39
google
.golang.org/appengine/internal.Call(0xb97ec0, 0xc0003e23f0, 0xa9960c, 0xa, 0xa93f28, 0x5, 0xb95a40, 0xc000384ec0, 0xb94940, 0xc0003da400, ...)
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/api.go:496 +0x971
google
.golang.org/appengine/internal.(*context).flushLog(0xc00021aba0, 0xaeb001, 0xc00008c700)
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/api.go:641 +0x3e7
google
.golang.org/appengine/internal.handleHTTP.func1(0xc00008c720, 0xc00021aba0)
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/api.go:138 +0x56
created
by google.golang.org/appengine/internal.handleHTTP
       
/home/m/projects/go/pkg/mod/google.golang.org/appengine@v1.6.5/internal/api.go:134 +0x380
exit status 2

This seems like maybe something else needs to be running locally on my machine. But I can't find any information in the docs. Any ideas?

Elliott (Cloud Platform Support)

unread,
Nov 11, 2019, 5:01:51 PM11/11/19
to Google App Engine
Hello Matt, 


Please note that Google Groups are reserved for general Google Cloud Platform and product discussions and not for reporting issues, which is why I suggest moving the troubleshooting to Issue Tracker, where issues can be turned private in case we need to gather any project specific details.

Reply all
Reply to author
Forward
0 new messages