Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CLI 400 error deploying to Google App Engine

Today I got a new error when trying to deploy my application to Google App Engine via the command line:

Updating module [default]...-ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:
  Bad Request Unexpected HTTP status 400.
  Your app may not have more than 120 versions.
  Please delete one of the existing versions before trying to create a new version.

I am deploying to the top level using --promote, not creating other versions. How do I fix this error?

like image 702
wogsland Avatar asked Jan 04 '16 18:01

wogsland


People also ask

How do I deploy Docker in Google App Engine?

Deploy to App Engine flexible environment You can deploy an image hosted by Artifact Registry to App Engine using the Google Cloud CLI. Create the App Engine configuration file for your app. Build a Docker image and push it to your repository. You can use Cloud Build to build and push your container to the repository.


1 Answers

There is also a way to do this via command line if that interests you.

gcloud preview app versions list

gcloud preview app modules delete <module_name> --version=<version_number>


UPDATE 2017 (see also CLI 400 error deploying to Google App Engine )

List all versions:

gcloud app versions list

Delete versions v1 and v2:

gcloud app versions delete v1 v2

https://cloud.google.com/sdk/gcloud/reference/app/versions/

like image 102
SexiestDevIKnow Avatar answered Oct 11 '22 12:10

SexiestDevIKnow