Skip to content

ERROR: (gcloud.run.deploy) Revision ' gen ai' is not ready and cannot serve traffic. #155

@ishujain1312

Description

@ishujain1312

Facing below errors after doing some changes in backend file and trying to redeploy backend -

ERROR: (gcloud.run.deploy) Revision ' gen ai' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.

DEFAULT 2025-04-14T12:06:23.036336Z ValueError: Unsupported region for Vertex AI, select from frozenset({'europe-southwest1', 'asia-northeast3', 'europe-central2', 'me-west1', 'us-west3', 'me-central2', 'africa-south1', 'northamerica-northeast1', 'me-central1', 'asia-northeast2', 'europe-west6', 'asia-southeast2', 'northamerica-northeast2', 'asia-southeast1', 'europe-west2', 'asia-northeast1', 'europe-west8', 'global', 'europe-west3', 'us-east4', 'europe-west4', 'australia-southeast1', 'us-east1', 'asia-east1', 'us-south1', 'asia-south1', 'us-east5', 'us-west2', 'europe-west9', 'europe-west1', 'us-west1', 'australia-southeast2', 'southamerica-west1', 'us-west4', 'europe-west12', 'europe-north1', 'southamerica-east1', 'us-central1', 'asia-east2'})

Default STARTUP TCP probe failed 1 time consecutively for container "genai-for-marketing" on port 8080. The instance was not started.
Connection failed with status CANCELLED.

Ready condition status changed to False for Revision genai with message: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.

How to resolve them?

I have tried changing regions, extending time etc if anyone can help here - @thekoma @superanalytic @dazuma @jskeet @chingor13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions