Skip to content
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

Dependency on systemd #69

Closed
alifarazz opened this issue Jul 24, 2024 · 4 comments
Closed

Dependency on systemd #69

alifarazz opened this issue Jul 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@alifarazz
Copy link

Running the program on a Linux distro without systemd gives this error:

$ sudo bpftop 
Error: No such file or directory (os error 2)

Tracing it with strace revals that I tries to access a socket located at /run/systemd/journal/socket, but it fails and the program shuts down:

$ sudo strace bpftop 2>&1 | tail -n 14
readlink("/proc/self/exe", "/usr/bin/bpftop", 256) = 15
sendto(3, "", 0, MSG_NOSIGNAL, {sa_family=AF_UNIX, sun_path="/run/systemd/journal/socket"}, 30) = -1 ENOENT (No such file or directory)
close(3)                                = 0
write(2, "Error: ", 7Error: )                  = 7
write(2, "No such file or directory", 25No such file or directory) = 25
write(2, " (os error ", 11 (os error )             = 11
write(2, "2", 12)                        = 1
write(2, ")", 1))                        = 1
write(2, "\n", 1
)                       = 1
sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=8192}, NULL) = 0
munmap(0x704292d3c000, 12288)           = 0
exit_group(1)                           = ?
+++ exited with 1 +++

Does this tool have a hard-dependency on systemd and its libraries, or it can still work without them?

@jfernandez
Copy link
Contributor

@alifarazz there is a fix for this if you build bpftop from HEAD, but I haven't cut a release yet with it. a9a121a

@alifarazz
Copy link
Author

Thanks for the prompt response. Just built it from HEAD and it works 👍
Close the issue when you see fit.

@jfernandez
Copy link
Contributor

I’ll leave it open until I cut a new release

@jfernandez jfernandez self-assigned this Jul 26, 2024
@jfernandez jfernandez added the bug Something isn't working label Jul 26, 2024
@jfernandez
Copy link
Contributor

Fixed in the latest release https://github.com/Netflix/bpftop/releases/tag/v0.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants