Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spurious error logs when starting supervisor #36013

Closed
srikanthccv opened this issue Oct 27, 2024 · 1 comment · Fixed by #36014
Closed

spurious error logs when starting supervisor #36013

srikanthccv opened this issue Oct 27, 2024 · 1 comment · Fixed by #36014
Labels
bug Something isn't working cmd/opampsupervisor

Comments

@srikanthccv
Copy link
Member

Component(s)

cmd/opampsupervisor

What happened?

Description

When a supervisor runs, it logs unnecessary error messages that the last received config doesn't exist.

{"level":"error","ts":1730036809.402923,"caller":"supervisor/supervisor.go:778","msg":"error while reading last received config","error":"open last_recv_remote_config.dat: no such file or directory","stacktrace":"github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor.(*Supervisor).loadAndWriteInitialMergedConfig\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/supervisor.go:778\ngithub.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor.(*Supervisor).Start\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/supervisor.go:205\nmain.runInteractive\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/main.go:43\nmain.run\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/main_others.go:9\nmain.main\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/main.go:19\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"}
{"level":"error","ts":1730036809.402923,"caller":"supervisor/supervisor.go:778","msg":"error while reading last received config","error":"open last_recv_remote_config.dat: no such file or directory","stacktrace":"github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor.(*Supervisor).loadAndWriteInitialMergedConfig\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/supervisor.go:778\ngithub.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor.(*Supervisor).Start\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/supervisor.go:205\nmain.runInteractive\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/main.go:43\nmain.run\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/main_others.go:9\nmain.main\n\t/Users/srikanth/Projects/opentelemetry-collector-contrib/cmd/opampsupervisor/main.go:19\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"}

Collector version

HEAD

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@srikanthccv srikanthccv added bug Something isn't working needs triage New item requiring triage labels Oct 27, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmd/opampsupervisor
Projects
None yet
2 participants