How to roll back an aborted deployment in GAE

I interrupted the game deployment in gae

I deployed it with

play gae:deploy --gae=$GAE_PATH 

And press ctrl-c in the middle

Now, when I try to redistribute it, I get the following error:

 Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=playdoces&version=20111007& 409 Conflict Another transaction by user opensas is already in progress for app: s~playdoces, version: 20111007. That user can undo the transaction with "appcfg rollback". Please see the logs [/tmp/appcfg1441845586056774629.log] for further information. 

I tried using

 /home/sas/devel/gae/bin/appcfg.sh rollback 

but there is no such option

any idea?


In the end, I just created another version and set it as the default

But I would like to know if there is a way to undo the previous deployment

+4
source share
4 answers

just:

mvn appengine:rollback

+12
source

Go to the same directory above your application and try:

 appcfg.sh rollback your_application_directory_name 
+3
source

Go to the <play_install>/modules/<gae_module>/bin and edit commands.py so that it includes the rollback command:

 if command == "gae:rollback": print '~' print '~ Performing Rollback' print '~ ---------' if os.name == 'nt': os.system('%s/bin/appcfg.cmd rollback %s' % (gae_path, war_path)) else: os.system('%s/bin/appcfg.sh rollback %s' % (gae_path, war_path)) print "~ " print "~ Done!" print "~ " sys.exit(-1) 

Run this like play gae:rollback --gae=$GAE_PATH , then run the deployment again. Works for me with the same issue. I will add a request to add this module to the module.

+2
source

First, download and install the sdk engine application if you do not already have it. If you are using Android Studio, the following command will do this:

 /path-to-appengine-java-sdk/appengine-java-sdk-1.9.28/bin/appcfg.sh rollback /path-to-your-project/backend-module-folder/src/main/webapp/ 

Or else, what you need to do is point it to a directory in which there is a "WEB-INF" folder.

0
source

All Articles