Issue during GCP function deployment

While deploying could function we were getting errors.

Error message: Could not create or update Cloud Run service xyz-xyz. Revision 'xyz-00001-naq' is not ready and cannot serve traffic. Deploying Revision. Resource readiness deadline exceeded.

Before that we were deploying the same cloud function with same steps but now it is not working.

It is critical from the business point of view for us to enable it on priority. Would appreciate a quick response.

2 1 86
1 REPLY 1

Hi @parth_malavia,

Welcome to Google Cloud Community!

Your Cloud Function deployment is failing because the containerized function isn't starting up fast enough.

Here's what you can do:

1. Retry the deployment.
2. Check container logs for errors.
3. Optimize Docker image size.
4. Verify local functionality.
5. Extend resource deadline (temporary solution).