Friday, July 9, 2010

Changing From one Drive to another in Command Line

A quick post to document what came as a little surprising to me.

While using the Command line in Windows Vista Professional, I wanted to change my working directory from C to D. Any amateur would say just type D;\ but guess what, that didn't work for me.

A little googling gave me the solution. I needed to use /d flag.

y:\>cd /d x:\Folder1\Folder2
x:\Folder1\Folder2>

Good Luck!

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.