filewatch gem appears to require inotify, which is not available on freebsd, so running the monolithic jar fails

Description

$ java -jar logstash-1.0.17-monolithic.jar agent -f logstash.conf – web --backend 'lasticsearch:///?local'
log4j:WARN No appenders could be found for logger (org.elasticsearch.node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
file:/root/logstash-1.0.17-monolithic.jar!/logstash/time.rb:12 warning: already initialized constant ISO8601
FFI::NotFoundError: Function 'inotify_init' not found in [libc.so]
attach_function at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/ffi/library.rb:154
each at org/jruby/RubyArray.java:1603
attach_function at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/ffi/library.rb:150
CInotify at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/inotify/fd.rb:17
FD at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/inotify/fd.rb:13
(root) at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/inotify/fd.rb:10
require at org/jruby/RubyKernel.java:1038
require at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
(root) at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/inotify/fd.rb:2
require at org/jruby/RubyKernel.java:1038
require at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
(root) at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/watch.rb:3
require at org/jruby/RubyKernel.java:1038
require at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
(root) at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/watchglob.rb:3
require at org/jruby/RubyKernel.java:1038
require at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
(root) at file:/root/logstash-1.0.17-monolithic.jar!/gems/filewatch-0.2.5/lib/filewatch/tailglob.rb:2
require at org/jruby/RubyKernel.java:1038
require at file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
register at file:/root/logstash-1.0.17-monolithic.jar!/logstash/file/manager.rb:35
run_input at file:/root/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:482
run_with_config at file:/root/logstash-1.0.17-monolithic.jar!/logstash/agent.rb:345
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232
Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (SystemExit) Function 'inotify_init' not found in [libc.so]
at Module.FileUtils(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:87)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:85)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/1.8/fileutils.rb:3)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/gems/rack-1.3.0/lib/rack/utils.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/gems/rack-1.3.0/lib/rack/request.rb:3)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/gems/rack-1.3.0/lib/rack/showexceptions.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/gems/sinatra-1.2.6/lib/sinatra/showexceptions.rb:6)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:32)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/gems/sinatra-1.2.6/lib/sinatra/base.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/logstash/web/helpers/require_param.rb:3)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at #<Class:0x1451415c8>.(root)(file:/root/logstash-1.0.17-monolithic.jar!/logstash/web/controllers/api_v1.rb:14)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(file:/root/logstash-1.0.17-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rub
ygems/custom_require.rb:29)
at LogStash::Web::Runner.run(file:/root/logstash-1.0.17-monolithic.jar!/logstash/web/server.rb:18)
at logstash.runner.run(logstash/runner.rb:42)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:268)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:228)
at logstash.runner.run(logstash/runner.rb:53)
at logstash.runner.main(logstash/runner.rb:13)
at logstash.runner.(root)(logstash/runner.rb:70)

Gliffy Diagrams

Activity

Show:

Tim Kersten October 6, 2011 at 11:42 PM

Thanks

Jordan Sissel October 6, 2011 at 10:52 PM

Marking fixed. Feel free to open tickets on any other issues you run across

Tim Kersten October 6, 2011 at 10:50 PM

It works like a charm! Thanks

Jordan Sissel October 6, 2011 at 10:08 PM

The next release of logstash (release soon) uses the new version of filewatch which no longer uses inotify (inotify is buggy anyway).

You are welcome to use the beta of 1.1.0 here:

http://semicomplete.com/files/logstash/logstash-1.1.0beta4-monolithic.jar

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Created October 6, 2011 at 9:52 PM
Updated April 19, 2013 at 8:19 PM
Resolved October 6, 2011 at 10:52 PM