简体   繁体   中英

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

I can't deploy to Cloud Run, via gcloud CLI nor the GCP web console. Both give very unhelpful errors.

Here is the output from the 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

(Even though it says nginx , it's in fact a Node app.)

i don't know if is the same problem, but i solved that way: https://stackoverflow.com/a/60084251/7466829

In my case, is really a CloudRun bug.

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:
    • roles/cloudbuild.builds.builder (default)
    • roles/storage.objectCreator
    • roles/run.admin
    • roles/iam.serviceAccountUser

Generally you can submit issues at Google's issue tracker .

If the issue persists, I'd recommend filing under Cloud SDK

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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