-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Atlantis terraform live logs are not showing #2542
Comments
I'm also experiencing the same thing while using Atlantis image My repos.yaml configuration as below
I tried enabling
|
Try It would help to know how you folks have deployed the app. I use the latest version and can see the logs within my eks cluster. |
Have you got websockets enabled on any networking infrastructure that your Atlantis installation sits behind? For example, I had to add an annotation to my K8s Contour Ingress to allow websocket streaming to work (the |
I am facing a similar issue, the difference being that the logs appear at once altogether at once once the |
People who deploy from these modules haven't run into these issues as far as I know. Please consider these deployments.
Related issues |
@marceloboeira it seems like this may be reflected by the deployment of atlantis. I'm curious if there is a misconfiguration in the deployment, a limitation in the cloud deployment used, or something that can be mitigated by additional logic in atlantis. Or maybe a combination. If we can do anything in the atlantis server, then please feel free to propose a pr if you find a way to reproduce and resolve the issue. Maybe it's as simple as doing a retry in the frontend to connect to the websocket? |
I've deployed atlantis into an EKS Cluster. I am also running into this issue with the websocket and getting 500 error codes when running in debugging mode. |
I had this problem before. It was a permission issue. The trivial solution (just to test) is make atlantis a repo owner. Also, this new version of atlantis shows every terraform log on it's HTTP website. It's not as comfortable as clicking on github, but it does the trick. |
I am experiencing this as well in v0.27.1 Sometimes it works if you click on the link / job with the output but some other times it works only after a refresh, or it could even show a partial part of the output every time you refresh. |
@dimisjim what do you see if you open that page with developer tools? in theory, that's most of the times because of the loadbalancer and websocker connection... |
These are there always: This shows when {some} / {sometimes all} of the content loads up:
This shows up when no content loads up:
We are using a GCP load balancer. |
I think it might be that you need to tweak your LB to properly forward the WebSocket connection to the Atlantis instance. That was the case when I used Atlantis with NGINX / ALB, I had to make a few changes to allow sticky sessions, some specific config for NGINX to keep alive and Upgrade/Connection headers — WebSockets on NGINX. You might have to figure out the equivalents for GCP — https://cloud.google.com/load-balancing/docs/https#websocket_support It seems to be by default enabled, but you might want to review if the timeouts and such. Overall, atlantis could use a much simpler polling-based log-stream, it would be easier to make it compatible everywhere, WS for this purpose is overkill. |
Hmm based on the doc you linked:
and Upgrade/Connection headers are also supported:
so it should be working out of the box, at least from the GCP Load balancing side. Maybe also the setup I am using based on: https://github.com/bschaatsbergen/terraform-gce-atlantis makes a difference in this regard? Can't tell. The session affinity is set to none in GCP load balancing by default (I thought to modify this as per doc, this is the one we can manipulate anyway). Setting it to ClientIP and "Maglev" routing policy didn't make a difference 🤔 Thanks for the hints anyhow! |
Same problem with my atlantis We're using oauth2 proxy and haproxy ingress for the k8s ingress. What I found was that disabling oauth2 proxy security for There are no logs generated by atlantis which I can see; but without checking the code this leads me to think its behaving differently based on headers.. The additional headers I can see in use (when authentication is applied) to next up I'll try to disable sending these/or some of these headers to atlantis and see if it works also possibly/maybe the oauth2 filtering layer by the ingress doesn't see expected headers from the client also.. not sure honestly Would be really great if atlantis just didn't insist on |
Community Note
Overview of the Issue
I am able to run the atlantis plan and atlantis apply, working fine. But, unable to see terraform live logs, when it is planning/applying.
The link provided in the "details" opens a blank screen.
Reproduction Steps
Atlantis install v.0.19.7. it is a local install using git enterprise user. No repo.yaml or atlantis.yaml is used. pull request is submitted from a branch. and works fine. But the log is not visible
Logs
Environment details
Additional Context
The text was updated successfully, but these errors were encountered: