LogStash问题:FFI不可用:零

z9ju0rcb  于 2023-08-01  发布在  Logstash
关注(0)|答案(1)|浏览(260)

我正在尝试启动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能正常工作

noj0wjuj

noj0wjuj1#

此错误可能是由于运行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"

字符串

相关问题