Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Debian/Ubuntu package? #586

Closed
quangv opened this issue Mar 28, 2017 · 5 comments
Closed

No Debian/Ubuntu package? #586

quangv opened this issue Mar 28, 2017 · 5 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@quangv
Copy link

quangv commented Mar 28, 2017

There is no debian/ubuntu packages. So I couldn't do:

sudo apt-get install google-cloud-sdk-app-engine-go

I had to uninstall google-cloud-sdk with apt-get remove and reinstall again with the linux instructions.

I was able to run gcloud components install app-engine-go, however when I went to run the hello world example with dev_appserver.py app.yaml, it seemed like it almost worked, but then got a really long error msg.

dev_appserver.py app.yaml
INFO     2017-03-28 00:26:52,892 devappserver2.py:764] Skipping SDK update check.
INFO     2017-03-28 00:26:52,930 api_server.py:268] Starting API server at: http://localhost:37745
INFO     2017-03-28 00:26:53,136 dispatcher.py:199] Starting module "default" running at: http://localhost:8080
INFO     2017-03-28 00:26:53,136 admin_server.py:116] Starting admin server at: http://localhost:8000
ERROR    2017-03-28 00:26:54,394 go_runtime.py:181] Failed to build Go application: (Executed command: /home/quang/dev/gcp/quick-start/google-cloud-sdk/platform/google_appengine/goroot/bin/go-app-builder -app_base /home/quang/dev/gcp/quick-start/go-helloworld -arch 6 -dynamic -goroot /home/quang/dev/gcp/quick-start/google-cloud-sdk/platform/google_appengine/goroot -gopath /home/quang/dev/gcp/quick-start/google-cloud-sdk/platform/google_appengine/gopath -nobuild_files ^^$ -incremental_rebuild -unsafe -print_extras_hash go_appengine/goroot/src/go/types/builtins.go go_appengine/goroot/src/os/exec_plan9.go.........................etc.

2017/03/27 20:26:54 go-app-builder: Failed parsing input: failed parsing dir go_appengine/goroot/src/go/build/testdata/multi: found packages main (file.go) and test_package (file_appengine.go) in go_appengine/goroot/src/go/build/testdata/multi

^CINFO     2017-03-28 00:26:55,665 shutdown.py:45] Shutting down.
INFO     2017-03-28 00:26:55,665 api_server.py:700] Applying all pending transactions and saving the datastore
INFO     2017-03-28 00:26:55,665 api_server.py:703] Saving search indexes
@pongad
Copy link
Contributor

pongad commented Mar 28, 2017

I believe you can apt-get install google-cloud-sdk then gcloud components install app-engine-go, right? I believe the gcloud command itself is available via debian/ubuntu packages.

With regard to the error message, did you add files file.go and file_appengine.go yourself? The helloworld example seems to only contain hello.go.

@quangv
Copy link
Author

quangv commented Mar 28, 2017

Hey pongad, thanks for response.

I believe you can apt-get install google-cloud-sdk then gcloud components install app-engine-go, right?

Unfortunately, I get this message when I try to do that.

> gcloud components install app-engine-go
You cannot perform this action because this Cloud SDK installation is
managed by an external package manager.  If you would like to get the
latest version, please see our main download page at:

https://cloud.google.com/sdk/

ERROR: (gcloud.components.install) The component manager is disabled for this installation

With regard to the error message, did you add files file.go and file_appengine.go yourself? The helloworld example seems to only contain hello.go.

No, I was just following the tutorial, so I didn't add any files. (I am new to App Engine & Go). Interestingly following the instructions works on Windows, but on Debian I have lots of issues...

@pongad
Copy link
Contributor

pongad commented Mar 28, 2017

Unfortunately, I get this message when I try to do that.

Ah yes you're right. Go SDK doesn't seem to have a package in the list.

I didn't add any files

Looking at the message more closely. It looks like something is trying to build test data of the Go compiler: https://github.com/golang/go/tree/master/src/go/build/testdata/multi . @jba Do you think I'm reading this right?

@jba
Copy link
Contributor

jba commented Mar 28, 2017

I'm not familiar with appengine. @broady ?

@jba jba added the type: question Request for information or clarification. Not an issue. label Mar 28, 2017
@broady broady self-assigned this Jun 9, 2017
@broady
Copy link
Contributor

broady commented Jun 9, 2017

@quangv can you run gcloud components update and try again?

If it still fails, can you file a bug over at https://github.com/golang/appengine?

@broady broady closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants