Details
-
Type:
Bug/Feature
-
Status: Resolved (View workflow)
-
Resolution: Fixed
-
Affects Version/s: 1.1.12
-
Fix Version/s: 1.1.13
-
Labels:None
Description
Logstash fails to start due to a LoadError when using the rabbitmq input on Windows. This appears to be related to: https://github.com/ruby-amqp/bunny/blob/0.8.x-stable/lib/bunny.rb#L8. If you comment out that line everything loads properly. I am not sure what that best approach is to solve this since it is an issue in an external library but I wanted to submit the bug.
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (LoadError) no such file to load – file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!D:/bunny/version
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/bunny.rb:8)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/logstash/outputs/rabbitmq.rb:1)
at RUBY.register(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/logstash/outputs/rabbitmq.rb:65)
at org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149)
at RUBY.run_output(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/logstash/agent.rb:796)
at RUBY.run_output(file:/D:/apps/prod/logstash-agent/classes/logstash-agent.jar!/logstash/agent.rb:796)