Hi,
This is in continuation of my prev query that got auto-closed.
Summary:
Logstash 7.17.3 is not working with jdk >= 11.0.16
As per @stephenb 's response, I've checked LS_JAVA_HOME is properly set.
I see that the installation of just logstash and service start works fine. But the problem is seen when any logstash plugin is installed.
19:08:42 + buildah run --isolation chroot working-container -- /usr/share/logstash/bin/logstash-plugin install --no-verify logstash-input-journald
19:08:42 Using bundled JDK: /usr/share/logstash/jdk
19:08:42 [0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /sys/fs/cgroup/cpuset.
19:08:42 [0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /sys/fs/cgroup/cpuset.
19:08:42 [0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /sys/fs/cgroup/cpuset.
19:08:42 WARNING: Unknown module: org.jruby.dist specified to --add-opens
19:08:42 WARNING: Unknown module: org.jruby.dist specified to --add-opens
19:08:42 WARNING: Unknown module: org.jruby.dist specified to --add-opens
19:08:42 WARNING: Unknown module: org.jruby.dist specified to --add-opens
19:08:42 Error: Could not find or load main class [0.001s][warning][os,container]
19:08:42 Caused by: java.lang.ClassNotFoundException: [0/001s][warning][os,container]
19:08:42 subprocess exited with status 1
19:08:42 subprocess exited with status 1
19:08:42 make[1]: *** [build] Error 1
19:08:42 make[1]: Leaving directory `/home/cloud-user/logstash'
19:08:42 make: *** [build] Error 1
We have been trying different combinations and now have following updates -
-
The same sequence of steps work fine with Logstash 7.17.3 with Java 11.0.15. All plugins get installed fine. The problem is hit when we move to java 11.0.16.
-
I also tried upgrading to Logstash 8.4.3 - This does not work even with 11.0.15 and gives the exact same errors in plugin installation.
Logstash 7.17.3 + java 11.0.15 -> works
Logstash 7.17.3 + java 11.0.16 (and above) -> does not work
Logstash 8.4.3 + java 11.0.15 -> does not work
Logstash 8.4.3 + java 11.0.16(and above) -> does not work
@stephenb Is it possible for you to also try installing few plugins on top of the test you did to see if there's any similar issue seen here?
Any other pointers, inputs will be much appreciated.
Thanks!