谷歌应用程序引擎Python第一次上传应用程序

发布于 2024-12-07 08:36:54 字数 780 浏览 1 评论 0原文

我第一次尝试上传我的应用程序引擎项目,但我不知道为什么它不起作用。我的终端的错误是:

[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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

南街九尾狐 2024-12-14 08:36:55

显然添加“--no_cookies”参数将

appcfg.py update --no_cookies ProjectDir/

按照我能够找到答案的方式工作,即通过从我的Mac OS X上传我的应用程序(感谢上帝,我有linux mac和windows)。 Mac OS X 上的 AppEngine 带有 GUI 界面,可以用于上传。然后我找到了他们在控制台中使用的命令,其中包括“--no_cookies”。也许如果您将来遇到类似的问题,这是获得答案的一种方法

apparently adding the "--no_cookies" parameter will work

appcfg.py update --no_cookies ProjectDir/

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

小姐丶请自重 2024-12-14 08:36:55

App Engine for Java 也有同样的问题。问题是关于帐户登录。

如果您使用的是 Eclipse,请使用“登录”按钮。

如果您使用命令行,请使用“-e”选项,如下所示:

appcfg.sh -e [email protected] update yoursite/

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:

appcfg.sh -e [email protected] update yoursite/
阳光下慵懒的猫 2024-12-14 08:36:55

我也有同样的问题。当我更改启动器中使用的应用程序名称以匹配应用程序引擎中的应用程序名称时,它工作没有任何问题。据我了解,是名称不匹配导致了问题。您可以在 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/)

装迷糊 2024-12-14 08:36:55

这是为我解决的问题:
我在不同的终端上有一个 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

深居我梦 2024-12-14 08:36:55

对我有用的另一个选项是从 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.

白龙吟 2024-12-14 08:36:55

关键是

This application does not exist (app_id=u'tacticalagentz').

它告诉您 appspot.com 不知道具有该名称的应用程序。管理控制台 (https://appengine.google.com/) 显示您的应用程序。检查那里。您可能在注册应用程序时无意中犯了拼写错误。

The key bit is

This application does not exist (app_id=u'tacticalagentz').

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文