Skip to content

Failure issue with google deployment manager CLI #698

Description

@AThakur812001

Can anyone please help me fixing the issue I am getting while deploying-cloud functions-v2 through deployment manager CLI.
When I am running gcloud deployment-manager create deployment --config it is performing its action and executing the command to success sometimes but during times it is getting failed with error message.

Error in Operation [operation-1705053461174-60ebcb1e0598c-a36b0537-bb184b9f]: errors:
- code: RESOURCE_ERROR
  location: /deployments/my-first-deployment/resources/first-manager-stack
  message: "{\"ResourceType\":\"gcp-types/cloudfunctions-v2beta:projects.locations.functions\"\
    ,\"ResourceErrorCode\":\"400\",\"ResourceErrorMessage\":\"Could not create or\
    \ update Cloud Run service first-function, Container Healthcheck failed. Revision\
    \ 'first-function-00001-suv' 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. Logs for this revision might contain more information.\\\
    \ \\nFor more troubleshooting guidance, see https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start\"\
    }"

I have tried various different methods , gcloud flag for async but still no help.
Can some help me out in this.
Also let me know what is the default timeout for deployment manager and is there any way to change it?
Because I tried referencing various docs and official pages of GCP but got no help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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