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

Atlantis terraform live logs are not showing #2216

Closed
Abhilash-sandupatla opened this issue Apr 22, 2022 · 8 comments
Closed

Atlantis terraform live logs are not showing #2216

Abhilash-sandupatla opened this issue Apr 22, 2022 · 8 comments
Labels
bug Something isn't working docs Documentation

Comments

@Abhilash-sandupatla
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Hai, I can able to plan and apply atlantis, working fine. But, i want to see terraform live logs, when it is planning/applying.
I know, that when we click on builds in bitbucket pr, it directs to browser, where it shows terraform logs. But, in my case, I see a page with blank. I am attaching the screenshot of the blank page.
Uploading Screenshot from 2022-04-22 17-40-57.png…

VCS I am using - bitbukcet.
deployed through:- helm charts in eks

Reproduction Steps

Logs

Environment details

Additional Context

@Abhilash-sandupatla Abhilash-sandupatla added the bug Something isn't working label Apr 22, 2022
@cheddarBiscuit
Copy link

I also saw the blank screen for live logs. I noticed an error like writing to ws <id>: upgrading websocket connection: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header. Once I migrated our load balancer from an AWS Classic Load Balancer to an AWS Application Load Balancer, the live logs appeared. Hope this helps!

@tomharrisonjr
Copy link
Contributor

tomharrisonjr commented May 18, 2022

Issue for us was that we were using a custom workflow ... and the reason we were doing that was that we use the .terraform.lck.hcl file to ensure the versions we commit locally are the ones used when we build remotely. Except that we code on macos and build on linux, and default workflow observes the values in the lockfile.

**Solution: **

terraform providers lock \
  -platform=darwin_arm64 \ # 64-bit macOS silicon / M1
  -platform=darwin_amd64 \  # 64-bit macOS intel
  -platform=linux_amd64 \    # 64-bit Linux
  -platform=linux_arm64      # 64-bit Linux "graviton"

@Abhilash-sandupatla
Copy link
Author

Abhilash-sandupatla commented May 28, 2022

I also saw the blank screen for live logs. I noticed an error like writing to ws <id>: upgrading websocket connection: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header. Once I migrated our load balancer from an AWS Classic Load Balancer to an AWS Application Load Balancer, the live logs appeared. Hope this helps!

I also saw the blank screen for live logs. I noticed an error like writing to ws <id>: upgrading websocket connection: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header. Once I migrated our load balancer from an AWS Classic Load Balancer to an AWS Application Load Balancer, the live logs appeared. Hope this helps!

This worked. When we changed atlantis from clb to alb. Atlantis shows live logs on UI.
Thanks @cheddarBiscuit cheddarBiscu

@omotoso78
Copy link

omotoso78 commented Sep 27, 2022

I also experience a blank detail screen for my live logs on the Atlantis server UI.
I installed atlantis v0.19.7, local installation and git enterprise. None of the suggested solutions applies to me

@MattMencel
Copy link

MattMencel commented Nov 30, 2022

Nice.... thanks for the hint about websockets! That was the answer. The solution depends on your Ingress/LB. e.g. for Emissary Mappings you just have to allow the websockets upgrade.

https://www.getambassador.io/docs/emissary/latest/howtos/websockets

Maybe the docs should add a note about websockets?

@jamengual
Copy link
Contributor

PRs are welcome for the Docs.

@nitrocode nitrocode added the docs Documentation label Dec 1, 2022
@nitrocode nitrocode reopened this Dec 1, 2022
@nitrocode
Copy link
Member

This seems to be a duplicate of

#2026
#2129

We can add docs to one of the older issues instead of this one so ill close this issue to help consolidate discussion there.

@ldunkum
Copy link

ldunkum commented Feb 17, 2023

For future reference and for anybody deploying Atlantis on k8s with traefik, we just had to add a custom middleware to our ingress routes to fix this issue:

---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: atlantis-headers
  namespace: atlantis
spec:
  headers:
    customRequestHeaders:
      X-Forwarded-Proto: "https"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs Documentation
Projects
None yet
Development

No branches or pull requests

8 participants