谷歌应用程序引擎Python第一次上传应用程序
我第一次尝试上传我的应用程序引擎项目,但我不知道为什么它不起作用。我的终端的错误是:
[me][~/Desktop]$ appcfg.py update ProjectDir/
Application: tacticalagentz; version: 1
Host: appengine.google.com
Starting update of app: tacticalagentz, version: 1
Scanning files on local disk.
Error 404: --- begin server output ---
This application does not exist (app_id=u'tacticalagentz').
--- end server output ---
我正在使用 python 2.6.5 和 ubuntu 10.04。
不确定这是否相关,但我今天刚刚创建了一个谷歌应用程序引擎帐户。我今天也刚刚创建了该应用程序(就像几个小时前一样)。这真的很令人沮丧,因为我只想上传到目前为止我所拥有的内容(作为演示)。在我的 app.yaml 中,这是我的第一行:
application: tacticalagentz
此外,我检查了我的管理控制台,我清楚地看到那里的应用程序 id,并且它与我的 app.yaml 中的应用程序 id 逐字匹配,
有人可以启发我吗?并告诉我我做错了什么?还是超出了我的理解范围(比如 Google 的索引问题,他们需要时间来索引我的应用程序 ID)?
预先非常感谢
i'm trying to upload my app engine project for the very first time and i have no clue why it is not working. the error from my terminal is:
[me][~/Desktop]$ appcfg.py update ProjectDir/
Application: tacticalagentz; version: 1
Host: appengine.google.com
Starting update of app: tacticalagentz, version: 1
Scanning files on local disk.
Error 404: --- begin server output ---
This application does not exist (app_id=u'tacticalagentz').
--- end server output ---
i'm using python 2.6.5 and ubuntu 10.04.
not sure if this is relevant, but i just created a google app engine account today. and i also just created the application today (like a couple of hours ago). this is really frustrating because i just want to upload what i have so far (as a demo). in my app.yaml this is my first line:
application: tacticalagentz
Furthermore, i checked on my admin console, and i CLEARLY see the app id right there, and it matches letter for letter with the app id in my app.yaml
could someone please enlighten me and tell me what i am doing wrong? or is it something beyond my comprehension (like indexing issue with Google that they need time to index my app id) ?
thank you very much in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
显然添加“--no_cookies”参数将
按照我能够找到答案的方式工作,即通过从我的Mac OS X上传我的应用程序(感谢上帝,我有linux mac和windows)。 Mac OS X 上的 AppEngine 带有 GUI 界面,可以用于上传。然后我找到了他们在控制台中使用的命令,其中包括“--no_cookies”。也许如果您将来遇到类似的问题,这是获得答案的一种方法
apparently adding the "--no_cookies" parameter will work
the way i was able to find my answer was by uploading my app from my Mac OS X (thank god i have linux mac and windows). AppEngine on Mac OS X comes with a GUI interface, and it worked for uploading. so then i found the command they used in the console, which included "--no_cookies". perhaps if you run into similar issues in the future, this is one approach to getting the answer
App Engine for Java 也有同样的问题。问题是关于帐户登录。
如果您使用的是 Eclipse,请使用“登录”按钮。
如果您使用命令行,请使用“-e”选项,如下所示:
App Engine for Java have the same problem. The problem is about account login.
If you are using Eclipse, use Sign In button.
If u are using command-line, use "-e" option, like this:
我也有同样的问题。当我更改启动器中使用的应用程序名称以匹配应用程序引擎中的应用程序名称时,它工作没有任何问题。据我了解,是名称不匹配导致了问题。您可以在 App Engine 的管理控制台中查看已注册应用的名称。(https://appengine.google.com/ )
I had the same problem. When I changed the name of the app I used in the launcher to match the one in the app engine, It worked without any problem. The way I figured out, it was the name mismatch which caused the problem. You can see the name of your registered app in the admin console of app engine.(https://appengine.google.com/)
这是为我解决的问题:
我在不同的终端上有一个 dev_appserver.py myProjDirectory/ 的实例。
我猜这些脚本以某种方式链接并且不是线程安全的
Here's what fixed it for me:
i had an instance of dev_appserver.py myProjDirectory/ on a different terminal.
i guess the scripts are somehow linked and aren't thread safe
对我有用的另一个选项是从 GUI 的控制选项中“清除部署凭据”。此后部署应用程序时,它会打开一个 Google 页面以允许 GAE 访问用户配置文件,然后部署成功。
An alternate option that worked for me is to just "Clear Deployment Credential" from the Control option of the GUI. When the app was deployed after this, it opened a google page to allow GAE to access the user profile and then deployment was successful.
关键是
它告诉您 appspot.com 不知道具有该名称的应用程序。管理控制台 (https://appengine.google.com/) 显示您的应用程序。检查那里。您可能在注册应用程序时无意中犯了拼写错误。
The key bit is
which is telling you that appspot.com doesn't know of an application by that name. The admin console (https://appengine.google.com/) shows your applications. Check there. You might have made an inadvertent typo when you registered the app.