问题
The problem
my appication won't update on the dev server or the live server unless I do step 3 (below), every single time. Otherwise, I will get permission problems as shown below
e2016-01-08 12:47:58,781 ERROR appcfg.py:2438 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~project-name'). --- end server output ---
I'd ideally like to test just using dev_appserver.py
Things I've already tried
appcfg.py update --no_cookies .after the webpage opened for me to sign in, I gotNo data received
ERR_EMPTY_RESPONSE
and my terminal was stuck on " --noauth_local_webserver "
appcfg.py rollback .That leaves me with the same error:Error 403: --- begin server output --- You do not have permission to modify this app (app_id=u's~'). --- end server output ---
appcfg.py -A <project name> update .This just returns error from step aboveappcfg.py --no_cookies --oauth2 --email=myemail --noauth_local_webserver update .this uploads the project to my server, but, I'm tired of having to 'allow' then paste the code back into the terminal every single timeshutting down app engine launcher, removing project from launcher then adding back
restarting computer, turing off computer
launching from the terminal, launching from app engine launcher
- Note: I'm already signed into google chrome
What should I try next?
回答1:
Every time you use the '--no_cookies' option, you are telling appcfg to never save your credentials, so it's always going to prompt you every time you upload your app.
Running appcfg.py update app.yaml or appcfg.py update <dir_name> just once should be sufficient, since the '--oauth2' option is now the default and currently the only support authentication method.
On a side note, appcfg stores certain files under your user directory (C:\Users\<username> on Windows, or /home/<username> on Linux / Mac) named '.appcfg_*' for its cookies and saved auth tokens. You may need to show hidden files / extensions to see them. Sometimes deleting these files and re-running appcfg can help with auth not working.
来源:https://stackoverflow.com/questions/34683112/google-app-engine-permission-denied-error