google app engine - permission denied error

喜你入骨 提交于 2020-01-03 03:42:04

问题


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

  1. appcfg.py update --no_cookies . after the webpage opened for me to sign in, I got

    No data received

    ERR_EMPTY_RESPONSE

and my terminal was stuck on " --noauth_local_webserver "

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

  2. appcfg.py -A <project name> update . This just returns error from step above

  3. appcfg.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 time

  4. shutting down app engine launcher, removing project from launcher then adding back

  5. restarting computer, turing off computer

  6. launching from the terminal, launching from app engine launcher

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!