How to appcfg rollback my project?

2019-04-07 02:02发布

I am using Google App Engine to upload my python project However once I try to upload my project I receive this error:

2013-07-24 20:21:06 Running command: "['C:\\Python26\\python.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=thomasston54321@gmail.com', '--passin', 'update', 'C:\\Users\\Thomas Stone\\Documents\\proxy-server']"
08:21 PM Host: appengine.google.com
08:21 PM Application: mathsonlinegames; version: secureable
08:21 PM 
Starting update of app: mathsonlinegames, version: secureable
08:21 PM Getting current resource limits.
Password for thomasston54321@gmail.com: 08:21 PM Scanning files on local disk.
Error 409: --- begin server output ---
Another transaction by user Thomasston54321 is already in progress for app: s~mathsonlinegames, version: secureable. That user can undo the transaction with "appcfg rollback".
--- end server output ---
2013-07-24 20:21:16 (Process exited with code 1)

You can close this window now. 

Because of this I have tried this in CMD:

cd C:\Program Files\Google\google_appengine
appcfg.py rollback C:\Users\Thomas Stone\Documents\proxy-server

But then I receive this error in CMD

Usage: appcfg.py [options] rollback <directory> | <file>

appcfg.py: error: Expected a single <directory> or <file> argument.

8条回答
倾城 Initia
2楼-- · 2019-04-07 02:10

You need to cd into the src folder.

Then do:

appcfg.py --no_cookies --email=YOUR_EMAIL_HERE@gmail.com --passin rollback ./

That always does the trick for me.

查看更多
疯言疯语
3楼-- · 2019-04-07 02:14

This was nagging for me for a while.
- It would be nice if Android Studio had this built in, like in the "stop deploying" functionality.

Finding the appropriate target folder took some work, but this worked as a gradle user on Mac OSX Sierra:

$ /Users/myuser/.gradle/appengine-sdk/appengine-java-sdk-1.9.54/bin/appcfg.sh rollback ~/Projects/myproject1.appspot.com-v74/backend/build/exploded-app/

A couple of steps are required to get there, however:
1.) set appcfg.sh, AND run_java.sh to executable (using chmod):

$ cd /Users/myuser/.gradle/appengine-sdk/appengine-java-sdk-1.9.54/bin/
$ chmod u+x appcfg.sh  
$ chmod u+x run_java.sh

2.) run the script:

$ /Users/myuser/.gradle/appengine-sdk/appengine-java-sdk-1.9.54/bin/appcfg.sh rollback ~/Projects/myproject1.appspot.com-v74/backend/build/exploded-app/

3.) enter credentials in the window that pops up
4.) copy/paste the "code" supplied in the window into the terminal session.

This also worked for me when I put the command into a shell script using:

$ vi ~/bin/rollback-project1
i  (press "i" for insert mode)
command-v (paste the command above)
:wq   (to save it, exit)

Run the script:

$ rollback-project1

If this fails, make sure that ~/bin is in your PATH:

echo $PATH

if not, add it to your ~/.bash_profile file (or whatever file applies):
export PATH="~/bin:$PATH"

查看更多
你好瞎i
4楼-- · 2019-04-07 02:15

I dont know what went wrong in my deployment so deployed was not done the same error 409 i got and by seeing the all the comments on stackoverflow related issues finally found the solution to it

it worked for me on MAC OS

Mac navigate to this Path on terminal below

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine

and used this code to update it

python appcfg.py rollback /Users/ram/Desktop/checkout_workspace/website-appengine/app.yaml

and Rolled back my update.

查看更多
Root(大扎)
5楼-- · 2019-04-07 02:18

When using gradle the path to appcfg is:

<user-dir>/.gradle/appengine-sdk/appengine-java-sdk-<version>/bin
查看更多
淡お忘
6楼-- · 2019-04-07 02:22

If you are unsuccessful trying above steps, place your app.yaml inside C:\Program Files\Google\google_appengine.

Then run:

C:\Program Files (x86)\Google\google_appengine>appcfg.py --no_cookies --email=Youremail --passin rollback app.yaml

It worked for me.

查看更多
我想做一个坏孩纸
7楼-- · 2019-04-07 02:26

Using the command line GO to the location where google_apengine folder is present in my case it C:\Program Files (x86)\Google\google_appengine.

appcfg.py --no_cookies --email=yourEmail  rollback [ project_dir\]app.yaml 

in my case [project_dir="E:\practiceCode\wp_test"]

so command should be

appcfg.py --no_cookies --email=prabhatyadav03@gmail.com  rollback E:\practiceCode\wp_test\app.yaml

and you get the authentication verification and complete that and rollback done.

查看更多
登录 后发表回答