Coderbuddy and publishing on googleapp engine - Error 409: "appcfg rollback" - google-app-engine

I was using coderbuddy, and when I try to publish to google app, I receive this error:
Error 409
Another transaction by user ---- is already in progress for app: s~spigeo-app, version: 1. That user can undo the transaction with "appcfg rollback"
tried doing "appcfg rollback" on command prompt and received "Error 403: you do not have permission to modify this app"
I'm the only owner of the codes. Been stuck for a week; please advise, thanks!

coderbuddy has since fixed it, so it's no longer a problem. Just FYI.

Error
Another transaction by user ID is already in progress for app: b~GAE_PROECT_ID, version: 1. That user can undo the transaction with "appcfg rollback".
Fix the error
google_appengine/appcfg.py —oauth2 -A GAE_PROECT_ID rollback app_engine_installer/app_engine_project/app.yaml —noauth_local_webserver

Related

Error message "You do not have permission to modify this app" from a Google App Engine deployment

I am following the instructions on http://beta.appinventor.mit.edu/learn/reference/other/tinywebdb.html , trying to create a custom TinyWebDB for a grade 10 class I teach. After creating a new Project (the instructions say create an Application, but I only see a Create a new project button), I change the project name in the local file app.yaml file, load it in, and click on Deploy. I get the following error message:
Starting update of app: npicswebdb, version: 1
01:35 PM Getting current resource limits.
2016-03-09 13:35:26,727 ERROR appcfg.py:2396 An error occurred processing file '': HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u's~npicswebdb').
--- end server output ---
2016-03-09 13:35:26 (Process exited with code 1)
Is there some way I need to log in to the App Engine Launcher so it connects with my App Engine in the cloud? There is nothing in the instructions about doing that, and I don't see any way to do that in the launcher.
Thanks for your help.
Try adding "--no_cookies":
appcfg.py -A projectname update app.yaml --no_cookies
Delete cookie file something like this: ~/.appcfg_oauth2_tokens_java.
Re-run your command, it will prompt to login from browser and copy-paste a token back to the terminal.
Similar to the other answers. I run into the same issue and removing those stored credentials helped me, i.e:
rm ~/.appcfg_oauth2_tokens_java
rm ~/.appcfg_cookies
Found more details here: IT Code Hub - AppEngine deployment

Google app engine this application does not exist error

I use java backend on google's appengine with eclipse sdk.
When I tried to update my backend with eclipse, i got error that says
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: >https://appengine.google.com/api/appversion/create?app_id=infra-filament-610&version=2&
409 Conflict
Another transaction by user heodong91 is already in progress for app: s~infra-filament-610, version: 2. >That user can undo the transaction with "appcfg rollback".
So I ran the rollback on terminal with command
appcfg.sh rollback /Users/Donghyeok/PlanItBackend/src/main/webapp
but its giving me this error
Unable to rollback app: Error posting to URL: httpsds://appengine.google.com/api/appversion/rollback?>app_id=infra-filament-610&version=2&
404 Not Found
This application does not exist (app_id=u'infra-filament-610').
So then I looked up possible solutions and ran this on the command line.
appcfg.sh --no_cookies rollback /Users/Donghyeok/PlanItBackend/src/main/webapp
It still gave me the same error
This is try #3
Unable to rollback app: Error posting to URL: https://appengine.google.com/api/appversion/rollback?app_id=infra-filament-610&version=2&
404 Not Found
This application does not exist (app_id=u'infra-filament-610').
I tried again with --oauth2 option and still give me the same error.
I also tried removing .appcfg_oauth2_tokens_java file but same error.
I have tried many things in many combinations but I wasn't able to solve this issue. So the main problem is the first one. But to solve this I had to rollback, but its not letting me rollback.
Could someone please help?
I'm like desperate...
This can be fixed by changing the app name in app.yaml to the name of the project (visible in Google Developer Console, often suffixed with a number). It may also work by simply adding at the end of your rollback command line the following:
--application=<projectname>
Regards

Google app engine launcher: Invalid username or password

I've download google app engine (python) for windows and install it. Then I went to console.developers.google.com/project and create new project. After that, I launched google app engine launcher, create new application and named it as project I have recently create. I click on deploy and constantly getting this error:
03:35 PM Application: udacity-hello-pozdrav; version: 1
03:35 PM Host: appengine.google.com
03:35 PM
Starting update of app: udacity-hello-pozdrav, version: 1
03:35 PM Getting current resource limits.
Password for t******.****#gmail.com: Invalid username or password.
2014-09-06 15:35:56,690 ERROR appcfg.py:2411 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
2014-09-06 15:35:56 (Process exited with code 1)
You can close this window now.
I've read about appcfg.py but when I enter it in cmd, It says that it's not recognized.
Would be much better if you will use appcfg.py with --oauth2 flag.
Like appcfg.py --oauth2 update /path/to/your/app.
For the first time you will see the browser window where you'll need to allow access to your account. Then you can deploy without entering any credentials and without confirmations. This will work even with 2-step authentication turned on.
The "Invalid username or password" error is due to Google security protection. To overcome this error message and be able to deploy from the Launcher, go to your Google Account Settings, then enable "Access for Less Secure Apps" under Security Check Up.

Roll back Google App Engine project

I was trying to deploy my App Engine app, but I got this error:
Error 409: --- begin server output ---
Another transaction by user <email> is already in progress for app: s~my-app, version: 1. That user can undo the transaction with "appcfg rollback".
--- end server output ---
2014-08-16 18:06:15 (Process exited with code 1)
So I tried to solve that by running this:
c:\Python27\python appcfg.py rollback
In the directory that has my app.yaml file.
And this:
c:\Python27\python appcfg.py rollback <path to directory with my app.yaml file>
But in both cases I get this:
Can't open file 'appcfg.py': [Errno 2] No such file or directory
Anyone know how to solve this?
Thanks.
cd C:\path\containing\app.yaml\file
c:\Python27\python appcfg.py rollback .
Here's how I ended up solving it:
cd C:\Program Files (x86)\Google\google_appengine
c:\Python27\python appcfg.py rollback C:\Users\UserName\SkyDrive\Programming\ProjectFolder\app.yaml
Then I put in my email and passwords at the prompts, it rolled the update back, and now I'm able to deploy normally again.

how to rollback an interrupted deploy to GAE

I interrupted a play framework deploy to gae
I deployed it with
play gae:deploy --gae=$GAE_PATH
And press ctrl-c in the middle of it
Now, when I try to redeploy 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 with
/home/sas/devel/gae/bin/appcfg.sh rollback
but there's no such option
any idea?
In the end, I've just created another version and set it as default
But I'd like to know if there's some way to cancel the previous deploy
it is simple as:
mvn appengine:rollback
Go one directory above your application and try with:
appcfg.sh rollback your_application_directory_name
Go into the <play_install>/modules/<gae_module>/bin directory and edit the 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 your deploy again. Works for me with the same issue. I'll add a request to get this added to the module.
First download and install the app engine sdk if you don't have it already. In case you are using Android Studio the following command will do it:
/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 put differently, what you need to do is to point it to the directory that has the 'WEB-INF' folder in it.

Resources