Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-2559

[logging] Add a date annotation when starting Loki for the first time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • Logging 6.2, Logging 6.3
    • Logging
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Loki fails with "failed to create stream: no schema config found for time" in RHOCP 4

      Although the document states this below, the following error is actually recorded during the first launch.

      https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.3/html-single/installing_logging/index#install-loki-operator-cli_installing-logging

       

      For new installations this date should be set to the equivalent of "yesterday", as this will be the date from when the schema takes effect.

       

      https://github.com/grafana/loki/blob/acd43d76d4e9d5d5defc6b9fc1aa8b112c0a3fe0/pkg/storage/config/schema_config.go#L734-L743

       

       

      2025-04-17T13:43:03.727880623Z 2025-04-17T13:43:03.727782Z  WARN sink{component_kind="sink" component_id=output_default_lokistack_infrastructure component_type=loki}: vector::sinks::util::retries: Retrying after error. error=Server responded with an error: 500 Internal Server Error internal_log_rate_limit=true

       

      KCS Resolution states in section 4: Edit the LokiStack CR backup file “lokistack_cr.yaml” and modify the .spec.storage.schemas.effectiveDate to be a date in the past. If the collectors are started for the first time, set it to several months ago.

      https://access.redhat.com/solutions/7116525

      Please add a note about the first launch to the documentation.

              amehenda@redhat.com Ashwin Mehendale
              rhn-support-fkawakub Futoshi Kawakubo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: