Skip to content

JRuby 1.7.11 (bundled with LogStash v. 1.4.1) fails on FreeBSD 10.0 with NotImplementedError: stat.st_dev unsupported or native support failed to load #1754

@emcrisostomo

Description

@emcrisostomo

JRuby 1.7.11 fails on FreeBSD 10.0 with NotImplementedError: stat.st_dev unsupported or native support failed to load. This version is bundled with LogStash v. 1.4.1 and I haven't tried others. However, since this is a long standing issue (as explained below), I guess other JRuby versions might be affected.

The complete error dumped to the console is the following:

NotImplementedError: stat.st_dev unsupported or native support failed to load
       dev_major at org/jruby/RubyFileStat.java:190
  _discover_file at /opt/logstash-1.4.1/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:140
            each at org/jruby/RubyArray.java:1613
  _discover_file at /opt/logstash-1.4.1/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:122
           watch at /opt/logstash-1.4.1/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/watch.rb:34
            tail at /opt/logstash-1.4.1/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filewatch/tail.rb:58
             run at /opt/logstash-1.4.1/lib/logstash/inputs/file.rb:130
            each at org/jruby/RubyArray.java:1613
             run at /opt/logstash-1.4.1/lib/logstash/inputs/file.rb:130
     inputworker at /opt/logstash-1.4.1/lib/logstash/pipeline.rb:163
     start_input at /opt/logstash-1.4.1/lib/logstash/pipeline.rb:157

This error can be reproduced in FreeBSD 10.0. I initially opened one issue on LogStash's issue tracker (very similar to another one affecting Solaris) but it seems a JRuby issue instead.

Thank you very much for looking into this.

Cheers,
-- Enrico

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions