Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcloud crashed (AttributeError): 'NoneType' object has no attribute 'revisionTemplate'

I'm working on Cloud Run, which seems to be beta yet, preventing from redeploying as shown below. It works if I delete the service from GCP console, then deploy the same Docker as a new service. I could not find a way to to set revisionTemplate.

I run this command to deploy a Cloud Run service using gcloud.

gcloud beta run deploy v2-cms --image gcr.io/my-project/v2-cms --quiet

Then, it fails saying like this.

X Deploying...                                                                                                            
  . Creating Revision...                                                                                                  
  . Routing traffic...                                                                                                    
Deployment failed                                                                                                         
ERROR: gcloud crashed (AttributeError): 'NoneType' object has no attribute 'revisionTemplate'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics
like image 203
Takash Futada Avatar asked Jul 14 '19 22:07

Takash Futada


1 Answers

To fix this issue, please update gcloud to ite latest version with gcloud components update

like image 199
Steren Avatar answered Oct 13 '22 02:10

Steren