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

beyla doesn't capture traces and error in logs is "CO-RE relocations" #1383

Open
puran157 opened this issue Nov 19, 2024 · 2 comments
Open

Comments

@puran157
Copy link

While running BEYLA, I see following logs

time=2024-11-19T15:22:07.943Z level=ERROR msg="couldn't trace process. Stopping process tracer" component=ebpf.ProcessTracer path=/opt/omnissa/telegraf/bin/telegraf pid=3290054 error="loading and assigning BPF objects: field UprobeServeHTTPReturns: program uprobe_ServeHTTPReturns: apply CO-RE relocations: relocate Struct:"task_struct": byte_off: multiple types match: ambiguous relocation"
time=2024-11-19T15:22:07.964Z level=ERROR msg="couldn't trace process. Stopping process tracer" component=ebpf.ProcessTracer path=/usr/lib/systemd/systemd-journald pid=587 error="loading and assigning BPF objects: field ProtocolHttp: program protocol_http: apply CO-RE relocations: relocate Struct:"task_struct": byte_off: multiple types match: ambiguous relocation"

environment variables

export BEYLA_EXECUTABLE_NAME=. OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://some_host/v1/traces BEYLA_LOG_LEVEL=INFO

@marctc marctc added the bug label Nov 19, 2024
@grcevski
Copy link
Contributor

Hi @puran157, Can you please share what kernel version are you running with? Thanks a lot.

@puran157
Copy link
Author

puran157 commented Nov 19, 2024

Hi @puran157, Can you please share what kernel version are you running with? Thanks a lot.

5.10.229-1.ph4 - vmware photon OS 4.0

Also I checked the presence of /sys/kernel/btf/vmlinux file and its present i.e kernel was compiled with CONFIG_DEBUG_INFO_BTF=y

Verified the same using cat /boot/config-5.10.229-1.ph4 | grep BTF

@marctc marctc removed the bug label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants