-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
tcplife not working on Ubuntu 19.10 #2676
Comments
Can you show the output of |
|
The reason is kernel internal headers are more advanced then bcc internal uapi bpf.h headers. You have 5.3 kernel and its kernel-devel headers trying to access uapi bpf.h header which is provided by bcc a little bit old. The solution is to use newer bcc versions. |
Hmm, I just installed the packages that are included in Ubuntu. Is this maybe a bug in the Ubuntu packages or am I doing something wrong here? |
It just the package is not up-to-date. Not sure how to push ubuntu to update packages. cc @drzaeus77 |
Turns out this is a known Ubuntu issue for quite a while: Since the packages are currently partially broken for Ubuntu 19.10 I'm wondering whether a warning should be added to |
Marked the launchpad bug as affecting me, encourage others to do same if you're running 19.10. Given the packaging issue, I attempted to build from source (HEAD of master) following documentation. However, regardless of running (e.g. tcplife) via built tools, or via snap package, or via quick start docker image, I get the same error:
Some system information:
Also checked out v0.12.0 tag and tried to rebuild but received some
Anything else I can provide to help out? I can open a separate issue but figured I'd start here since this is a fresh 19.10 install. Updates
|
Not sure why gzgets symbol is missing. But if you want to continue, you may tentatively remove |
@dailyherold Could you please also post the output of |
@mwuertinger looks like dmesg errors only came up when trying to use the snap package. Building off of 0a7da74 (to keep things consistent with last night) I didn't see any movement while watching dmesg. @yonghong-song moving to
Was able to compile without issue, but running still results in same error:
Also pulled latest from master to see if any difference, but unfortunately not and still same error. I did build from source (HEAD of master) on my 18.04 machine and was able to run without issue. So has to be something odd with package/deps/libs combo in 19.10. Let me know how I can be of more assistance in debugging! |
@mwuertinger, yup you were right. Turns out it was lockdown mode. When I first read your post I was visualizing the apparmor dmesg events I was getting with the snap package versions. And since I wasn't getting any dmesg events when running my compiled binaries, I kept trying other stuff. I also didn't I know what lockdown mode was until... I found bpftrace/bpftrace#853, and after disabling, my issues were resolved. Both bcc and bpftrace now working for me without problem. Subscribed to both #2565 and bpftrace/bpftrace#925 because I think these may start affecting all people who have a fresh 19.10 install. And with the BPF Performance Tools book being recent, I bet we'll see more people confused. |
seems like relevant to #4758 |
Packages are currently broken on Ubuntu Eon. See iovisor#2676 and iovisor#2678.
Running
tcplife-bpfcc
on Ubuntu 19.10 results in the following error:This can be reproduced on a freshly installed Ubuntu 19.10 by installing the
bpfcc-tools
package version0.8.0-4
. Running other TCP related tools results in similar error messages.The text was updated successfully, but these errors were encountered: