Bug 51771

Summary: Не запускается сервис loki
Product: Sisyphus Reporter: Aleksandr Sysoev <sysoevas>
Component: lokiAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: amakeenk, shaba
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Aleksandr Sysoev 2024-10-21 20:52:37 MSK
server-11.0.alpha20240611-x86-64 обновленный до Sisyphus

loki-3.2.0-alt1.x86_64

В journalctl:
ion system...
окт 21 20:51:55 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain loki[2660]: failed parsing config: /etc/loki/loki.yaml: yaml: unmarshal errors:
окт 21 20:51:55 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain loki[2660]:   line 18: field max_transfer_retries not found in type ingester.Config
окт 21 20:51:55 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain loki[2660]:   line 38: field shared_store not found in type boltdb.IndexCfg
окт 21 20:51:55 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain loki[2660]:   line 44: field shared_store not found in type compactor.Config
окт 21 20:51:55 server-11-0-alpha20240611-x86-64-minimal-20241021.localdomain loki[2660]:   line 51: field max_look_back_period not found in type config.ChunkStoreConfig. Use `-config.expand-env=true` flag if you want to expand environment variables in your config file
Comment 1 Alexander Makeenkov 2024-10-22 10:49:37 MSK
Если удалить эти параметры из конфига, то всё равно не запускается:

level=error ts=2024-10-22T07:47:11.795920891Z caller=main.go:70 msg="validating config" err="MULTIPLE CONFIG ERRORS FOUND, PLEASE READ CAREFULLY\nCONFIG ERROR: schema v13 is required to store Structured Metadata and use native OTLP ingestion, your schema version is v11. Set `allow_structured_metadata: false` in the `limits_config` section or set the command line argument `-validation.allow-structured-metadata=false` and restart Loki. Then proceed to update to schema v13 or newer before re-enabling this config, search for 'Storage Schema' in the docs for the schema update procedure\nCONFIG ERROR: `tsdb` index type is required to store Structured Metadata and use native OTLP ingestion, your index type is `boltdb-shipper` (defined in the `store` parameter of the schema_config). Set `allow_structured_metadata: false` in the `limits_config` section or set the command line argument `-validation.allow-structured-metadata=false` and restart Loki. Then proceed to update the schema to use index type `tsdb` before re-enabling this config, search for 'Storage Schema' in the docs for the schema update procedure"

Помогает вот это: Set `allow_structured_metadata: false` in the `limits_config`
Comment 2 Alexander Makeenkov 2024-10-23 10:18:03 MSK
Не воспроизводится в версии loki-3.2.1-alt1.