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

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

Related

After deploying my site to Github pages, the URL has a serious problem I'm not sure how to fix

SEE UPDATE!!
I have tried to deploy my ReactJS page to Github, and the followed the rules to a tee.
Both from: https://facebook.github.io/create-react-app/docs/deployment
and
https://medium.freecodecamp.org/surge-vs-github-pages-deploying-a-create-react-app-project-c0ecbf317089
The error I get when doing the second, after many attempts at the first, is:
fatal: HttpRequestException encountered.
An error occurred while sending the request.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No error
what could be going on?
EDIT: ok now I have a site up, but the URL is myname.github.io/myname.github.io . How can I fix this?
https://facebook.github.io/create-react-app/docs/deployment#troubleshooting
taken from here:
try adding a new Personal Access Token:
git remote set-url origin https://<user>:<token>#github.com/<user>/<repo>
.
Try npm run deploy again
======= edit after seeing the addition on the original question.
So I thought it's a project page... But it's a github.io page. In that case, just push your app to master (the build/dist folder), move everything else (the source especially) to other branch if you want to clean up in master branch. More info: https://pages.github.com/
What you encountered https://yourname.github.io/yourproject is a project page, so if you're building a project, you can automatically add it into your main github page (your github.io).

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 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.

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.

My app in the google app engine won't deploy

Whenever I try to deploy my app (a proxy) it returns this message:
C:\Python27\pythonw.exe: can't open file 'C:\Program Files\Google\google_appengine\appcfg.py': [Errno 2] No such file or directory
2013-12-05 00:16:31 (Process exited with code 2)
I've checked it a thousand times and both the app in the engine and the title of the project on my app engine account page, have the same server name. I set the preferences correctly, yet the error is always that the file doesn't exist.
The error is saying the program appcfg which does the deployment doesnt exist.
Something about you SDK environment is wrong. Have a look and see if you can find appcfg.py in the patgh in the error message, and check where your SDK is currently installed.

Resources