Repository navigation
Replies: 1 comment 2 replies
|
The ~60s is the clue. Two things are combining here: 1. What When the pipeline calls There is no server-side timeout on that loop — the context is cancelled because the client side gave up. 2. Why the controller sometimes takes >60s to pick it up The refresh request goes into the controller's app refresh queue behind everything else being reconciled. With many auto-sync/self-heal apps, default processors and no resource requests (your controller is already at ~1 CPU / ~5 GiB), that queue can back up — which explains why retries sometimes don't help. What I'd do
To confirm the cause, watch |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Hi Argo CD Team,
We are experiencing intermittent 504 Gateway Timeout errors when running Argo CD application operations through our CI/CD pipelines.
{"level":"fatal","msg":"rpc error: code = Unknown desc = POST https://**********:443/argo-cd/application.ApplicationService/Get failed with status code 504","time":"2026-10-06T13:58:20Z"}During our investigation, we observed that the Argo CD application-server request fails with application refresh deadline exceeded after approximately 60 seconds.
We have checked the argocd-server pod logs during the time as below:
"level":"info","msg":"received unary call /application.ApplicationService/Get","time":"2026-10-01T14:37:32Z"} {"level":"info","msg":"Requested app 'demo-app' refresh","time":"2026-10-01T14:37:33Z"}After the deadline exceeded :
"grpc.code":"Unknown","grpc.component":"server","grpc.error":"application refresh deadline exceeded","grpc.method":"Get","grpc.method_type":"unary","grpc.service":"application.ApplicationService","grpc.start_time":"2026-10-01T14:37:32Z","grpc.time_ms":"59999.465","level":"error","msg":"finishedWhile checking the
argocd-repo and controllerlogs we also noticed multiple applications undergoing refresh and reconciliation operations around the same period.We would like to understand whether concurrent application reconciliation workload or application-controller processing delays could be contributing to these failures, and whether increasing the application-controller replica count would help.
As a workaround, we increased the replica count to 2 for both
argocd-application-controllerandargocd-repo-server.Sometimes rerunning the pipeline resolves the issue, but in other cases, even the second or third retry does not help.
Since this issue occurs intermittently, has anyone experienced similar behavior? We would appreciate your suggestions and guidance on identifying the root cause and finding a permanent solution.
Environment
Argo CD version: v3.5.3
Platform: Kubernetes
Application-controller replicas: 2
argocd-repo-server replicas : 2
Application-controller CPU usage (observed): ~969m
Application-controller memory usage (observed): ~4922Mi
Controller resource requests/limits: Not explicitly configured (resources: {})
Controller status/operation processors: Not explicitly configured (using defaults)
Reconciliation timeout/jitter: Not explicitly configured (using defaults)
Application management: Multiple applications managed through Argo CD, including applications with automated sync and self-heal enabled
Error observed
The pipeline encountered an HTTP 504 error while calling the Argo CD Application API:
rpc error: code = Unknown desc =
POST https:///argo-cd/application.ApplicationService/Get
failed with status code 504
From the argocd-server logs:
14:37:32 - Received Get request for application demo-app
14:37:33 - Requested app 'demo-app' refresh
14:38:32 - grpc.code=Unknown
grpc.error="application refresh deadline exceeded"
grpc.time_ms=59999.465
The application refresh request took approximately 60 seconds before failing.
Current structure of the application running in the platform.
Additional information
We can provide further sanitized controller/server logs, configuration details, and relevant metrics if needed.
Thanks in advance for your guidance!
All reactions