Open
Description
Describe the bug
Starting loki with config
auth_enabled: false
server:
http_listen_port: 3100
limits_config:
reject_old_samples: true
reject_old_samples_max_age: 168h
gives the unhelpful error
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/grafana/loki/v3/pkg/loki.validateSchemaRequirements(0xc000c74000)
/src/loki/pkg/loki/validation.go:33 +0x712
github.com/grafana/loki/v3/pkg/loki.(*Config).Validate(0xc000c74000)
/src/loki/pkg/loki/loki.go:318 +0x1815
main.main()
/src/loki/cmd/loki/main.go:69 +0x637
To Reproduce
Steps to reproduce the behavior:
- Started Loki 3.4.2 with the following config (on linux amd64)
Expected behavior
give a useful error message
Environment:
started binary
Screenshots, Promtail config, or terminal output
N/A