2

My operating system is Linux Ubuntu 18.04. I have installed Logstash and I try to run it with a command:

sudo /usr/share/logstash/bin/logstash.

But I get a startup error:

[ERROR] 2018-05-12 20:54:15.228 [main] Logstash - 
java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: 
(OpenSSL::X509::StoreError) setting default path failed: the 
trustAnchors parameter must be non-empty

The configuration file:

input {
  kafka {
    bootstrap_servers = "localhost:9092"
    topics = ["cpu_metrics"]
    enable_auto_commit = "true"
    type = "cpu"
  }
}
output {
  if [type] == "cpu" {
    file {
      path => "/home/cpu/cpu.log"
    }
   }
}

2 Answers 2

1

I had similar issue and based on this:

http://10minbasics.com/logstash-trustanchors-parameter-must-be-non-empty/

Following commands helped me:

sudo rm /etc/ssl/certs/java/cacerts

sudo update-ca-certificates -f
1

Aside from following Ziemowit's answer, I had to update my ubuntu's ca-certificates-java too:

apt-get install ca-certificates-java

After that, the error went away.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.