gae-ng-seed
gae-ng-seed copied to clipboard
Can't start the gae-ng-seed
Hello,
I have troubles starting the seed app. I have not changed anything in the code, just cloned it and followed the installation steps (GAE, bower, etc.). Here is the terminal output with a relevant error message:
gae-ng-seed$ goapp serve
INFO 2015-09-03 16:14:16,899 devappserver2.py:763] Skipping SDK update check.
INFO 2015-09-03 16:14:16,927 api_server.py:205] Starting API server at: http://localhost:58681
INFO 2015-09-03 16:14:16,937 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO 2015-09-03 16:14:16,938 admin_server.py:118] Starting admin server at: http://localhost:8000
ERROR 2015-09-03 16:14:17,972 go_runtime.py:180] Failed to build Go application: (Executed command: /opt/go_appengine/goroot/bin/go-app-builder -app_base /home/almer/go/gae-ng-seed -arch 6 -dynamic -goroot /opt/go_appengine/goroot -nobuild_files ^^$ -unsafe -gopath /opt/go_appengine/gopath -binary_name _go_app -extra_imports appengine_internal/init -work_dir /tmp/tmpgN_4V1appengine-go-bin -gcflags -I,/opt/go_appengine/goroot/pkg/linux_amd64_appengine -ldflags -L,/opt/go_appengine/goroot/pkg/linux_amd64_appengine server/api/xsrf_middleware.go server/server.go server/api/api.go server/xsrf.go)
/tmp/tmpgN_4V1appengine-go-bin/server/xsrf.go:6: can't find import: "code.google.com/p/xsrftoken"
2015/09/03 18:14:17 Can't find package "code.google.com/p/xsrftoken" in $GOPATH: cannot find package "code.google.com/p/xsrftoken" in any of:
/opt/go_appengine/goroot/src/code.google.com/p/xsrftoken (from $GOROOT)
/opt/go_appengine/gopath/src/code.google.com/p/xsrftoken (from $GOPATH)
2015/09/03 18:14:17 Can't find package "github.com/campbel/gore" in $GOPATH: cannot find package "github.com/campbel/gore" in any of:
/opt/go_appengine/goroot/src/github.com/campbel/gore (from $GOROOT)
/opt/go_appengine/gopath/src/github.com/campbel/gore (from $GOPATH)
2015/09/03 18:14:17 go-app-builder: build timing: 1×6g (16ms total), 0×gopack (0 total), 0×6l (0 total)
2015/09/03 18:14:17 go-app-builder: failed running 6g: exit status 1
Thanks in advance
UPDATE 1 This issue was solved by executing
go get github.com/campbel/gore
# requires mercurial to be installed
# sudo apt-get install mercurial
go get code.google.com/p/xsrftoken
UPDATE 2
There is a bug in app.yaml
config file. The line about bower_components
has to be updated:
- url: /bower_components
static_dir: client/bower_components