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

[receiver/awscontainerinsight] default host proc (/rootfs/proc) is attempted before checking for HOST_PROC env var #35862

Open
pjanotti opened this issue Oct 17, 2024 · 2 comments
Labels

Comments

@pjanotti
Copy link
Contributor

Component(s)

receiver/awscontainerinsight

What happened?

Description

Even if the HOST_PROC env var is set the receiver can fail to start if the default host proc (/rootfs/proc) doesn't exist.

Steps to Reproduce

Run the receiver in a image without /rootfs/proc but with HOST_PROC env var set to a valid location.

Expected Result

The receiver should use the value in HOST_PROC and start without issues.

Actual Result

The receiver fails to start and triggers a shutdown of the collector.

Collector version

v0.111.0

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

1729038071019,"2024-10-16T00:21:11.019Z	error	graph/graph.go:426	Failed to start component	{""error"": ""failed to initialize NodeCapacity: lstat /rootfs/proc: no such file or directory"", ""type"": ""Receiver"", ""id"": ""awscontainerinsightreceiver""}"
1729038071019,2024-10-16T00:21:11.019Z	info	[email protected]/service.go:270	Starting shutdown...

Additional context

No response

@pjanotti pjanotti added bug Something isn't working needs triage New item requiring triage receiver/awscontainerinsight labels Oct 17, 2024
Copy link
Contributor

Pinging code owners:

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

Copy link
Contributor

Pinging code owners for receiver/awscontainerinsight: @Aneurysm9 @pxaws. 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
Projects
None yet
Development

No branches or pull requests

1 participant