Open ghost opened 2 years ago
sudo ?
it's already be root, sudo doesn't help.
Only this bcc tool has issue, or other bcc tool also has the issue? If they all have the issues, maybe this is due to some other factors, like some kind of security system on the host.
So, does anyone solve this problem?
I was able to run tcpstates.py
on a few of my test environments. We'll need more information to be able to help you investigate, something like:
uname -a
)
Hi, I am getting an error running tcpstates
Traceback (most recent call last): File "tcpstates", line 422, in
b = BPF(text=bpf_text)
File "/usr/lib/python3/dist-packages/bcc/init.py", line 483, in init
self._trace_autoload()
File "/usr/lib/python3/dist-packages/bcc/init.py", line 1456, in _trace_autoload
fn = self.load_func(func_name, BPF.TRACEPOINT)
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'tracepointsockinet_sock_set_state': Permission denied