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
Error from Hardcoded "client_max_body_size" in HTTPSnippet #8736
Comments
Yeah this does seem to be a bug, I am using the latest published chart version:
if you look at the helpers.tpl link you posted you'll find the hardcoded line on L571: and then below that on L597 is the user supplied config section: So when one goes to try override with your own values in the nginxConfig section:
You get the nginx emerg error and new gateway pods will not startup:
Are we missing something here Grafana team? @trevorwhitney |
I guess, the In file values.yaml
In file _helpers.tpl
|
@khanh96le nice workaround. |
This sounds like a bug, thanks for bringing it up. I think the best thing to due here is to move the default The outcome I'd like to see is, if I don't provide any custom values, I get the defaults of what the chart is now producing. If I want to override any value is this section, I have to provide the whole section. Sound good? If so, I'd be happy to review PR. If not, happy to hear your thoughts? Thanks! |
Hello, any news ? This is a true bug ;) |
Hi, Thanks :) |
Hello, Would greatly appreciate if you can provide any update on this issue as it effect us as well. |
any progress with that? this is important issue |
Hey, @trevorwhitney can you review my PR #12924? |
Describe the bug
The bug occurs on startup of the gateway pod.
It errors out the error message in the screenshot/terminal output section.
I have tried to set my own value for the setting
client_max_body_size
and it won't let me override the value.To Reproduce
httpSnippet
to this valueloki-gateway
pod logExpected behavior
I would expect to be able to set this piece of config either through the
httpSnippet
config line or via the nginxFile.As you have abstracted the file away from the config section it makes it hard to set that value without re-importing the file into the
values.yaml
file.Environment:
Screenshots, Promtail config, or terminal output
If applicable, add any output to help explain your problem.
nginx: [emerg] "client_max_body_size" directive is duplicate in /etc/nginx/nginx.conf:39
Current config setup
https://github.com/grafana/loki/blob/main/production/helm/loki/templates/_helpers.tpl#L515
The text was updated successfully, but these errors were encountered: