谷歌AppEngine上部署的授权问题 [英] google appengine deployment authorization problems

查看:227
本文介绍了谷歌AppEngine上部署的授权问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林有部署我GAE的问题。我有两个运行已经所以我应该拥有所有正确的lirbaries和诸如此类的东西。但很明显,林失去了一些东西。

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.


  1. 我注册了我的小程序所有使用Google的AppEngine开发者。

  2. 我输入在项目中的应用程序名称的app.yaml的APP_ID。

  3. 在CMD,我去google_appengine并运行在我的项目的根目录下的appcfg.py更新。 C:/开发/ GAE /项目名称

  4. 键入电子邮件地址和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.

我的app.yaml中包含此

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 

香港专业教育学院升级我的GAE到最新版本也依然没有改变。我也试着上传到不同的应用程序,同样的问题。
香港专业教育学院增加我使用要运行处理嵌在我的网站2静态文件夹中。

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我的应用程序运行正常在当地并没有什么抛出错误或犯规编译。我认为故障出somewehre人。

PS my app runs fine locally and there's nothing that throws errors or doesnt compile. I think the fault lies somewehre else.

干杯

推荐答案

好了,所以像往常一样,更多的研究最终揭晓答案。和计算器。
猜猜我第一次错过了这一点,因为它用PHP指定。<一个href=\"http://stackoverflow.com/questions/25387063/google-app-engine-deploy-failing-with-error-1-unauthorised\">Stack溢出问题

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.

这必须是一个新的,最近设置谷歌改变,监守香港专业教育学院已在部署前2应用程序。

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.

否则,你可以尝试设置它,这样你就可以不用密码上传,这可能避免的问题,如果它位于somewehre其他<一href=\"https://developers.google.com/appengine/docs/python/tools/uploadinganapp#Python_Password-less_login_with_OAuth2\"相对=nofollow> - OAuth的不PW

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

最后,我读了一些人的问题是时区。当他们的计算机上的时间是GAE或服务器不同,我认为这会导致沟通不畅,所以仔细检查你的时间是否正确设置,它与您在启动日志中看到的时间相一致。

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.

这篇关于谷歌AppEngine上部署的授权问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆