Google app engine this application does not exist error - google-app-engine

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

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 appengine deployment authorization problems

Im having problems deploying my GAE. I've got two running already so I should have all the right lirbaries and whatnot. But obviously Im missing something.
I registered my applet with googe appengine developers.
i enter the app_id in the app.yaml of the project as application name.
in cmd, i go to google_appengine and run the "appcfg.py update" on the root directory of my project. "C:/Development/GAE/projectname"
type in email and pw,
and then i get this error msg
12:47 AM Application: processing#######; version: 1
12:47 AM Host: appengine.google.com
12:47 AM
Starting update of app: processing######, version: 1
12:47 AM Getting current resource limits.
Password for ############gmail.com: Invalid username or password.
2014-09-19 00:47:36,404 ERROR appcfg.py:2416 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
Any ideas what Im missing? Ive triple-checked all these steps cause thats all i can think of.
My App.yaml contains this
application: processing######
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /statics
static_dir: statics
- url: /sketches
static_dir: sketches
- url: .*
script: main.app
libraries:
- name: webapp2
version: "2.5.2"
- name: jinja2
version: latest
Ive upgraded my GAE to the latest version too, still no change. I also tried uploading it to a different application, same problem.
Ive added 2 static folder I use for to run Processing embedded in my website.
PS my app runs fine locally and there's nothing that throws errors or doesnt compile. I think the fault lies somewehre else.
Cheers
Ok so as usual, more research eventually revealed the answer. And stackoverflow.
Guess I missed this first because it specified with php.Stack Overflow Question
Basically i wasnt doing anything wrong afterall, the permission problem was that it was being blocked by my google account.
I had to go to my Account Security permissions, and enable access from less-secure devices.
This must be a new, recent setting Google changed, becuase Ive already deployed 2 apps before.
To mention here for other people with the same problem:
First go through the steps I went through to make sure everything is set up correctly.
Then you should solving it the way I did.
Otherwise you can try setting it up so you can upload without password, this might avoid the problem if it lies somewehre else --oauth without pw
Finally I read that for some people the problem was in timezones. When the time on their computer was different to GAE or server I think that lead to miscommunication, so double-check that your time is set correctly and that it agrees with the time you see in the Launcher Log.
well for me the below 02 options worked
appcfg.py update . --oauth2 --noauth_local_webserver
The authentication flow was :
the command and options generated a url in stdout, which i copied and accessed from my browser, the browser generated a code, which I gave in my command line. I could see appcfg as one of the apps under connected apps and services of my google account.
It seems like an error with your user or password.
Are you sure you can access the project in the developer console, the email configured under permissions is the one which you are using to connect and the app id in yaml file is the same ID on the developers console? If so, the only thing I can imagine is a fail in your password.
Maybe a key pressed? Try typing it in a text processor.
A last idea, deploy the app via the launcher of the sdk. Add the existing app in the file menu (search the app.yaml file) and click deploy to see if there you can authenticate.

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

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

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.

Google App Engine appcfg.py shows the help message for every command

I have GWT app, which is deployed on GAE (Java). I'm trying to download data from App Engine datastore using appcfg.py . I did all the setup according to http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/ .
GAE Python SDK version is 1.4.3
Python version is 2.5.4
appcfg.py is on my PATH. When I run appcfg.py on the command-line, I get the "help" message. But the problem is that no matter which command I use, it always returns the help message. I have not been able to run any command using appcfg.py.
It doesn't give any specific error message no matter what arguments I give. My app is using Google Accounts authentication, but I don't think it even gets to the point of authentication.
I'm able to use the Java appcfg (for other actions like rollback) without any problem. But the Python version simply refuses to work for all commands.
I've tried different formats like:
appcfg.py create_bulkloader_config --url=http://myappid.appspot.com/remote_api --application=myappid --filename=config.yml
appcfg.py create_bulkloader_config --filename=bulkloader.yaml --url=http://myappid.appspot.com/remote_api
appcfg.py --filename=bulkloader.yaml --url=http://myappid.appspot.com/remote_api create_bulkloader_config
All give me the same help message:
Usage: appcfg.py [options]
Action must be one of:
create_bulkloader_config: Create a bulkloader.yaml from a running application.
cron_info: Display information about cron jobs.
download_app: Download a previously-uploaded app.
download_data: Download entities from datastore.
help: Print help for a specific action.
request_logs: Write request logs in Apache common log format.
rollback: Rollback an in-progress update.
set_default_version: Set the default (serving) version.
update: Create or update an app version.
update_cron: Update application cron definitions.
update_dos: Update application dos definitions.
update_indexes: Update application indexes.
update_queues: Update application task queue definitions.
upload_data: Upload data records to datastore.
vacuum_indexes: Delete unused indexes from application.
Use 'help <action>' for a detailed description.
Options:
-h, --help Show the help message and exit.
-q, --quiet Print errors only.
-v, --verbose Print info level logs.
--noisy Print all logs.
-s SERVER, --server=SERVER
...
...
...
Even when I try "appcfg.py help create_bulkloader_config" for a detailed description, it still shows me the same standard help.
I have also tried on the local development server using the url http://127.0.0.1:8888/remote_api but it still gives the same help message.
I'm totally clueless as to what the problem is. I'm new to GWT and GAE, and any help will be appreciated.
Thanks.
The following fix worked for me. It looks like appcfg.py doesn't like PYTHON27 and ALWAYS returns the help menu. I fixed it by executing it with PYTHON25 and hard coded all my file locations:
C:\Python25-archive\python "C:\Program Files (x86)\Google\google_appengine\appcfg.py" rollback C:\scripts\myapp
The right way is to change the environment variables on Windows 7:
Go to System Properties
Go to Advance System Settings
Click on Environment Variables
Append to Path variable the values C:\Python27\
Click Ok and restart your computer. (Yes, it is needed.)
Another way is to:
Open command Prompt
Locate your python.exe file. For example:
C:\Python27>_
Then, run a python command that looks like this.
python <appcfg_directory> download_app -A <your_app_id> -V <your_app_version> <output-dir>
Where <appcfg_directory> is equal to C:\Program Files\Google\google_appengine\appcfg.py. (Depending on your file location)
Don't forget to put quotes before and after <appcfg_directory>

Resources