SumoLogic/sumologic-otel-collector

Service failure on startup with `otelcol-sumo_0.96.0.0` due to unsupported URI scheme in Windows environment.

Closed this issue · 3 comments

Issue Summary

While installing the latest version of the otelcol-sumo service in Windows 10, we've encountered the following issue:

Error Detail

Encountered error in Windows Event Log:
failed to start service: unsupported scheme on URI "glob:C:\ProgramData\Sumo Logic\OpenTelemetry Collector\config\conf.d\*.yaml"

Reproduction Steps

  1. Upgrade to otelcol-sumo_0.96.0.0.
  2. Attempt service start.
  3. Review Windows Event Log for error.

Temporary Solution

Reverting to otelcol-sumo_0.94.0.2 eliminates the issue.

image

I am also seeing this on linux based systems when running a validate. It does look like the glob command works to start the collector.
STEP 18/18: RUN /opt/otel-collector/otelcol-sumo-0.96.0-sumo-1-linux_amd64 --config /opt/otel-collector/config.yaml --config "glob:/opt/otel-collector/conf.d/*" validate

Error: unsupported scheme on URI "glob:/opt/otel-collector/conf.d/*" 2024/04/04 13:31:49 collector server run finished with error: unsupported scheme on URI "glob:/opt/otel-collector/conf.d/*"

Error: building at STEP "RUN /opt/otel-collector/otelcol-sumo-0.96.0-sumo-1 --config /opt/otel-collector/config.yaml --config "glob:/opt/otel-collector/conf.d/*" validate": while running runtime: exit status 1

This should be fixed as of v0.96.0-sumo-1.
Reference: https://github.com/SumoLogic/sumologic-otel-collector/pull/1512/files

@ericSpence the problem you encountered is unrelated, and specific to the validate command. It was fixed in open-telemetry/opentelemetry-collector#10203, which will be included in version 0.102.0.