Logstash - Load error


I have installed already several times the elastic stack all via the tar.gz files.
This error that im having now is only regarding Logstash.

When I start Logstash is returns this error

[ERROR] 2020-02-03 15:10:23.030 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) load error: rubygems/security -- java.lang.ExceptionInInitializerError: null

Then is stops. I tried to change the log files level but this message was still the only one.

The only environment change for this installation is the OS. On CentOS 7 all deployments were a success. On this server with RED HAT:
Icon name: computer-vm
Chassis: vm
Virtualization: kvm
Operating System: Red Hat Enterprise Linux
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.7:GA:server
Kernel: Linux 3.10.0-327.el7.x86_64
Architecture: x86-6

Can someone help?

Thanks in advance

Hey, did you generated or are you using a LS keystore?

You could try enabling logging for the underlying JRuby runtime.
There's likely going to be a lot of logs on stderr but we'll have a trace at least for the "load error" :

LS_JAVA_OPTS="-Djruby.log.exceptions -Djruby.log.backtraces" bin/logstash


Forgot to update this issue...
The issue was the java version. Well the java version was correct but don't know why it was installed an oracle java 1.8.. Logstash was not returning error when we are running a java 1.6 for example. I discovered, when comparing all rpms installed in other server and noticed that the java was not from OpenJDK. After installing the correct 1.8 version from OpenJDK all good.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.