Appengine go compilation error

77 views
Skip to first unread message

Yufei Wu

unread,
Oct 20, 2016, 9:21:09 AM10/20/16
to Google App Engine
Anyone encountered a "composite struct literal net.IP with unkeyed fields" error when deploying to appengine? This error pops up recently when i tried to deploy my go app to appengine. I'm using 1.9.40 sdk with go 1.6.2. this is very strange coz i never had this problem before nor changed anything related to it. Local devserver compiles just fine. It's the cloud compile making the complaint. It makes no sense to me because net.IP and asn1.ObjectIdentifier are both array not struct in official golang library. Is it a glitch in app engine or something?

Below is the actual error.

Compile failed:
2016/10/19 21:21:14 go-app-builder: Failed parsing input (1 error)
2016/10/19 21:21:14 k8s.io/kubernetes/pkg/util/net/interface.go:243:10: composite struct literal net.IP with unkeyed fields
--- end server output ---
2016-10-20 12:21:16,350 INFO appcfg.py:2574 HTTP Error (HTTP Error 422: Unprocessable Entity Unexpected HTTP status 422)
12:21 PM Rolling back the update.


Sometimes it shows a similar in a difference file like this:

Compile failed:
2016/10/19 21:21:58 go-app-builder: Failed parsing input (6 errors)
2016/10/19 21:21:58 github.com/cloudflare/cfssl/signer/signer.go:293:14: composite struct literal encoding/asn1.ObjectIdentifier with unkeyed fields
2016/10/19 21:21:58 github.com/cloudflare/cfssl/signer/signer.go:325:39: composite struct literal encoding/asn1.ObjectIdentifier with unkeyed fields
2016/10/19 21:21:58 github.com/cloudflare/cfssl/signer/signer.go:328:19: composite struct literal encoding/asn1.ObjectIdentifier with unkeyed fields
2016/10/19 21:21:58 github.com/cloudflare/cfssl/signer/signer.go:332:16: composite struct literal encoding/asn1.ObjectIdentifier with unkeyed fields
2016/10/19 21:21:58 github.com/cloudflare/cfssl/signer/signer.go:336:15: composite struct literal encoding/asn1.ObjectIdentifier with unkeyed fields
2016/10/19 21:21:58 github.com/cloudflare/cfssl/signer/signer.go:380:13: composite struct literal encoding/asn1.ObjectIdentifier with unkeyed fields
--- end server output ---
12:21 PM Rolling back the update.

Alex (Cloud Platform Support)

unread,
Oct 21, 2016, 11:28:48 AM10/21/16
to Google App Engine

Hi Russell,


I was unable to reproduce your issue while following the Quickstart for Go App Engine tutorial and using the Hello World sample app that was provided with it. I understand your Go app is more complicated to deploy than mine. Therefore, if you believe that it is a bug, you may want to submit a detailed defect report (with label “Language-Go”) on the Google App Engine public issue tracker and have someone look into it in more details.


Alternatively, you could also make a post of your issue on Stack Overflow which we regularly monitor as other types of stack exchange services and which would increase your chances to get a faster answer due to its larger audience.


Let me know if you would have any additional questions about posting your issue on any of the alternative sites.

Reply all
Reply to author
Forward
0 new messages