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

examples/tracing is broken #5245

Closed
RoadRunnr opened this issue Sep 15, 2021 · 7 comments · Fixed by #5430
Closed

examples/tracing is broken #5245

RoadRunnr opened this issue Sep 15, 2021 · 7 comments · Fixed by #5430
Labels
bug Something isn't working

Comments

@RoadRunnr
Copy link

Describe the bug

The tracing_otel-collector_1 container from examples/tracing does not start.
A log entry indicates a podman problem:

$ docker logs tracing_backend_1
time="2021-09-15T14:41:07Z" level=error msg="mkdir /rundir/libpod: no such file or directory"

Steps to reproduce

in examples/tracing, do:

docker-compose up -d
docker logs tracing_backend_1

What did you expect to see?

A running instance of the tracing_backend_1 container

What did you see instead?

No instance of the tracing_backend_1 container

What version did you use?

master

What config did you use?

unmodified config from the example

Environment
OS: Ubuntu 21.10

@RoadRunnr RoadRunnr added the bug Something isn't working label Sep 15, 2021
@mx-psi
Copy link
Member

mx-psi commented Sep 15, 2021

cc @owais, related to podman receiver?

@RoadRunnr
Copy link
Author

RoadRunnr commented Sep 15, 2021

removing the unprivileged user from the Dockerfile solves it, But I'm not sure that this is the correct fix.

@piellick
Copy link

Hey @RoadRunnr could you explain your workaround ?

@RoadRunnr
Copy link
Author

remove these two lines and rebuild:

ARG USER_UID=10001
USER ${USER_UID}

@gebn
Copy link
Contributor

gebn commented Sep 19, 2021

We ran into this while attempting to upgrade from v0.34.0 to v0.35.0 using the official images. Changing only the tag:

otel/opentelemetry-collector-contrib:0.34.0:

$ kubectl logs otel-collector-b875885fc-2cdqr
2021-09-19T22:33:29.476Z        info    service/collector.go:303        Starting otelcontribcol...      {"Version": "v0.34.0", "NumCPU": 8}
...

otel/opentelemetry-collector-contrib:0.35.0:

$ kubectl logs otel-collector-567676fbbd-mj2fb
time="2021-09-19T22:23:16Z" level=error msg="mkdir /rundir/libpod: permission denied"

In case it's relevant, the pod is running with a custom serviceAccountName to allow k8s_tagger to function.

@githubcdr
Copy link

We ran into this while attempting to upgrade from v0.34.0 to v0.35.0 using the official images. Changing only the tag:

confirmed here

@gebn
Copy link
Contributor

gebn commented Sep 21, 2021

This also reproduces with 0.36.0:

time="2021-09-21T23:30:39Z" level=error msg="mkdir /rundir/libpod: permission denied"

bogdandrutu pushed a commit that referenced this issue Sep 27, 2021
podmanreceiver uses the official Go podman bindings but the bindings
pull in all of the podman codebase and it's dependencies. We are
essentially embedding podman into the collector. This causes a number of
problems both at compile and run time.

This commit ditches the podman library and uses net/http to consume the
podman v3 REST API instead.

Fixes #5244
Fixes #5414
Fixes #5241
Fixes #5245
hex1848 pushed a commit to hex1848/opentelemetry-collector-contrib that referenced this issue Jun 2, 2022
…y#5245)

Deprecated `ConfigProviderSettings.Unmarshaler` is still being used in `service.NewConfigProvider` causing nil pointer exception it's not provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants