简体   繁体   English

无法部署到 Cloud Run,“遇到内部错误”,建议?

[英]Cannot deploy to Cloud Run, `Internal error encountered`, suggestions?

I can't deploy to Cloud Run, via gcloud CLI nor the GCP web console.我无法通过gcloud CLI 或 GCP 网络控制台部署到 Cloud Run。 Both give very unhelpful errors.两者都给出了非常无用的错误。

Here is the output from the gcloud CLI:以下是gcloud CLI 的输出:

Deploying container to Cloud Run service [ihsw-nginx] in project [xxx] region [us-central1]
X Deploying new service...
  . Creating Revision...
  . Routing traffic...
Deployment failed
ERROR: (gcloud.beta.run.deploy) INTERNAL: Internal error encountered.

Does anyone have any suggestions?有没有人有什么建议?

Here is the repository being used, there is a cloudbuild.yaml for pushing to the Container Registry: https://github.com/ihsw/nginx这是正在使用的存储库,有一个用于推送到容器注册表的cloudbuild.yamlhttps ://github.com/ihsw/nginx

(Even though it says nginx , it's in fact a Node app.) (尽管它说nginx ,但它实际上是一个 Node 应用程序。)

i don't know if is the same problem, but i solved that way: https://stackoverflow.com/a/60084251/7466829我不知道是否是同一个问题,但我是这样解决的: https ://stackoverflow.com/a/60084251/7466829

In my case, is really a CloudRun bug.就我而言,这确实是一个 CloudRun 错误。

Your repo works for me.你的回购协议对我有用。

Pre-req's for this to work (and I assume you're there already) are:这个工作的先决条件(我假设你已经在那里)是:

  • gcloud services enable [cloudbuild|run].googleapis.com --project=${PROJECT}
  • Billing enabled (I assume)启用计费(我假设)
  • The cloudbuild service account needs: cloudbuild 服务账号需要:
    • roles/cloudbuild.builds.builder (default) roles/cloudbuild.builds.builder (默认)
    • roles/storage.objectCreator
    • roles/run.admin
    • roles/iam.serviceAccountUser

Generally you can submit issues at Google's issue tracker .通常您可以在 Google 的问题跟踪器上提交问题。

If the issue persists, I'd recommend filing under Cloud SDK如果问题仍然存在,我建议在Cloud SDK下归档

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

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