gcloud.functions.deploy 无法创建或更新 Cloud Run 服务

问题描述 投票:0回答:0

每当我尝试使用

gcloud-cli
部署新的 Javascript 函数或现有的 Javascript 函数时,我都会遇到这个问题。

这是我运行的命令来部署我的功能

gcloud functions deploy [cloud_funtion_name]
--gen2 --region=us-central1
--runtime=nodejs18
--entry-point=[function_entry_point]
--trigger-http
--allow-unauthenticated
--max-instances=83

无休止地卡在

Cloud run service
步骤大约10分钟后,我得到这个错误

Preparing function...done.                                                                                                                                     
X Deploying function...                                                                                                                                        
  ✓ [Build] Logs are available at [logs_link]                                                                                                                                                        
  ✓ [Service]                                                                                                                                                  
  . [ArtifactRegistry]                                                                                                                                         
  . [Healthcheck]                                                                                                                                              
  . [Triggercheck]                                                                                                                                             
Failed.                                                                                                                                                        
ERROR: (gcloud.functions.deploy) OperationError: code=13, 
message=Could not create or update Cloud Run service [cloud_funtion_name].
Reconciling latest revision template. Resource readiness deadline exceeded.

即使我删除并重新部署也会发生这种情况。我检查了 StackOverFlow 和 Google Issue Tracker 上的几个线程,但似乎没有一个真正有帮助......

有人知道吗?如果需要更多信息,我很乐意处理。

直到昨天下午,我才能够毫无问题地部署我的功能。 但是一夜之间,和昨天一样,我的部署开始失败,甚至更新也不再有效。

其实我是一窍不通

typescript google-cloud-functions gcloud google-cloud-run gcloud-cli
© www.soinside.com 2019 - 2024. All rights reserved.