Graylog not listening on port 9000 - /tmp noexec issue

Put back noexec next to /tmp in /etc/fstab, same error after reboot.

2022-08-09T08:04:29.190Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. /tmp/jna18227291494596980113.tmp: /tmp/jna18227291494596980113.tmp: failed to map segment from shared object
2022-08-09T08:04:29.191Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.192Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.192Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.192Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.192Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.192Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.192Z ERROR [LinuxFileSystem] Failed to get file counts from statvfs. Could not initialize class com.sun.jna.Native
2022-08-09T08:04:29.534Z ERROR [CmdLineTool] Guice error (more detail on log level debug): java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

Added this line in /etc/sysconfig/graylog-server and all works nicely.
GRAYLOG_SERVER_JAVA_OPTS="$GRAYLOG_SERVER_JAVA_OPTS -Djava.io.tmpdir=/var/graylog/tmp"

ls -la /var/graylog/tmp
total 0
drwxr-x--- 2 graylog graylog  6 Aug  9 08:32 .
drwxr-x--- 3 graylog graylog 17 Aug  9 08:25 ..
1 Like