在创建应用并将其部署到Google应用引擎时遇到问题 [英] Issues while creating and deploying an app to google app engine
问题描述
错误:
>错误404:---开始服务器输出---
此应用程序不存在(project_id = u'homework-153002')。要在此项目中创建App Engine应用程序,请在控制台中运行gcloud beta app create。
---结束服务器输出---
当我尝试使用上述命令创建应用程序时,这是我看到的:
错误:(gcloud.beta.app.create)您没有权限访问应用[作业](或者可能不存在):操作不允许
我在google开发者api网站中创建了一个project_name为homework和随机ID的项目。以下是该网址:
https:// console .developers.google.com / apis / library?project = homework-153002
任何关于我在这里可能会做错的指针?
这是我的yaml文件:
application:homework-153002
版本:1
运行时:python27
api_version:1
线程安全:是
处理程序:
- url:。*
script:main .app
库:
- 名称:webapp2
版本:2.5.2
您的应用程序URL表示您的应用程序ID为 homework-153002
,但
错误信息表明你正在连接到一个称为 homework
的ap - 可能不是你自己的,因此是许可问题。
只需在部署命令和/或app.yaml文件中更正应用程序标识即可。
正如您的评论所示,对于您的情况( gcloud
部署),解决方案为:
gcloud config set project homework-153002
gcloud beta app创建
appcfg.py更新家庭作业/
I am running into this error while deploying my app to google app-engine.
Error:
Error 404: --- begin server output --- This application does not exist (project_id=u'homework-153002'). To create an App Engine application in this project, run "gcloud beta app create" in your console. --- end server output ---
When I try to create the app using the above command this is what I see:
ERROR: (gcloud.beta.app.create) You do not have permission to access app [homework] (or it may not exist): Operation not allowed
I have created a project in google developers api website with project_name of "homework" and random id. Here is the url for that: https://console.developers.google.com/apis/library?project=homework-153002
Any pointers on what I might be doing wrong here?
This is my yaml file:
application: homework-153002
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: .*
script: main.app
libraries:
- name: webapp2
version: "2.5.2"
Your app URL indicates your app ID is homework-153002
, but the
error message indicates you're connecting to an ap called homework
- likely not your own, hence the permission issue.
Simply correcting the app ID in your deployment command and/or your app.yaml file should suffice.
As your comment indicates, for your case (gcloud
deployment) the solution was:
gcloud config set project homework-153002
gcloud beta app create
appcfg.py update homework/
这篇关于在创建应用并将其部署到Google应用引擎时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!