org.jruby.exceptions.RaiseException: (SystemExit) No such file or directory - file:/home/rei/dev/logstash-testing/data/unicode.data

JIRA | Stephon Striplin | 4 years ago
  1. 0

    While this version of logstash is given a input { file {...} }, it complains about a missing unicode.data file. input { stdin {...} } gives no error. {noformat} rei@DimensionX:~/dev/logstash-testing$ java -jar logstash-1.1.6.dev-flatjar.jar agent -e'input{}output{}' adfa {"@source"=>"stdin://DimensionX/", "@tags"=>[], "@fields"=>{}, "@timestamp"=>"2012-11-19T22:46:51.589Z", "@source_host"=>"DimensionX", "@source_path"=>"/", "@message"=>"adfa", "@type"=>"stdin" {noformat} {noformat} rei@DimensionX:~/dev/logstash-testing$ java -jar logstash-1.1.6.dev-flatjar.jar agent -e'input { file { path => 'anywhere' } } Errno::ENOENT: No such file or directory - file:/home/rei/dev/logstash-testing/data/unicode.data initialize at org/jruby/RubyFile.java:315 open at org/jruby/RubyIO.java:1176 IDNA at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/idna/pure.rb:322 Addressable at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/idna/pure.rb:20 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/idna/pure.rb:19 require at org/jruby/RubyKernel.java:1019 require at jar:file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 require at logstash/runner.rb:10 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/idna.rb:1 require at org/jruby/RubyKernel.java:1019 require at jar:file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 require at logstash/runner.rb:10 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/idna.rb:24 require at org/jruby/RubyKernel.java:1019 require at jar:file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 require at logstash/runner.rb:10 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/uri.rb:1 require at org/jruby/RubyKernel.java:1019 require at jar:file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 require at logstash/runner.rb:10 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/addressable/uri.rb:20 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/inputs/file.rb:1 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/inputs/file.rb:7 each at org/jruby/RubyArray.java:1612 (root) at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:1 each at org/jruby/RubyHash.java:1192 tryload at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:57 parse at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:42 each at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:86 each at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:85 synchronize at org/jruby/ext/thread/Mutex.java:149 each at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:78 parse at file:/home/rei/dev/logstash-testing/logstash-1.1.6.dev-flatjar.jar!/logstash/config/file.rb:34 Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (SystemExit) No such file or directory - file:/home/rei/dev/logstash-testing/data/unicode.data at org.jruby.RubyIO.write(org/jruby/RubyIO.java:1400) at org.jruby.RubyIO.write(org/jruby/RubyIO.java:2378) at org.jruby.RubyIO.puts(org/jruby/RubyIO.java:2333) at org.jruby.RubyIO.puts(org/jruby/RubyIO.java:2325) at logstash.runner.main(logstash/runner.rb:53) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612) at logstash.runner.main(logstash/runner.rb:52) at logstash.runner.(root)(logstash/runner.rb:156) {noformat}

    JIRA | 4 years ago | Stephon Striplin
    org.jruby.exceptions.RaiseException: (SystemExit) No such file or directory - file:/home/rei/dev/logstash-testing/data/unicode.data
  2. 0

    ]}, \"patterns_dir\"=>[], \"drop_if_match\"=>false, \"break_on_match\"=>true, \"named_captures_only\"=>true, \"keep_empty_captures\"=>false}"},"level":"fatal"} LogStash::ThreadWatchdog::TimeoutError: watchdog timeout watch at file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/logstash/threadwatchdog.rb:29 each at org/jruby/RubyArray.java:1615 watch at file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/logstash/threadwatchdog.rb:20 run_with_config at file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/logstash/agent.rb:446 Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (SystemExit) watchdog timeout at Gem::Specification.contains_requirable_file?(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:982) at (Anonymous).find_by_path(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:443) at (Anonymous).each(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:411) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1615) at (Anonymous).each(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:410) at org.jruby.RubyEnumerable.find(org/jruby/RubyEnumerable.java:573) at (Anonymous).find_by_path(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:442) at (Anonymous).try_activate(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems.rb:206) at Kernel.require(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59) at Kernel.require(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55) at (Anonymous).(root)(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/gems/ftw-0.0.19/lib/rack/handler/ftw.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1042) at Kernel.require(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36) at (Anonymous).(root)(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/gems/ftw-0.0.19/lib/rack/handler/ftw.rb:3) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1042) at Kernel.require(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36) at logstash.runner.run(logstash/runner.rb:73) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:258) at logstash.runner.run(logstash/runner.rb:95) at logstash.runner.main(logstash/runner.rb:37) at logstash.runner.(root)(logstash/runner.rb:120)

    JIRA | 4 years ago | Dominic Talbot
    org.jruby.exceptions.RaiseException: (SystemExit) watchdog timeout at Gem::Specification.contains_requirable_file?(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:982) at (Anonymous).find_by_path(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:443) at (Anonymous).each(file:/home/logger/logstash/logstash-1.1.1-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/specification.rb:411)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    The file input randomly fails to register with an error requiring 'filewatch/tail' The problem feels like some sort of race condition loading as it works some of the time, throws the below error others: {noformat:borderStyle=solid|title=Error} $ sudo java -jar logstash-monolithic.jar agent -f /etc/logstash/collector-agent.conf -v LoadError: no such file to load -- filewatch/tail require at org/jruby/RubyKernel.java:1047 require at file:/usr/lib/logstash/logstash-1.1.0beta2-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32 require at file:/usr/lib/logstash/logstash-1.1.0beta2-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29 register at file:/usr/lib/logstash/logstash-1.1.0beta2-monolithic.jar!/logstash/inputs/file.rb:48 run_input at file:/usr/lib/logstash/logstash-1.1.0beta2-monolithic.jar!/logstash/agent.rb:486 run_with_config at file:/usr/lib/logstash/logstash-1.1.0beta2-monolithic.jar!/logstash/agent.rb:345 I, [2011-09-13T20:10:31.023000 #12925] INFO -- runner.class: Registering output amqp://logstash@logqueue1.mediachaperone.com:5672/raw_logs/topic/logqueue1 I, [2011-09-13T20:10:31.050000 #12925] INFO -- runner.class: Registering file input for /var/log/XXX/*_XXX.log:/var/log/XXX/XXX.log:/var/log/XXX/XXX.log:/var/log/XXX/XXX.log Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (SystemExit) no such file to load -- filewatch/tail at org.jruby.RubyThread.join(org/jruby/RubyThread.java:509) at LogStash::Agent.wait(file:/usr/lib/logstash/logstash-1.1.0beta2-monolithic.jar!/logstash/agent.rb:277) at logstash.runner.main(logstash/runner.rb:37) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603) at logstash.runner.main(logstash/runner.rb:37) at logstash.runner.(root)(logstash/runner.rb:90) {noformat} Here's the config (with a few values changed): {noformat:borderStyle=solid|title=collector-agent.conf} input { file { tags => ["prod"] type => "common" path => ["/var/log/app/*_app.log", "/var/log/app/console.log"] } file { tags => ["prod"] type => "app" path => ["/data/app-*/shared/log/prod*.log", "/data/app-*/shared/log/development.log"] } } output { amqp { name => "logqueue1" exchange_type => "topic" user => "logstash" port => 5672 host => "logqueue1" debug => false vhost => "/raw_logs" durable => false password => "logstash" } } {noformat}

    JIRA | 5 years ago | Michael Leinartas
    org.jruby.exceptions.RaiseException: (SystemExit) no such file to load -- filewatch/tail

    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) No such file or directory - file:/home/rei/dev/logstash-testing/data/unicode.data

      at org.jruby.RubyIO.write()
    2. JRuby Main Maven Artifact
      RubyIO.puts
      1. org.jruby.RubyIO.write(org/jruby/RubyIO.java:1400)
      2. org.jruby.RubyIO.write(org/jruby/RubyIO.java:2378)
      3. org.jruby.RubyIO.puts(org/jruby/RubyIO.java:2333)
      4. org.jruby.RubyIO.puts(org/jruby/RubyIO.java:2325)
      4 frames
    3. logstash
      runner.main
      1. logstash.runner.main(logstash/runner.rb:53)
      1 frame
    4. JRuby Main Maven Artifact
      RubyArray.each
      1. org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612)
      1 frame
    5. logstash
      runner.<init>
      1. logstash.runner.main(logstash/runner.rb:52)
      2. logstash.runner.<init>(root)
      2 frames