runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.83k stars 1.06k forks source link

TLS handshake fails with github (only few times) #1723

Open Jenishk56 opened 3 years ago

Jenishk56 commented 3 years ago

Hello Team,

I am using the latest atlantis docker image deployed in the public cloud and connecting to the enterprise github. Facing below error few times : -

{ "stacktrace": "github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).ensureValidRepoMetadata /home/circleci/project/server/events/command_runner.go:295 github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand /home/circleci/project/server/events/command_runner.go:180", "json": { ... }, "level": "error", "msg": "making pull request API call to GitHub: Get "https://{GITHUB_URL}/api/v3/repos/{ORG}/{REPO}/pulls/4": net/http: TLS handshake timeout", "ts": "2021-07-28T15:15:11.556Z", "caller": "events/command_runner.go:295" }

Very surprising for me is that, it fails only sometimes. While other times, It tries and doesn't put the comment back to Github PR.

However, in few rare times it works as well.

Please help me if I need to have any configuration added.

claytonpiccinin commented 3 years ago

I'm facing a similar issue running Atlantis on GCP Cloud Run. Cloud Run is a serverless platform able to run docker images. I'm running Atlantis and the server can start and comunnicate with Gihutb with success, but every time I try to PR to my repository on Github, when terraform try to run init or play, I'm receiving "TLS handshake timeout" trying to get backend state on GCS, or getting packages from terraform registry.

Could anyone help us?

Dilergore commented 2 years ago

We have the same issue with Azure DevOps intermittently. Is there any solution to this?