-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
msg="Error in upgrading websocket" err="badResponseLoggingWriter: can't cast underlying response writer to Hijacker" #3499
Comments
I presume that the failure is here: but because the failure obscures the true cause, it's pretty hard to figure out what's going on. |
The issue is localized to the query-frontend. The same query going into the front-end returned with 500 succeeds when directly querying the querier.
|
@arcivanov are there any updates? Did you manage to solve it? .. I can confirm your comment above that directly querying the BTW I am using the latest version of loki 2.2.1 and deploying the distributed mode using Helm (using chart v0.31.2) |
@arcivanov After days of debugging I finally managed to find the problem. You basically have to explicitly configure the query frontend for tailing. The property I mention below is having a default value of "" which causes the 500 Error on the Query Frontend side.
Of course Source: https://grafana.com/docs/loki/latest/configuration/#query_frontend_config I will open a PR to the Helm Charts repo and will post the link here so that people using Helm don't have to suffer like I did 😄 |
Here's my PR to solve this on the Helm Chart level grafana/helm-charts#456 |
We downgraded to the previous working version. |
That's wonderful, thank you so much for this!!! |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Hi, we also are experiencing this issue on the following version: |
@avinashs433 It should be a config issue you need to adjust ,, Check my comment #3499 (comment) |
Running microservice deployment. Grafana runs queries perfectly, promtail pushes logs.
However, live tailing does not work due to WebSocket upgrade failure.
We have a standalone Grafana in the same cluster and WebSocket works there.
A failure occurs immediately when trying to get the live stream of the logs:
The text was updated successfully, but these errors were encountered: