此应用不存在(app_id = u'google.com:nbsocialmetrics') [英] This application does not exist (app_id=u'google.com:nbsocialmetrics')

查看:153
本文介绍了此应用不存在(app_id = u'google.com:nbsocialmetrics')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道其他人发布了类似的问题,但在尝试解决方案后,我认为这是一个不同的问题。



我试图让一个多模块应用程序运行适用于Google App Engine。我正在从示例代码开发它。



我能够让我的应用程序在开发服务器上成功运行,但是当我尝试使用命令 mvn appengine:update尝试上传到Google App Engine时遇到以下错误

 错误详细信息:
Nov 05,2014 10:23:51 AM org .apache.jasper.JspC processFile
INFO:构建文件:/guestbook.jsp

com.google.appengine.tools.admin.HttpIoException:发布到URL的错误:https:// appengine .google.com / API / appversion /创建模块= nbsocialmetrics-前端&安培; APP_ID = google.com%3Anbsocialmetrics&安培;版本= 1&安培;
404未找到
此应用程序不存在(app_id = u'google.com:nbsocialmetrics')。

无法更新应用:发布到网址时出错:https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=google.com%3Anbsocialmetrics& version= 1安培;
404未找到
此应用程序不存在(app_id = u'google.com:nbsocialmetrics')。

请参阅日志[/var/folders/dp/v_lw6kqx16bf7743hs5t9phc0000gn/T/appcfg8240676105577823958.log]了解更多信息。

我列出了一堆对类似问题的引用,但这里是他们所说的和为什么它不适合我:

1]权限 - 确保您有权将代码上传到此Google帐户。我通过访问 http://appengine.google.com ,点击我的应用< nbsocialmetrics ,然后点击权限。在那里它列出了正确的谷歌帐户,它说角色是所有者。



2]删除cookie - 为了确保我的凭证没有被缓存,我删除了文件〜 /.appcfg_oauth2_tokens_java(我在Mac上)。显然这个文件被称为.appcfg_cookies,你可以在下面列出的引用中看到。


$ b <3> appcfg.sh - no_cookies - 有些人在上面#2旁边提出了另一个方法:call c。然而,我正在使用 mvn appengine:update ,并且需要花费大量工作来弄清楚 mvn appengine:update mvn appengine:update 彼此相关。所以我没有尝试这种方式。



对其建议无效的类似问题的参考:


解决方案我注意到我得到的错误与此问题的其他报告不同。注意我收到的错误消息中的前缀 google.com:

 此应用程序不存在(app_id = u'google.com:nbsocialmetrics')。 

此前缀不在此问题的其他报告中。因此,我将该前缀追踪到我之后建模的文件: appengine-application.xml

我的解决方案是删除从我的appengine-application.xml前缀,所以它现在读取:

 <应用程序> nbsocialmetrics< / application> 

而不是:

 <应用> google.com:nbsocialmetrics< /应用程序> 

我不知道为什么前缀在示例代码中。


I know others have posted similar issues but after trying their solutions I think this is a different problem.

I'm trying to get a multi-module application functioning for Google App Engine. I'm developing it from this sample code.

I was able to get my application running successfully in the development server but I encountered the following error when I tried to upload to Google App Engine with the command mvn appengine:update:

Error Details:
Nov 05, 2014 10:23:51 AM org.apache.jasper.JspC processFile
INFO: Built File: /guestbook.jsp

com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=google.com%3Anbsocialmetrics&version=1&
404 Not Found
This application does not exist (app_id=u'google.com:nbsocialmetrics').

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?module=nbsocialmetrics-frontend&app_id=google.com%3Anbsocialmetrics&version=1&
404 Not Found
This application does not exist (app_id=u'google.com:nbsocialmetrics').

Please see the logs [/var/folders/dp/v_lw6kqx16bf7743hs5t9phc0000gn/T/appcfg8240676105577823958.log] for further information.

I've listed a bunch of references to similar problems but here is a summary of what they say and why it didn't work for me:

1] Permissions - Make sure you have permission to upload code to this google account. I verified by going to http://appengine.google.com, clicking my app, nbsocialmetrics, and clicking permissions. There it lists the correct Google account and it says the Role is owner.

2] Delete cookies - To ensure my credentials hadn't been cached, I deleted the file ~/.appcfg_oauth2_tokens_java (I'm on a Mac). Apparently this file used be called .appcfg_cookies which you'll see in the references I've listed below.

3] appcfg.sh --no_cookies - Some people suggested another approach beside #2 above: call c. However, I'm using mvn appengine:update and it would take a lot of work to figure out how mvn appengine:update and mvn appengine:update relate to each other. So I didn't try this.

References to similar problems whose suggestions did not work:

解决方案

I noticed how the error I got was different from other reports of this issue. Notice the prefix google.com: in the error message I received:

This application does not exist (app_id=u'google.com:nbsocialmetrics').

This prefix wasn't in the other reports of this problem. So I tracked that prefix down to the file I was modeling after: appengine-application.xml.

My solution was to remove the prefix from my appengine-application.xml so it now reads this:

<application>nbsocialmetrics</application>

Instead of:

<application>google.com:nbsocialmetrics</application>

I have no idea why that prefix was in the sample code.

这篇关于此应用不存在(app_id = u'google.com:nbsocialmetrics')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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