Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc error: code = Unavailable desc = unexpected HTTP status code received from server: 504 (Gateway Timeout) #397

Open
kaykhan opened this issue May 24, 2024 · 1 comment
Labels
help wanted Community help wanted! question Further information is requested

Comments

@kaykhan
Copy link

kaykhan commented May 24, 2024

Terraform Version, ArgoCD Provider Version and ArgoCD Version

Terraform version:Terraform v1.8.2
ArgoCD provider version:
ArgoCD version:2.11.1

Terraform configuration

resource "argocd_application" "multiple_sources" {
  metadata {
    name      = "examples-hello-world"
    namespace = "argocd"
  }

  spec {
    project = "examples"

    source {
      repo_url        = "https://charts.bitnami.com/bitnami"
      chart           = "wordpress"
      target_revision = "22.3.0"
      helm {
        value_files = ["$values/example/values.yaml"]
      }
    }

    source {
      repo_url        = "[email protected]:<redcated>/test-temp-repo1.git"
      target_revision = "HEAD"
      ref             = "values"
    }

    sync_policy {
      automated {
        prune       = true
        self_heal   = true
        allow_empty = true
      }
      sync_options = ["Validate=false"]
      retry {
        limit = "5"
        backoff {
          duration     = "30s"
          max_duration = "2m"
          factor       = "2"
        }
      }
    }

    destination {
      server    = "https://kubernetes.default.svc"
      namespace = "examples"
    }
  }

  depends_on = [kubernetes_namespace.examples, argocd_project.examples]

}

│ Error: failed to create application examples-hello-world

│ with argocd_application.multiple_sources,
│ on main.tf line 64, in resource "argocd_application" "multiple_sources":
│ 64: resource "argocd_application" "multiple_sources" {

│ rpc error: code = Unavailable desc = unexpected HTTP status code received from server: 504 (Gateway Timeout)

Question

When trying to deploy an argocd_application i intermittent encounter this 504 Gateway Timeout error. If i rerun a few times it works. Can somoene help me understand why this is occuring. ( i can rule out my internet )

tail of argocd log

time="2024-05-24T10:11:30Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Version grpc.service=version.VersionService grpc.start_time="2024-05-24T10:11:30Z" grpc.time_ms=1.234 span.kind=server system=grpc
time="2024-05-24T10:11:31Z" level=info msg="received unary call /version.VersionService/Version" grpc.method=Version grpc.request.claims="{\"exp\":1716631890,\"iat\":1716545490,\"iss\":\"argocd\",\"jti\":\"1356f272-dc2b-4331-ac85-0c3f1a8f3062\",\"nbf\":1716545490,\"sub\":\"admin\"}" grpc.request.content= grpc.request.deadline="2024-05-24T10:16:29Z" grpc.service=version.VersionService grpc.start_time="2024-05-24T10:11:31Z" span.kind=server system=grpc
time="2024-05-24T10:11:31Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Version grpc.request.deadline="2024-05-24T10:16:29Z" grpc.service=version.VersionService grpc.start_time="2024-05-24T10:11:31Z" grpc.time_ms=0.314 span.kind=server system=grpc
time="2024-05-24T10:11:31Z" level=info msg="received unary call /application.ApplicationService/List" grpc.method=List grpc.request.claims="{\"exp\":1716631890,\"iat\":1716545490,\"iss\":\"argocd\",\"jti\":\"1356f272-dc2b-4331-ac85-0c3f1a8f3062\",\"nbf\":1716545490,\"sub\":\"admin\"}" grpc.request.content="name:\"examples-hello-world\" appNamespace:\"argocd\" " grpc.request.deadline="2024-05-24T10:16:29Z" grpc.service=application.ApplicationService grpc.start_time="2024-05-24T10:11:31Z" span.kind=server system=grpc
time="2024-05-24T10:11:31Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.request.deadline="2024-05-24T10:16:29Z" grpc.service=application.ApplicationService grpc.start_time="2024-05-24T10:11:31Z" grpc.time_ms=0.265 span.kind=server system=grpc
time="2024-05-24T10:11:31Z" level=info msg="received unary call /application.ApplicationService/Create" grpc.method=Create grpc.request.claims="{\"exp\":1716631890,\"iat\":1716545490,\"iss\":\"argocd\",\"jti\":\"1356f272-dc2b-4331-ac85-0c3f1a8f3062\",\"nbf\":1716545490,\"sub\":\"admin\"}" grpc.request.content="%!v(PANIC=String method: reflect.Value.Interface: cannot return value obtained from unexported field or method)" grpc.request.deadline="2024-05-24T10:16:29Z" grpc.service=application.ApplicationService grpc.start_time="2024-05-24T10:11:31Z" span.kind=server system=grpc
time="2024-05-24T10:12:31Z" level=info msg="finished unary call with code InvalidArgument" error="rpc error: code = InvalidArgument desc = application spec for examples-hello-world is invalid: InvalidSpecError: Unable to generate manifests in .: rpc error: code = Canceled desc = context canceled;InvalidSpecError: Unable to generate manifests in .: rpc error: code = Canceled desc = context canceled" grpc.code=InvalidArgument grpc.method=Create grpc.request.deadline="2024-05-24T10:16:29Z" grpc.service=application.ApplicationService grpc.start_time="2024-05-24T10:11:31Z" grpc.time_ms=60002.19 span.kind=server system=grpc
@kaykhan kaykhan added the question Further information is requested label May 24, 2024
Copy link

github-actions bot commented Oct 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Oct 2, 2024
@mkilchhofer mkilchhofer added help wanted Community help wanted! and removed Stale labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Community help wanted! question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants