Comments (11)
Hey @nazdridoy! Thank you for the issue! We already patched this problem and release a patch release )0.35.2) 😁 On the other hand supporting XDG directories is a good point and maybe we should do that.
from sysdig.
We already patched this problem and release a patch release )0.35.2)
great! i guess it'll be available in arch repo soon.
supporting XDG directories is a good point and maybe we should do that.
please do... many of us would really appriciate that.
from sysdig.
I just tested with 0.35.3 and the issue is not fixed.
The problem appeared somewhere between 0.32.0 and 0.35.0.
I am building Debian package that installs chisels to /usr/share/sysdig/chisels
.
sysdig still looks for chisels in current directory.
ln -s /usr/share/sysdig/chisels
fixes the issue.
If there are any new config options to specify location of the chisels/plugins please let us know.
readlink("/root", 0x7ffc013228a0, 1023) = -1 EINVAL (Invalid argument)
readlink("/root/.chisels", 0x7ffc013228a0, 1023) = -1 ENOENT (No such file or directory)
faccessat2(AT_FDCWD, "/root/.chisels/", F_OK, AT_EACCESS) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/proc/1/root", {st_mode=S_IFDIR|0755, st_size=424, ...}, 0) = 0
openat(AT_FDCWD, "/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=12324, ...}, AT_EMPTY_PATH) = 0
newfstatat(AT_FDCWD, "/proc/1/root", {st_mode=S_IFDIR|0755, st_size=424, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/share/sysdig/plugins/", 0x7ffc01322330, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/root/.terminfo", 0x6342d493d6e0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=12, ...}, 0) = 0
newfstatat(AT_FDCWD, "/lib/terminfo", 0x6342d493d770, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=84, ...}, 0) = 0
access("/etc/terminfo/x/xterm-1003", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/terminfo/x/xterm-1003", R_OK) = 0
openat(AT_FDCWD, "/usr/share/terminfo/x/xterm-1003", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3946, ...}, AT_EMPTY_PATH) = 0
access("/etc/terminfo/x/xterm-1003", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/terminfo/x/xterm-1003", R_OK) = 0
openat(AT_FDCWD, "/usr/share/terminfo/x/xterm-1003", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3946, ...}, AT_EMPTY_PATH) = 0
filesystem error: directory iterator cannot open directory: No such file or directory [./chisels/]
+++ exited with 1 +++
from sysdig.
Hey @eugenesan! The current version of sysdig (at least the one compiled by the ci) seems to work correctly even if no chisel directory is present. How are you building the package? By the way, it's possible to specify a specific chisel directory using the environment variable SYSDIG_CHISEL_DIR
.
from sysdig.
@eugenesan by any chance, are you referring to the variable that sets the chisel directory during the build? In that case you should modify the file here:
userspace/sysdig/config_sysdig.h.in
24:#define SYSDIG_CHISELS_DIR "${CMAKE_INSTALL_PREFIX}/share/sysdig/chisels"
from sysdig.
@therealbobo
Sorry for the delayed response.
The issue is not related to the configuration.
I've tracked the problem to falcosecurity call:
sysdig/userspace/sysdig/csysdig.cpp
Line 236 in 1e0fd10
The SYSDIG_CHISELS_DIR definitely contains the correct path and the function being called seems OK and didn't change for a while:
https://github.com/falcosecurity/libs/blob/a6be3efda7cf6c38c22d43b1a71976b3c646c38c/userspace/chisel/chisel_utils.cpp#L148
But still the path never ends up in the list or being tested/accessed and I am getting: filesystem error: directory iterator cannot open directory: No such file or directory [./chisels/]
Maybe it's a toolchain or 3rd part library bug? I am testing on Ubuntu 23.10.
from sysdig.
This sounds really strange! I'm on ubuntu 22.04 and I cannot get a repro. Do you mind sharing the cmake commands you are using? 🤔 @eugenesan
from sysdig.
This sounds really strange! I'm on ubuntu 22.04 and I cannot get a repro. Do you mind sharing the cmake commands you are using? 🤔 @eugenesan
Here are the build logs for Ubuntu 23.10 (same issue on 24.04) and corresponding package:
- sysdig: https://launchpadlibrarian.net/718335621/buildlog_ubuntu-mantic-amd64.sysdig_0.35.0+repack-1build3~eugenesan~mantic2_BUILDING.txt.gz
- falcosecurity: https://launchpad.net/~eugenesan/+archive/ubuntu/ppa/+build/27894895/+files/buildlog_ubuntu-mantic-amd64.falcosecurity-libs_0.14.3-1~eugenesan~mantic1_BUILDING.txt.gz
- https://launchpad.net/~eugenesan/+archive/ubuntu/ppa/+packages?field.name_filter=sysdig&field.status_filter=published&field.series_filter=mantic
On 22.04 it worked with slighly older versions. Here are the logs and corresponding package:
- sysdig: https://launchpad.net/~eugenesan/+archive/ubuntu/ppa/+build/26475443/+files/buildlog_ubuntu-jammy-amd64.sysdig_0.32.0-1~eugenesan~jammy1_BUILDING.txt.gz
- falcosecurity: https://launchpad.net/~eugenesan/+archive/ubuntu/ppa/+build/26475308/+files/buildlog_ubuntu-jammy-amd64.falcosecurity-libs_0.11.3+repack-1~eugenesan~jammy1_BUILDING.txt.gz
- https://launchpad.net/~eugenesan/+archive/ubuntu/ppa/+packages?field.name_filter=sysdig&field.status_filter=published&field.series_filter=jammy
from sysdig.
Related Issues (20)
- if use "container.id" or "container.name" ,there is no feedback or output HOT 2
- How to install or use sysdig in container on Fedora Silverblue or Fedora CoreOS? HOT 3
- Red Hat 9 isn't supported - SHA 1 deprecated HOT 2
- Tools for tracking down I/O Wait HOT 1
- Container image missing tools used in chisels
- CPU usage reported as 0.00 when using `--modern-bpf` HOT 2
- sysdig manual needs to be updated HOT 4
- The tracking of orphan processes is lost. HOT 2
- The situation where syscall events are lost when tracing programs with frequent system calls. HOT 3
- Docker image build "E: Unable to locate package clang-7 E: Unable to locate package llvm-7 E: Unable to locate package libmpx2" HOT 4
- Compilation error: “install TARGETS given target "sinsp" which does not exist in this directory.” HOT 4
- Unable to load the driver. Error opening device /dev/scap0 HOT 3
- CSysdig Rendering IPv6 Addresses For IPv4 Addresses? HOT 1
- Compile error for BPF driver on arm64 GKE server HOT 50
- Undetected syscall error HOT 1
- All chisels are broken: `attempt to index global 'sysdig' (a nil value)` HOT 13
- `evt.res` and `evt.rawres` and `evt.failed` are gone HOT 2
- Ask about evt.type=procinfo HOT 3
- UDP connections not closing anymore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysdig.