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/[email protected]/
internal/metadata.go:34 +0x148
google.golang.org/appengine/internal.partitionlessAppID(0xaa15e4, 0x15)
/home/m/projects/go/pkg/mod/google.golang.org/[email protected]/
internal/identity_vm.go:112 +0xa2
google.golang.org/appengine/internal.DefaultTicket.func1()
/home/m/projects/go/pkg/mod/google.golang.org/[email protected]/
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/[email protected]/
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/[email protected]/
internal/api.go:496 +0x971
google.golang.org/appengine/internal.(*context).flushLog(0xc00021aba0,
0xaeb001, 0xc00008c700)
/home/m/projects/go/pkg/mod/google.golang.org/[email protected]/
internal/api.go:641 +0x3e7
google.golang.org/appengine/internal.handleHTTP.func1(0xc00008c720,
0xc00021aba0)
/home/m/projects/go/pkg/mod/google.golang.org/[email protected]/
internal/api.go:138 +0x56
created by google.golang.org/appengine/internal.handleHTTP
/home/m/projects/go/pkg/mod/google.golang.org/[email protected]/
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?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/79ea6da1-3849-482c-9a71-bd4eb862da76%40googlegroups.com.