terraform-provider-argocd icon indicating copy to clipboard operation
terraform-provider-argocd copied to clipboard

ENHANCE_YOUR_CALM / too_many_pings

Open raphink opened this issue 3 years ago • 1 comments

Upon creating multiple resources (argocd_project and argocd_application) on the same server, I'm often getting GOAWAY responses:

Error: application thanos could not be created
│ 
│   with module.metrics-archives.module.thanos.argocd_application.this,
│   on .terraform/modules/metrics-archives/modules/main.tf line 39, in resource "argocd_application" "this":
│   39: resource "argocd_application" "this" {
│ 
│ rpc error: code = Unknown desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: ENHANCE_YOUR_CALM, debug data:
│ too_many_pings

From what I understand, this is because the Grpc client is sending more pings than the server is configured to receive. Could it be because the resources are applied in parallel?

raphink avatar Jan 18 '22 13:01 raphink

I am also impacted by this. It would be nice if the ArgoCD provider could implement backoff and retry logic when this happens.

luke-plausin-kidsloop avatar Mar 28 '22 11:03 luke-plausin-kidsloop

Believe (:crossed_fingers:) that this should have been resolved in this provider (>v4.0.0) due to the dependency upgrade in #207, which contained the following fix to argoproj/argo-cd. Feel free to let me know if this is still an issue, and we can look at it again.

onematchfox avatar May 17 '23 10:05 onematchfox

Hi I am encountering this issue on 5.6.0, shot in the dark but it seems the provider might be a bit too aggressive with state refreshing.

peturgq avatar Jul 13 '23 15:07 peturgq

@onematchfox I am also encountering this on 5.6.0 with argo 2.6.7.

I am creating an argo project, repo, and multi-source application. The project and app are already created; the biggest problem I have is when adding a new source to the app. The issue is repeatable.

jcogilvie avatar Aug 08 '23 17:08 jcogilvie

@peturgq I opened #326 to track the new issue. By chance are you using a multi-source app?

jcogilvie avatar Aug 09 '23 18:08 jcogilvie