Unable to deploy an application with app engine and google cloud storage.

58 views
Skip to first unread message

mschlimp

unread,
Jun 10, 2019, 10:45:43 AM6/10/19
to google-appengine-go
Hi,

I have a simple app for storing data in cloud storage.

I'm not able to deploy this application to AppEngine by using: 

gcloud app deploy 

Following Error occurs:

Updating service [default]...failed.                                                                                      

ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:

/work_dir/src/prepair/gcloud/cloud_storage.go:5:3: can't find import: "cloud.google.com/go/storage"

2019/06/10 06:49:36 go-app-builder: build timing: 6×compile (655ms total), 0×link (0s total)

2019/06/10 06:49:36 go-app-builder: failed running compile: exit status 2


After install of the related package:


go get cloud.google.com/go/storage


the update results in the following error:



File upload done.

Updating service [default]...failed.                                                                                      

ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:

2019/06/10 03:57:48 go-app-builder: Failed parsing input: parser: bad import "syscall" in src/cloud.google.com/go/cmd/go-cloud-debug-agent/internal/debug/server/ptrace.go




The used documentation for the implementation is:


https://cloud.google.com/appengine/docs/standard/go/googlecloudstorageclient/app-engine-cloud-storage-sample


What is the right way to use cloud storage with app engine?

Thanks.
Marcel

Reply all
Reply to author
Forward
0 new messages