運行命令gcloud app deploy --project=my-project-name
當接收「項目未找到」的錯誤給了我下面的輸出:使用`gcloud部署app`
$ gcloud app deploy --project=my-project-name
You are about to deploy the following services:
- my-project-name/my-service-name/20160922t110054 (from [/usr/local/projects/my-project/app.yaml])
Deployed URL: [https://my-service-name-dot-my-project-name.appspot.com]
Do you want to continue (Y/n)? Y
WARNING: We couldn't validate that your project is ready to deploy to App Engine Flexible Environment. If deployment fails, please try again.
Beginning deployment of service [my-service-name]...
WARNING: Deployment of App Engine Flexible Environment apps is currently in Beta
Building and pushing image for service [my-service-name]
ERROR: (gcloud.app.deploy) Project [my-project-name] not found.
正如你可以看到,它宣稱該項目是找不到的。什麼是困惑我的是,該項目明確下出現在這裏:
$ gcloud projects list
PROJECT_ID NAME PROJECT_NUMBER
my-project-name MyProject 980737858333
我無法找到這個問題的任何其他實例,我已經江郎才盡了排查。那麼我運行的命令有什麼問題?或者我還能如何排除故障?
我app.yaml
看起來是這樣的:
entrypoint: gunicorn -b :8080 main.app
runtime: custom
vm: true
service: my-service-name
你
這將是冷靜:
當部署,調用
https://cloudbuild.googleapis.com/v1/projects/my-project-name/builds?alt=json
返回一個不錯的錯誤信息使用服務帳戶?你對這個項目有什麼作用? –@ZacharyNewman我是這個項目的編輯 – DaveBensonPhillips
真奇怪的是,如果我有意使用一個不存在的項目名稱,我會得到一個錯誤,告訴我我沒有所需的權限。這意味着在我的原始情況下,它已成功確定我有權爲項目提醒我,它不存在之前。 – DaveBensonPhillips