简体   繁体   English

无法在Google App Engine上部署java项目

[英]Unable to deploy java project on Google App Engine

I've created one project on Google App Engine and I'm unable to deploy the project with project id: "my project id" 我在Google App Engine上创建了一个项目,我无法使用项目ID部署项目:“我的项目ID”

Here are details of problem occurred: 以下是发生问题的详细信息:

The App Id you selected, "my project id", does not exist. 您选择的应用ID“我的项目ID”不存在。 Go to http://cloud.google.com/console to view existing App Ids or create a new App Id. 转到http://cloud.google.com/console查看现有应用ID或创建新的应用ID。

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id= "my project id"&version=1& 404 Not Found This application does not exist (project_id=u'my project id'). 无法更新应用:错误发布到网址: https ://appengine.google.com/api/appversion/create?app_id =“我的项目ID”&版本= 1&404未找到此应用程序不存在(project_id = u'my项目ID')。 To create an App Engine application in this project, run "gcloud beta app create" in your console. 要在此项目中创建App Engine应用程序,请在控制台中运行“gcloud beta app create”。

Is anyone facing this issue? 有人面临这个问题吗?

The old projects are working fine and I'm able to deploy those projects. 旧项目工作正常,我可以部署这些项目。 The issue is only with newly created projects. 问题仅出现在新创建的项目中。

You have to do exactly as the error message tells you, which is to run the gcloud app create (beta no longer needed) command from a terminal. 您必须完全按照错误消息告诉您的操作,即从终端运行gcloud app create (beta不再需要)命令。

App Engine is no longer automatically initialized for newly created projects, so you must run this command on a new project before deploying an App Engine app for the first time. 不再为新创建的项目自动初始化App Engine,因此必须在首次部署App Engine应用程序之前在新项目上运行此命令。

For my new eclipse project it seamed to work to create the new project at https://console.cloud.google.com/ and wait 24 hours. 对于我的新eclipse项目,它接着在https://console.cloud.google.com/上创建新项目并等待24小时。 At 'Activity' after the first listing of the new project 15.12.16 7:22 CreateProject the next listing <me@myhost> hat google.appengine.v1.Applications.CreateApplication für <myproject> ausgeführt 17. Dezember 2016 um 07:22:06 UTC+1 and more appeared automatically exactly after 24 hours. 在新项目第一次上市后的'活动15.12.16 7:22 CreateProject下一个列表<me@myhost> hat google.appengine.v1.Applications.CreateApplication für <myproject> ausgeführt 17. Dezember 2016 um 07:22:06 UTC+1和更多时间24小时后自动出现。 Then I was able to successfully deploy from eclipse. 然后我能够从eclipse成功部署。

For another new project Adams proposal worked fine: open the 'Google Cloud SDK Shell' as an administrator, 'cd' to the eclise workspace and my project and execute gcloud beta app create , choosing my preferred region and deploy my new project from eclipse. 对于另一个新项目,Adams提案运行良好:以管理员身份打开'Google Cloud SDK Shell',在eclise工作区和我的项目中'cd'并执行gcloud beta app create ,选择我喜欢的区域并从eclipse部署我的新项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM