LogStash 问题:FFI 不可用:null

问题描述 投票:0回答:2

我正在尝试启动logstash,但遇到问题,请检查日志跟踪:

[FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (LoadError) Could not load FFI Provider: (NotImplementedError) FFI not available: null
 See http://jira.codehaus.org/browse/JRUBY-4583
org.jruby.exceptions.LoadError: (LoadError) Could not load FFI Provider: (NotImplementedError) FFI not available: null
 See http://jira.codehaus.org/browse/JRUBY-4583
    at org.jruby.ext.jruby.JRubyUtilLibrary.load_ext(org/jruby/ext/jruby/JRubyUtilLibrary.java:216) ~[jruby.jar:?]
    at RUBY.<main>(/opt/logstash/vendor/bundle/jruby/2.6.0/gems/ffi-1.15.5-java/lib/ffi.rb:11) ~[?:?]
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017) ~[jruby.jar:?]
    at RUBY.<module:LibC>(/opt/logstash/logstash-core/lib/logstash/util/prctl.rb:19) ~[?:?]
    at RUBY.<main>(/opt/logstash/logstash-core/lib/logstash/util/prctl.rb:18) ~[?:?]
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017) ~[jruby.jar:?]
    at opt.logstash.logstash_minus_core.lib.logstash.util.set_thread_name(/opt/logstash/logstash-core/lib/logstash/util.rb:36) ~[?:?]
    at RUBY.execute(/opt/logstash/logstash-core/lib/logstash/runner.rb:354) ~[?:?]
    at opt.logstash.vendor.bundle.jruby.$2_dot_6_dot_0.gems.clamp_minus_1_dot_0_dot_1.lib.clamp.command.run(/opt/logstash/vendor/bundle/jruby/2.6.0/gems/clamp-1.0.1/lib/clamp/command.rb:68) ~[?:?]
    at opt.logstash.logstash_minus_core.lib.logstash.runner.run(/opt/logstash/logstash-core/lib/logstash/runner.rb:282) ~[?:?]
    at opt.logstash.vendor.bundle.jruby.$2_dot_6_dot_0.gems.clamp_minus_1_dot_0_dot_1.lib.clamp.command.run(/opt/logstash/vendor/bundle/jruby/2.6.0/gems/clamp-1.0.1/lib/clamp/command.rb:133) ~[?:?]
    at usr.share.logstash.lib.bootstrap.environment.<main>(/usr/share/logstash/lib/bootstrap/environment.rb:90) ~[?:?]
Caused by: org.jruby.exceptions.NotImplementedError: (NotImplementedError) FFI not available: null

我期待logstash能够正常工作

elasticsearch logstash ffi logstash-configuration
2个回答
0
投票

此错误可能是由于运行 Logstash 的用户无法访问

/tmp
文件夹所致。您可以确保logstash用户有权访问该文件夹,或者使用以下选项运行Logstash并确保
java.io.tmpdir
指向logstash用户可以访问的文件夹

LS_JAVA_OPTS="-Djava.io.tmpdir=/path/that/logstash/can/access" bin/logstash -f "/path/to/your/configuration"

0
投票

我修改了路径(-Djava.io.tmpdir=/path/that/logstash/can/access)但还是报这个错误

© www.soinside.com 2019 - 2024. All rights reserved.