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

JIRA | Stephon Striplin | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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 | 5 years ago | Stephon Striplin
    org.jruby.exceptions.RaiseException: (SystemExit) No such file or directory - file:/home/rei/dev/logstash-testing/data/unicode.data

    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