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

level=error caller=main.go:46 msg="error loading config" filename=/etc/loki/loki.yaml err="yaml: unmarshal errors:\n line 8: field store not found in type ring.Config\n line 12: field max_look_back_period not found in type querier.Config" #619

Closed
GuitaristForEver opened this issue May 26, 2019 · 5 comments

Comments

@GuitaristForEver
Copy link

Hi there,
I have Loki setup on K8S
been using the Loki for a few days, now (suddenly) I get the above error ..

this is some output of helm get Loki command :

REVISION: 1
RELEASED: Sun May 19 17:15:35 2019
CHART: loki-stack-0.9.1
USER-SUPPLIED VALUES:
{}

COMPUTED VALUES:
loki:
  affinity: {}
  annotations: {}
  config:
    auth_enabled: false
    ingester:
      chunk_block_size: 262144
      chunk_idle_period: 15m
      lifecycler:
        ring:
          replication_factor: 1
          store: inmemory
    limits_config:
      enforce_metric_name: false
    querier:
      max_look_back_period: 0   #the value is here!
    schema_config:
      configs:
      - from: "2018-04-15"
        index:
          period: 168h
@GuitaristForEver GuitaristForEver changed the title level=error ts=2019-05-26T09:13:28.966489457Z caller=main.go:46 msg="error loading config" filename=/etc/loki/loki.yaml err="yaml: unmarshal errors:\n line 8: field store not found in type ring.Config\n line 12: field max_look_back_period not found in type querier.Config" level=error caller=main.go:46 msg="error loading config" filename=/etc/loki/loki.yaml err="yaml: unmarshal errors:\n line 8: field store not found in type ring.Config\n line 12: field max_look_back_period not found in type querier.Config" May 26, 2019
@sh0rez
Copy link
Member

sh0rez commented May 26, 2019

The error message is correct, as the configuration key does not exist (anymore). It has been removed renamed in #610

@sh0rez
Copy link
Member

sh0rez commented May 26, 2019

According to 3d3c057#diff-fdd086729867007e57c74aad7c391f90 it should be sufficient to update

loki:
  querier:
      max_look_back_period: 0   #the value is here!

to

loki:
  chunk_store_config:
    max_look_back_period: 0

@sandeepsukhani
Copy link
Contributor

@GuitaristForEver Can you try updating helm chart. You are currently at loki-stack-0.9.1, latest is loki-stack-0.9.4
That should solve your problem.

@GuitaristForEver
Copy link
Author

GuitaristForEver commented May 28, 2019

Hi @sandlis ,
upgraded to the latest version and it seems to work now.
thanks for the help .. can close

@sandeepsukhani
Copy link
Contributor

Great! Thanks for update.
Closing it.

adamdecaf added a commit to moov-io/infra that referenced this issue May 29, 2019
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

No branches or pull requests

3 participants