简体   繁体   English

Google Cloud Run - 创建服务任务永远加载

[英]Google Cloud Run - create service task is loadingforever

I'm trying to deploy a node.js application to Google cloud run.我正在尝试将 node.js 应用程序部署到 Google 云运行。

I pushed a docker to container registry - that seems to be successful.我将 docker 推送到容器注册表 - 这似乎是成功的。

But, when I'm trying to deploy it to google cloud run -> to make it public, and accessible via WAN it fails, for unknown reasons.但是,当我试图将它部署到 google cloud run -> 使其公开并通过 WAN 访问时,它失败了,原因不明。

While loading:加载时:

在此处输入图像描述

this step can take 10-15 minutes...此步骤可能需要 10-15 分钟...

when it fails:失败时:

在此处输入图像描述

Resource readiness deadline exceeded.超过了资源就绪期限。

The solution is provided in the GCP documentation:https://cloud.google.com/run/docs/troubleshooting#service-agent GCP文档中提供了解决方案:https://cloud.google.com/run/docs/troubleshooting#service-agent

They suggest that you Verify that the service agent has the Cloud Run Service Agent role.他们建议您验证服务代理是否具有 Cloud Run 服务代理角色。 If the service agent does not have the role, grant it.如果服务代理没有角色,请授予它。

Additionally, you should check the logs for the run app, you might see clues to what the cause is.此外,您应该检查运行应用程序的日志,您可能会看到原因的线索。

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

相关问题 Google Cloud SDK 创建 Cloud Run Job - Google Cloud SDK to create a Cloud Run Job 如何使用 Google Cloud Run API 为 node.js 创建新服务? - How to create a new service using the Google Cloud Run API for node.js? Google Cloud Run 或 Cloud Function 用于一次性任务 - Google Cloud Run or Cloud Function for one-time-task-job 创建与云运行服务共享代码的云运行作业 - Create a cloud run job which shares code with a cloud run service Terraform 中的 Google Cloud Run 服务参考秘密 - Google Cloud Run Service Reference Secret within Terraform 如何通过 terraform 使用服务帐户创建谷歌云 pubsub 拉取订阅? - How to create a google cloud pubsub pull subscriptions with service account by terraform? 如何在最初没有容器 URL 的情况下创建一个空的 Cloud Run 服务? - How to create an empty Cloud Run service initially without a container URL? 如何使用 Cloud Function 服务帐户在 Cloud Function 中创建签名的 Google Cloud Storage URL? - How to create signed Google Cloud Storage URLs in Cloud Function using Cloud Function service account? Google Cloud 中的 EventArc 一次多次请求 Cloud Run Service 触发器 - EventArc in Google Cloud Request the Cloud Run Service more than Once in One Time Trigger 如何从 Java 脚本安全地调用 Google Cloud Run 服务? - How to securely call a Google Cloud Run service from Java Script?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM