iovisor / iovisor/bcc

Failed to load BPF program %s: %s" % Exception: Failed to load BPF program b'collector': Argument list too long

Open
#4,687 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
5d 13h
Merged PRs (30d)
3

Description

I'm using a application that is using bcc, the BPFCollector. I'm trying to run a InfluxDB server and I keep receiving this error coming from bcc package:

Traceback (most recent call last):
File "InDBClient.py", line 49, in
collector = InDBCollector.InDBCollector(int_dst_port=args.int_port,
File "InDBCollector.pyx", line 61, in InDBCollector.InDBCollector.__init__
self.fn_collector = self.bpf_collector.load_func("collector", BPF.XDP)
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 522, in load_func
raise Exception("Failed to load BPF program %s: %s" %
Exception: Failed to load BPF program b'collector': Argument list too long

How do I fix it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with InDBCollector.pyx at line 61 and bcc/__init__.py at line 522, then reproduce the BPFCollector load_func("collector", BPF.XDP) call described in the traceback. Trace the reported "Argument list too long" failure to its source and document or implement a verified fix, with the corrected load completing successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, python
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.