org.jruby.exceptions.RaiseException: (SystemExit) exit

JIRA | Eslam El Husseiny | 5 years ago
  1. 0

    hi, i'm trying to add type in output / gelf to act with type specified in input/file the shipper file was as following : input { file { type => "nginx" path => ["/var/log/nginx/*.log"] } } output { gelf { host => "example.org" type => "nginx" facility => "celeryd" } } E, [2012-02-06T14:14:14.253000 #32417] ERROR -- runner.class: Unknown setting 'type' for output/gelf E, [2012-02-06T14:14:14.272000 #32417] ERROR -- runner.class: Config validation failed. Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (SystemExit) exit at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:867) at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:836) at LogStash::Config::Mixin.config_init(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/config/mixin.rb:48) at LogStash::Outputs::Base.initialize(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/outputs/base.rb:19) at LogStash::Agent.run_with_config(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:293) at LogStash::Config::File.parse(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/config/file.rb:49) at LogStash::Config::File.each(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/config/file.rb:86) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603) at LogStash::Config::File.each(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/config/file.rb:85) at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1170) at LogStash::Config::File.each(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/config/file.rb:78) at LogStash::Config::File.parse(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/config/file.rb:34) at LogStash::Agent.run_with_config(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:283) at LogStash::Agent.run(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:269) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:268) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:232)

    JIRA | 5 years ago | Eslam El Husseiny
    org.jruby.exceptions.RaiseException: (SystemExit) exit
  2. 0

    After having installed openjdk java, I proceded to run the logstash-1.0.17-monolithic.jar via this command: java -jar logstash-1.0.17-monolithic.jar agent -f agent-shipper.conf Some how I see some logs displayed in a flash and then an exception is immediately thrown. Qrack::ConnectionTimeout: execution expired initialize at org/jruby/ext/socket/RubyTCPSocket.java:115 new at org/jruby/RubyIO.java:864 socket at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/gems/bunny-0.6.0/lib/qrack/client.rb:179 timeout at org/jruby/ext/Timeout.java:139 socket at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/gems/bunny-0.6.0/lib/qrack/client.rb:178 start_session at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/gems/bunny-0.6.0/lib/bunny/client08.rb:391 loop at org/jruby/RubyKernel.java:1419 start_session at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/gems/bunny-0.6.0/lib/bunny/client08.rb:389 connect at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/logstash/outputs/amqp.rb:81 register at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/logstash/outputs/amqp.rb:62 run_output at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:522 run_with_config at file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:370 call at org/jruby/RubyProc.java:268 call at org/jruby/RubyProc.java:232 Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (SystemExit) execution expired at org.jruby.RubyThread.join(org/jruby/RubyThread.java:509) at LogStash::Agent.wait(file:/home/cgiadmin/Applications/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:277) at logstash.runner.main(logstash/runner.rb:17) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603) at logstash.runner.main(logstash/runner.rb:17) at logstash.runner.(root)(logstash/runner.rb:70) This is my config file configuration: input { #file { # type => "syslog" # Wildcards work here :) # path => [ "/var/log/messages", "/var/log/syslog", "/var/log/*.log" ] #} file { type => "cnetasia-openapiv2" path => "/var/log/httpd/asia.cnet.com-openapiv2-access.log" } #file { # type => "apache-error" # path => "/var/log/httpd/error_log" #} } output { # Output events to stdout for debugging. Feel free to remove # this output if you don't need it. stdout { } # Ship events to the amqp fanout queue named 'rawlogs" amqp { host => "172.17.112.98" exchange_type => "fanout" name => "rawlogs" } } I did not have jRuby installed in this server because I thought that I am compiling from the jar file hence it is not needful for it. Is there anything wrong with my setup? Let me know if you need other info from me to help solve this jRuby Exception. Many thanks! Regards, Jonathan

    JIRA | 5 years ago | Jonathan Moo
    org.jruby.exceptions.RaiseException: (SystemExit) execution expired
  3. 0

    With input syslog, an integer is required for facility. {code:title=config|borderStyle=solid} input { syslog { format => "plain" message_format => "plain" type => "syslog" } } filter { grep { type => "syslog" match => ["@message", "\w"] add_field => ["facility", "i-cause-an-error"] } } output { stdout { } } {code} cause {code:title=error|borderStyle=solid} TypeError: can't convert String into Integer << at org/jruby/RubyBignum.java:747 << at org/jruby/RubyFixnum.java:1007 filter_matched at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filters/base.rb:67 each at org/jruby/RubyHash.java:1170 filter_matched at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filters/base.rb:65 filter at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filters/grep.rb:103 filter at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filterworker.rb:50 each at org/jruby/RubyArray.java:1603 filter at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filterworker.rb:42 each at org/jruby/RubyArray.java:1603 filter at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filterworker.rb:41 run at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/filterworker.rb:29 run_filter at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:511 run_with_config at file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:360 call at org/jruby/RubyProc.java:268 call at org/jruby/RubyProc.java:232 Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (SystemExit) can't convert String into Integer at org.jruby.RubyThread.join(org/jruby/RubyThread.java:509) at LogStash::Agent.wait(file:/usr/lib/microsigns/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:277) at logstash.runner.main(logstash/runner.rb:17) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603) at logstash.runner.main(logstash/runner.rb:17) at logstash.runner.(root)(logstash/runner.rb:70) {code}

    JIRA | 5 years ago | Bruno Clermont
    org.jruby.exceptions.RaiseException: (SystemExit) can't convert String into Integer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (SystemExit) exit

      at org.jruby.RubyKernel.exit()
    2. JRuby Main Maven Artifact
      RubyKernel.exit
      1. org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:867)
      2. org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:836)
      2 frames