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

Parca Agent snap service does not start on Ubuntu 24.04 #2779

Open
gruyaume opened this issue May 13, 2024 · 2 comments
Open

Parca Agent snap service does not start on Ubuntu 24.04 #2779

gruyaume opened this issue May 13, 2024 · 2 comments

Comments

@gruyaume
Copy link

gruyaume commented May 13, 2024

Describe the bug
The Parca Agent snap service does not start on Ubuntu 24.04. The snap service shows as active from snapd point of view but it seems to be in infinite startup retry loop with the error BPF program load failed: Argument list too long.

To Reproduce

I have followed the Quick Start for snaps guide and tried to start Parca Agent and integrate it with Parca.

sudo snap install --classic parca-agent
sudo snap start parca

Expected behavior
The agent starts

Logs

2024-05-13T16:15:39+02:00 parca-agent.parca-agent-svc[206351]: level=info name=parca-agent ts=2024-05-13T14:15:39.523001142Z caller=main.go:526 msg="maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined"
2024-05-13T16:15:39+02:00 parca-agent.parca-agent-svc[206351]: level=info name=parca-agent ts=2024-05-13T14:15:39.523049344Z caller=main.go:556 msg="no config file provided, using default config"
2024-05-13T16:15:39+02:00 parca-agent.parca-agent-svc[206351]: name=parca-agent ts=2024-05-13T14:15:39.591573342Z caller=main.go:740 msg=starting... node=thinkpad store=localhost:7070
2024-05-13T16:15:39+02:00 parca-agent.parca-agent-svc[206351]: level=info name=parca-agent ts=2024-05-13T14:15:39.606361226Z caller=cpu.go:231 component=cpu_profiler msg="loaded rbperf BPF module"
2024-05-13T16:15:39+02:00 parca-agent.parca-agent-svc[206351]: level=info name=parca-agent ts=2024-05-13T14:15:39.614882752Z caller=cpu.go:248 component=cpu_profiler msg="loaded pyperf BPF module"
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: level=warn name=parca-agent ts=2024-05-13T14:15:47.084610989Z caller=logger.go:87 component=cpu_profiler component=libbpf msg="libbpf: prog 'native_unwind': BPF program load failed: Argument list too long\n"
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: - (error decoding original message: message key "MESSAGE" truncated)
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: level=warn name=parca-agent ts=2024-05-13T14:15:47.087859488Z caller=logger.go:87 component=cpu_profiler component=libbpf msg="libbpf: prog 'native_unwind': failed to load: -7\n"
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: level=warn name=parca-agent ts=2024-05-13T14:15:47.087961176Z caller=logger.go:87 component=cpu_profiler component=libbpf msg="libbpf: failed to load object 'parca-native'\n"
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: level=error name=parca-agent ts=2024-05-13T14:15:47.087996348Z caller=cpu.go:388 component=cpu_profiler msg="could not create unwind info shards" lastError="failed to load BPF object: argument list too long"
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: level=warn name=parca-agent ts=2024-05-13T14:15:47.088166969Z caller=discovery_manager.go:196 msg="unable to start provider" provider=systemd/0 error="context canceled"
2024-05-13T16:15:47+02:00 parca-agent.parca-agent-svc[206351]: level=error name=parca-agent ts=2024-05-13T14:15:47.088519015Z caller=main.go:536 err="load bpf program: failed to load BPF object: argument list too long"
2024-05-13T16:15:47+02:00 systemd[1]: snap.parca-agent.parca-agent-svc.service: Deactivated successfully.
2024-05-13T16:15:47+02:00 systemd[1]: snap.parca-agent.parca-agent-svc.service: Consumed 7.843s CPU time.
2024-05-13T16:15:47+02:00 systemd[1]: snap.parca-agent.parca-agent-svc.service: Scheduled restart job, restart counter is at 8.
guillaume@thinkpad:~$ sudo snap services parca-agent.parca-agent-svc 
Service                      Startup   Current  Notes
parca-agent.parca-agent-svc  disabled  active   -

Software (please complete the following information):

  • Parca Agent Version: parca-agent, version 0.30.0 (commit: da59a7c, date: 2024-03-04T20:55:59Z), arch: amd64
  • Parca Server Version (if applicable): parca, version 0.21.0 (commit: 089e78068a1c4f8773b1d5a8bac6645c6414fdfd)

Environment (please complete the following information):

  • Linux Distribution: Ubuntu 24.04
  • Linux Version: 6.8.0-31-generic
  • Arch: x86_64
@gruyaume gruyaume changed the title Parca Agent snap service does not start with eBPF argument list too long error Parca Agent snap service does not start on Ubuntu 24.04 May 13, 2024
@metalmatze
Copy link
Member

Hey, thank you for opening this issue.
There were some fixes that landed and sudo snap install --classic --edge parca-agent works.
Until we have a new parca-agent release please use edge.

@metalmatze
Copy link
Member

@umanwizard, let's make sure to close this issue once we have cut a new parca-agent release.

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

2 participants