【发布时间】:2014-10-12 18:27:09
【问题描述】:
我正在尝试让我的第一个 (PHP) 应用程序正常工作。它在 Google App Engine Launcher 中运行良好,但是当我尝试部署它时,我收到以下消息:
2014-08-19 15:37:58 Running command: "['C:\\Program Files\\Python\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=by@onetel.com', '--passin', 'update', 'C:\\Documents and Settings\\Barry\\My Documents\\test\\high-winter-668']"
03:38 PM Application: high-winter-668; version: 1
03:38 PM Host: appengine.google.com
03:38 PM
Starting update of app: high-winter-668, version: 1
03:38 PM Getting current resource limits.
Password for b...@...com: Invalid username or password.
2014-08-19 15:38:08,967 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 ---
我可以登录到我在 appengine.google.com 上创建的应用程序
并且我使用了正确/相同的电子邮件地址和密码。 我可以看到服务器/本地时差是问题的其他主题。我的本地电脑时间和上面错误信息中的时间是一样的。
我做错了什么?
还有: 我尝试在命令行上使用 appcfg.py 并遇到了另一个问题: 它错误地说我没有“high-winter-668.yaml”文件。因此,我将“app.yaml”的名称更改为“high-winter-668.yaml”——然后它抱怨我没有在 yaml 文件中指定“模块”。 与此同时,Google App Engine Launcher 错误地说我没有“app.yaml”文件。 它们是由不同的公司编写的吗!!??
【问题讨论】:
-
发布您的 app.yaml。检查它是否存在间距和其他不符合 yaml 的问题。
-
您使用的登录名拥有项目high-winter-668?你能包括你的 app.yaml 吗?当它要求一个 high-winter-668.yaml 时,因为它认为你有多个模块,每个模块都需要一个 .yaml 文件。
-
感谢您的建议 - 我找到了一个解决方案(见下文),希望能让我更进一步。
标签: php google-app-engine