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

[3.3.0] loki-local-config.yaml#L41 causing startup failure #15039

Closed
tgurr opened this issue Nov 20, 2024 · 2 comments · Fixed by #15059
Closed

[3.3.0] loki-local-config.yaml#L41 causing startup failure #15039

tgurr opened this issue Nov 20, 2024 · 2 comments · Fixed by #15059

Comments

@tgurr
Copy link

tgurr commented Nov 20, 2024

Describe the bug
When trying to start loki 3.3.0 with the default loki-local-config.yaml from the release/tagged 3.3.0 tarball loki fails to start with:

Nov 20 16:06:21 localhost loki[897933]: failed parsing config: /etc/loki/config.yml: yaml: unmarshal errors:
Nov 20 16:06:21 localhost loki[897933]:   line 41: field enabled not found in type aggregation.Config. Use `-config.expand-env=true` flag if you want to expand environment variables in your config file

To offending line is https://github.com/grafana/loki/blob/v3.3.0/cmd/loki/loki-local-config.yaml#L41, after removing it loki 3.3.0 starts up fine.

To Reproduce
Steps to reproduce the behavior:

  1. Use loki-local-config.yaml shipped with loki 3.3.0
  2. Try to start loki 3.3.0

Expected behavior
Service running

Environment:

  • Infrastructure: pc
  • Deployment tool: none

Screenshots, Promtail config, or terminal output
https://github.com/grafana/loki/blob/v3.3.0/cmd/loki/loki-local-config.yaml#L41

@bursan85
Copy link

Nice, thank you.
Also, as a temporary workaround for Almalinux if the person is not fun of editing the config file, just install an older version of the package loki. This also works.

sudo dnf install loki-3.2.1-1.x86_64
sudo systemctl restart loki

@jd-apprentice
Copy link

After following the installation guide from here https://grafana.com/docs/loki/latest/setup/install/local/

I also got this error, for now I just commented the line like this

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants