Problem
The agent V2 is installed on one or more hosts but no components are appearing for those hosts in StackState.
When checking the receiver log file (/opt/stackstate/var/log/stackstate-receiver/receiver.log) it contains error messages very similar to this one:
no zstd-jni in java.library.path
Unsupported OS/arch, cannot find /linux/amd64/libzstd-jni.so or load zstd-jni from system libraries. Please try building from source the jar or providing libzstd-jni in you system., shutting down JVM
The StackState receiver fails to load the binaries required by the zstd-jni bindings on Linux when Security-Enhanced Linux is enabled.
Cause
This issue is caused by the Zstd-jni libraries which tries to load the binaries into the /tmp folder which is restricted by Security-Enhanced Linux.
Solution
Create the directory /opt/stackstate/tmp and make user stackstate owner:
mkdir /opt/stackstate/tmp
chown stackstate:stackstate /opt/stackstate/tmp
Now add -Djava.io.tmpdir=/opt/stackstate/tmp as a command line argument for stackstate and the receiver in the /opt/stackstate/etc/processmanager/processmanager.conf file (add it on a new line right below/above the other -D flags).
This will be solved in a future release.
Comments
0 comments
Please sign in to leave a comment.