Open nektarios-d opened 9 months ago
@nektarios-d I'm unclear as to why you opened this issue, this looks like a configuration error that you managed to solve yourself.
did you added the "2023-10-11" schema config before "2023-10-11"? otherwise Loki would write some data in boltdb format and only then would move to tsdb, which would trigger the errors you saw
Describe the bug After switching to TSDB on 11/10/23 started getting the following error 20 minutes later
level=error ts=2023-10-11T12:09:02.495281457Z caller=table_manager.go:133 index-store=tsdb-2023-10-11 msg="error syncing local boltdb files with storage" err="failed to sync index set for table loki_index_19641: invalid tsdb path: /data/loki/tsdb-cache/loki_index_19641/65867a84fe18-1675329762671420908-1696982602"
Restarting the container resulted in the container restarting multiple times and failing to start.
After some tries it managed to start but the logs where flooded with
Changed storage config from
To
Restarted the container again and the errors went away.
To Reproduce Steps to reproduce the behavior: 1) Changed from boltdb to tsdb. 2) Restarted Loki after getting errors 3) Loki fails to start and then gets flooded with errors
Expected behavior Loki to switch to TSDB without errors.
Environment:
Config Changes