Error 503 & aedeploy cloud app deploy cannot find package

125 views
Skip to first unread message

Gabor Lenard

unread,
Aug 28, 2016, 6:30:42 PM8/28/16
to google-appengine-go
Hi,

I spent today trying to migrate my existing classic Go appengine app to the Flexible environment and am now completely stuck. I would be grateful if you could help.

  • I have Python 2.7.10, Go 1.6.3 and App Engine SDK 1.9.40
  • GOPATH is set to the root of the project directory, above src, so to the top of this: 
  • The content of main.go:
    package main
    import (
    _ "modules/frontend"
    )
    func main() {
    appengine.Main()
    }
  • The dev server (go app serve app.yaml) builds the source files alright but returns 503 Request Timed Out to all non-static files.
  • aedeploy fails to deploy it (although the dir under /private/ seems to contain all files when I check it before hitting Return on “Do you want to continue"):

Old-Shatterhand:src gabor$ aedeploy gcloud app deploy
WARNING: Automatic app detection is currently in Beta
You are about to deploy the following services:
 - myapp/default/20160827t191422 (from [/private/var/folders/z3/w9x38yasdfs8xzasdfy6c41w0000gn/T/aedeploy894142831/app.yaml])
     Deployed URL: [https://myapp.appspot.com]

Do you want to continue (Y/n)?  


Beginning deployment of service [default]...
WARNING: Deployment of App Engine Flexible Environment apps is currently in Beta
Building and pushing image for service [default]
Started cloud build [a12fd484-00e1-142e-5e70-c7ce9325419a].
------------------------------------------------------- REMOTE BUILD OUTPUT -------------------------------------------------------
starting build “a39fd724-10c2-485e-9a70-d7be992f419a"

FETCHSOURCE
Downloading file:///tmp/source-archive.tgz:                      1.9 MiB/1.9 MiB     
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
Sending build context to Docker daemon  10.4 MB
 ---> 581263c969b9
Step 2 : COPY . /go/src/app
 ---> ec63b36bc03b
Removing intermediate container f6a8f1c197af
Step 3 : RUN go-wrapper install -tags appenginevm
 ---> Running in 4832afc188ac
+ exec go install -v -tags appenginevm
main.go:6:2: cannot find package "modules/frontend" in any of:
/usr/local/go/src/modules/frontend (from $GOROOT)
/go/src/modules/frontend (from $GOPATH)
/go/src/app/_gopath/src/modules/frontend
ERROR: (gcloud.app.deploy) Error Response: [2] Build failed; check build logs for details
aedeploy: Error: unable to run "gcloud app deploy": exit status 1
Reply all
Reply to author
Forward
0 new messages