bcc icon indicating copy to clipboard operation
bcc copied to clipboard

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

Open LaironSk opened this issue 2 years ago • 3 comments

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?

LaironSk avatar Jul 28 '23 00:07 LaironSk

There are many cases error code -E2BIG could be returned to kernel. This error typically indicates something is off the limit. If you can have a self-reproducible test case, somebody in the community might be able to help you.

yonghong-song avatar Jul 30 '23 21:07 yonghong-song

I followed this README https://gitlab.com/tunv_ebpf/BPFCollector and ran

sudo python3 InDBClient.py veth_1

LaironSk avatar Aug 01 '23 17:08 LaironSk

I resolved this issue by replacing the kernel with 4.15

DnQi avatar May 05 '24 16:05 DnQi