Thursday, July 8, 2010

App Engine Deploy Error 409: Solution

When deployment of an application through App Engine fails and you try to deploy it again, an error is encountered:

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=jayati3644=1&
409 Conflict
Another transaction by user jayati07 is already in progress for this app and major version. That user can undo the transaction with appcfg.py’s “rollback” command.
See the deployment console for more details


Documentation given is not much help. But it's easy to do. Here's how...

Execute the appcfg.cmd(for Windows) appcfg.sh(for Linux) in the bin directory of your Appengine installation. These instructions are for the Java SDK. For a python one, you may use appcfg.py. Appengine is usually installed in the plugins directory of eclipse(if you are using Eclipse) or wherever you downloaded it.

APPENGINEDIR/bin/appcfg.sh rollback /YOURAPP/war



You will get output similar to the one in this screenshot. Now you are free to deploy as you want.

4 comments:

  1. I dont know what is going on. I am geting this error while using appengine-java-sdk-1.6.2.1. But while using appengine-java-sdk-1.6.3 pre release version, there is no problem. also I c @ app engine blog that there are functionalities added in this higher version, though I dint get any !!!

    - Cyber Mock Test (twitter: @upal_)

    ReplyDelete
  2. i tried ur solution for my problem too. but still i'm getting the same error.

    ReplyDelete
  3. I tried too, but it not working :(

    ReplyDelete
  4. It solved my issue , thank you very much. it was also listed in the documentation , but found the solution on your blog first

    ReplyDelete