Skip to content

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

Open
@gruyaume

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions