views:

34

answers:

2

I'm using Windows 7 and for the life of me I cannot figure out how to call the rollback function on appcfg.py. All I want to know is what to type into the command prompt so I can rollback my app.

+1  A: 

The rollback command can rollback a transaction on the server, but you are unlikely to need to use that unless an update of your app failed for some reason. You should be getting some feedback from appcfg.py that such an action is required. Is that what you want to do? If so, just open a command prompt and type appcfg.py rollback.

Otherwise, please let us know what you are trying to accomplish by performing a 'rollback'.

Adam Crossland
Yeah, the update failed. The error message is: Another transaction by user User is already in progress for this app and major version. That user can undo the transaction with appcfg.py's "rollback" command.This "in-progress" transaction the error code refers to started last friday. I think it might be because I quit out of the google app engine launcher when it was launching. Anyway, I want deploy a new version of the app and it won't work. Typing "appcfg.py rollback" only opened appcfg.py inside Notepad++, and did nothing else. Any other suggestions?
@petwoip: It sounds like your system is not configured to automatically use the Python interpreter to launch .py files. You should be able to run it with "python appcfg.py rollback"
Adam Crossland
Ah, of course! I put the path of my app at the end and now it works. Thanks!
A: 

try this : this was how I did it (all from the command line) which is a slightly simpler method, which achieved the same effect.....

C:\Documents and Settings\Amit\My Documents\newproject>"C:\Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.5.v200909021031\appengine-java-sdk-1.2.5\bin\appcfg" rollback war

Reading application configuration data... 2009-09-17 20:47:35.859::INFO: Logging to STDERR via org.mortbay.log.StdErrLog Beginning server interaction for idebanet... 0% Rolling back the update. Success. Cleaning up temporary files...

C:\Documents and Settings\Amit\My Documents\newproject>

aMit