Error deploying Python app to App Engine Flexible Environment

231 views
Skip to first unread message

Trish Whetzel

unread,
Jun 3, 2016, 3:02:29 PM6/3/16
to Google App Engine
I went through the tutorial Quickstart for Python in the App Engine Flexible Environment to deploy the sample Python app and was able to get that to work. I am now trying to deploy my own app and am getting the error:
Post https://us.gcr.io/v2/flexible-vm-python/appengine/default.20160603t094107/blobs/uploads/
: token auth attempt for registry: https://us.gcr.io/v2/token?account=_token&scope=repository%3Aflexible-vm-python%2Fappengine%2Fdefault.20160603t094107%3Apush%2Cpull&service=us.gcr.io request failed with status: 400 Bad Request
ERROR
ERROR: error pushing image "us.gcr.io/flexible-vm-python/appengine/default.20160603t094107:latest": exit status 1
ERROR: (gcloud.preview.app.deploy) Error Response: [2] Build failed; check build logs for details

I do have billing enabled for this project. Ideas on how to resolve and/or where to look for the build logs for more details?

Also, how do I change what App Engine project it is deployed to? For example, 'flexible-vm-python' is the project I used for the Hello World sample. The project for this app is 'flexible-vm-api-profiler'.


Trish Whetzel

unread,
Jun 3, 2016, 4:15:17 PM6/3/16
to Google App Engine
I see now, I needed to run gcloud init again to configure deployment of the new app.


Adam (Cloud Platform Support)

unread,
Jun 4, 2016, 4:00:45 PM6/4/16
to Google App Engine
Glad to hear you were able to sort it out. Alternatively, you can also use 'gcloud config set project <project>' to directly switch the project.

Some other useful commands are 'gcloud config set account <account>' to switch to another credential you have saved, and 'gcloud auth login' if you need to sign in to another Google account.
Reply all
Reply to author
Forward
0 new messages