Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rollback the appcfg in Google App Engine?

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=ethereal-zodiac-803&version=1& 409 Conflict Another transaction by user suganya.karthik is already in progress for app: s~ethereal-zodiac-803, version: 1. That user can undo the transaction with "appcfg rollback".

See the deployment console for more details Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=ethereal-zodiac-803&version=1& 409 Conflict Another transaction by user suganya.karthik is already in progress for app: s~ethereal-zodiac-803, version: 1. That user can undo the transaction with "appcfg rollback".

like image 422
Suganya Karthik Avatar asked Mar 03 '15 16:03

Suganya Karthik


4 Answers

Just as the message says, you need to use rollback command to undo the previous update that failed to complete. Just replace the word update with the word rollback (everything else stays the same) and run the command.

You can run it in the terminal window (command prompt) on your computer by running appcfg program.

  • Python: https://cloud.google.com/appengine/docs/python/tools/uploadinganapp

  • Java: https://cloud.google.com/appengine/docs/java/tools/uploadinganapp

like image 140
Andrei Volgin Avatar answered Oct 11 '22 14:10

Andrei Volgin


In the terminal:

appcfg.py rollback (filename).yaml
like image 36
fragilewindows Avatar answered Oct 11 '22 13:10

fragilewindows


If you are using maven, you can use rollback goal:

mvn appengine:rollback
like image 9
John Avatar answered Oct 11 '22 14:10

John


In java, windows and eclipse:

Check the path for you appengine-java-sdk, in my case, it look like some things as.

 C:\Users\camno\.p2\pool\plugins\com.google.appengine.eclipse.sdkbundle_1.9.30\appengine-java-sdk-1.9.30\bin

Now in the console, go to the location of sdk, by type:

 cd [your appengine-java-sdk path]

Next, you can type the command for rollback:

appcfg -e [[email protected]] rollback [path to war of proyect]

The characteres [ ] must be no include. You can find more info about the comman arguments in https://cloud.google.com/appengine/docs/java/tools/appcfg-arguments

like image 2
Campino Avatar answered Oct 11 '22 12:10

Campino