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

不羁的心 提交于 2020-01-16 07:06:05

问题


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:

  • GAE/J This application does not exist (app_id=u'application-id')
  • Getting Error 404, application not found error when deploying to Google App Engine
  • This application does not exist (app_id=xxx)
  • This application does not exist - GAE
  • http://juplo.de/log-out-from-wrong-account-with-maven-appengine-plugin/
  • http://forums.udacity.com/questions/6014266/solved-unable-to-deploy-my-app-this-application-does-not-exist
  • https://code.google.com/p/googleappengine/issues/detail?id=5331
  • http://techspalace.blogspot.com/2011/08/solved-this-application-does-not-exist.html

回答1:


If you are using windows, you can try after delete this file

C:/Users/{username}/.appcfg_oauth2_tokens_java (maybe somthing like this file.)

I'm using eclipse maven plugins to build and packaging. By this way i could fix it !

References : https://cloud.google.com/appengine/docs/java/tools/uploadinganapp




回答2:


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.



来源:https://stackoverflow.com/questions/26766323/this-application-does-not-exist-app-id-ugoogle-comnbsocialmetrics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!