VenRaaS / elk

0 stars 0 forks source link

NotImplementedError: stat.st_gid unsupported or native support failed to load #3

Open Eric0329 opened 6 years ago

Eric0329 commented 6 years ago

Ubuntu 14.04.4 LTS wiht Java version "1.8.0_101"

NotImplementedError: stat.st_gid unsupported or native support failed to load
             gid at org/jruby/RubyFileStat.java:247
    atomic_write at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/helper.rb:45
  _sincedb_write at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/tail.rb:235
   sincedb_write at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/tail.rb:205
        teardown at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-input-file-1.0.1/lib/logstash/inputs/file.rb:157
     inputworker at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/pipeline.rb:203
     synchronize at org/jruby/ext/thread/Mutex.java:149
     inputworker at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/pipeline.rb:203
     start_input at /home/elk/elk/logstash/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/pipeline.rb:171
Adding pattern {"NAGIOS_TYPE_SERVICE_ALERT"=>"SERVICE ALERT", :level=>:info}
The error reported is: 
  Bad file descriptor - Bad file descriptor
Eric0329 commented 6 years ago

https://github.com/logstash-plugins/logstash-input-file/issues/43#issuecomment-138235296

Solved with by command:

ln -s /lib/x86_64-linux-gnu/libcrypt.so.1 /usr/lib/x86_64-linux-gnu/libcrypt.so