<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51771</bug_id>
          
          <creation_ts>2024-10-21 20:52:37 +0300</creation_ts>
          <short_desc>Не запускается сервис loki</short_desc>
          <delta_ts>2024-10-23 10:18:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>loki</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksandr Sysoev">sysoevas</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>253238</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksandr Sysoev">sysoevas</who>
    <bug_when>2024-10-21 20:52:37 +0300</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253280</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-10-22 10:49:37 +0300</bug_when>
    <thetext>Если удалить эти параметры из конфига, то всё равно не запускается:

level=error ts=2024-10-22T07:47:11.795920891Z caller=main.go:70 msg=&quot;validating config&quot; err=&quot;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 &apos;Storage Schema&apos; 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 &apos;Storage Schema&apos; in the docs for the schema update procedure&quot;

Помогает вот это: Set `allow_structured_metadata: false` in the `limits_config`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253337</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-10-23 10:18:03 +0300</bug_when>
    <thetext>Не воспроизводится в версии loki-3.2.1-alt1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>