Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2098

[RHDH Local] app-config.local.yaml missing analytics section causes startup failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 1.7.1
    • RHDH Local
    • None

      Steps to Reproduce:

      1. git clone https://github.com/redhat-developer/rhdh-local.git
      2. cd rhdh-local/
      3. cp configs/app-config/app-config.local.example.yaml configs/app-config/app-config.local.yaml
      4. cp configs/dynamic-plugins/dynamic-plugins.override.example.yaml configs/dynamic-plugins/dynamic-plugins.override.yaml
      5. podman compose up

      Actual Result:

      The server fails to start with the following error:

      Plugin 'app' startup failed; caused by Error: Invalid app bundle schema.
      Config validation failed, Config must have required property 'analytics'

      Expected Result:
      The application should start successfully when using the provided example configuration.

      Workaround / Proposed Fix:

      Adding an analytics section to configs/app-config/app-config.local.yaml resolves the issue:

      app:
        title: Red Hat Developer Hub
        baseUrl: ${BASE_URL}
        #added 
        analytics:
          adoptionInsights:
            enabled: false
          segment:
            writeKey: ""
       

      Rationale for the Fix:
      The startup validation requires an analytics key in the app configuration.
      Since the example app-config.local.yaml does not include this property, the default setup is not aligned with the current schema.
      By adding an analytics section with disabled values, the configuration becomes schema-compliant while still allowing users to enable analytics later if needed.

              Unassigned Unassigned
              rhn-support-ksuzumur Keishi Suzumura
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: