Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unexpected Failure of update_service Method in google.cloud.run_v2 Library

On the afternoon of January 6, 2025, the update_service method from the Python library google.cloud.run_v2 unexpectedly stopped working. The following code snippet demonstrates the issue:

mask =field_mask_pb2.FieldMask(paths=["labels", "template.labels", "template.revision"])update_request = run_v2.UpdateServiceRequest( service=service, update_mask=mask )
operation = await run_client.update_service(request=update_request)

 

0 2 170
2 REPLIES 2

Hi @Heang

Welcome to Google Cloud Community!

Are you getting a specific error? I suggest looking it up on the Cloud Run logs for a more specific error message. Also, if you are using an end-of-life version of Python, I recommend to update it as soon as possible to an actively supported version. Please refer to this GitHub documentation for Google Cloud Python. You can also check your code snippet here if there are any required parameters that have changed or a new configuration needed.

If the issue still persists, I recommend reaching out or file a case to Google Cloud Support for 1:1 technical support as they have the right resources to check your project, but please be informed that the support is only available for a paid account. Or, if you believe that there is a bug with the Cloud Run Service Control Plane API, you can file a bug issue. However, please be informed that I can’t provide a timeline as to when this will be fixed. Have a read of what to expect after you’ve opened an issue.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

 

I am using Python 3.12 or later and encountering an internal error with the GCP API:

 

 
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.INTERNAL details = "Internal error encountered." debug_error_string = "UNKNOWN:Error received from peer ipv4:142.254.64.225:443 {created_time:"2025-01-07T02:21:36.095324684+10:00", grpc_status:13, grpc_message:"Internal error encountered."}"
 

This issue began on January 6, 2025, without any changes to my original code, which had been working correctly until then.

Key Observations:

  • The error occurs when the update_mask field is included in the request.
  • If the service field is used without update_mask, the Cloud Run service redeployment fails with an error stating that the Cloud Run service is "not ready