Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup error Logstash (OpenSSL::X509::StoreError) #9564

Closed
LipatovNikita opened this issue May 12, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@LipatovNikita
Copy link

commented May 12, 2018

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.

  • Version: 6.2.4
  • Ubuntu 18.04
  • Config 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"
    }
   }
}

@andrewvc andrewvc added bug P3 labels May 14, 2018

@andrewvc

This comment has been minimized.

Copy link
Contributor

commented May 14, 2018

Is there a stack trace alongside that error? Can you share more of the log output?

@jslirola

This comment has been minimized.

Copy link

commented May 18, 2018

Hello, I am having the same issue, with the same version and O.S.

$ ./logstash -e 'input { stdin { } } output { stdout {} }'
[ERROR] 2018-05-18 07:45:58.226 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (OpenSSL::X509::StoreError) setting default path failed: the trustAnchors parameter must be non-empty

That's all, any suggestion?

Edit: Fixed with this comment: https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty#comment87650897_50103533

I ran sudo rm /etc/ssl/certs/java/cacerts and then sudo update-ca-certificates -f and this fixed my issue in kubuntu 18.04.

@LipatovNikita check the thread.

@LipatovNikita

This comment has been minimized.

Copy link
Author

commented May 20, 2018

It's unbelievable, it fixed the problem!
Thank you very much!

@mohamed-assem92

This comment has been minimized.

Copy link

commented Jun 21, 2018

i had the same problem and the past solution didn't work for me i found this out:
1- find the current java version using the following command

sudo update-alternatives --display java

2-you should get result like that

link currently points to /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

3-use the following command

cd  /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security

4- use the following command

ln -fs /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts

it should work now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.