Logstash 1.4.0 crashes if websocket output is enabled

Description

Steps to reproduce (Centos 6):

  • install logstash from logstash-1.4.0-1_c82dc09.noarch.rpm

  • install contrib plugins by running bin/plugin install contrib

  • add following section to logstash.conf:

    output { stdout { codec => rubydebug } elasticsearch { host => localhost } websocket { host => localhost port => 3232 } }
  • try to start logstash with /etc/init.d/logstash start

  • see it crash with the following error:

    NameError: uninitialized constant HTTP const_missing at org/jruby/RubyModule.java:2690 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/http_parser.rb-0.5.3-java/lib/http_parser.rb:4 require at org/jruby/RubyKernel.java:1085 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53 require at /opt/logstash/lib/logstash/JRUBY-6970.rb:27 require at /opt/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/http_parser.rb-0.5.3-java/lib/http/parser.rb:1 require at org/jruby/RubyKernel.java:1085 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53 require at /opt/logstash/lib/logstash/JRUBY-6970.rb:27 require at /opt/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/http_parser.rb-0.5.3-java/lib/http/parser.rb:1 require at org/jruby/RubyKernel.java:1085 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53 require at /opt/logstash/lib/logstash/JRUBY-6970.rb:27 require at /opt/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/ftw/response.rb:1 require at org/jruby/RubyKernel.java:1085 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53 require at /opt/logstash/lib/logstash/JRUBY-6970.rb:27 require at /opt/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/ftw/response.rb:5 require at org/jruby/RubyKernel.java:1085 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53 require at /opt/logstash/lib/logstash/JRUBY-6970.rb:27 require at /opt/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/ftw/request.rb:1 require at org/jruby/RubyKernel.java:1085 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:133 require at file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124 require at /opt/logstash/lib/logstash/JRUBY-6970.rb:27 require at /opt/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/ftw/request.rb:6 each at org/jruby/RubyArray.java:1613 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/ftw/agent.rb:1 (root) at /opt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/ftw/agent.rb:2

Could this be similar to https://logstash.jira.com/browse/LOGSTASH-585 ?

Gliffy Diagrams

Activity

Show:

Details

Assignee

Reporter

Affects versions

Created April 28, 2014 at 3:17 PM
Updated March 20, 2015 at 6:59 AM