I have been running logstash 1.5.4, elasticsearch 1.7.2 and kibana 4.1.2 for a couple of weeks without any issues. The environment is as follows:
$ uname -a
Linux picdsr000001076 2.6.32-504.16.2.el6.x86_64 #1 SMP Tue Mar 10 17:01:00 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
JAVA_HOME=/usr/java/jdk1.7.0_79
CLASSPATH=/usr/java/jdk1.7.0_79/lib
I come in this morning as get the following error.
NotImplementedError: block device detection unsupported or native support failed to load
blockdev? at org/jruby/RubyFileTest.java:67
device? at /local/0/deploy/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/helper.rb:67
_sincedb_write at /local/0/deploy/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/tail.rb:232
sincedb_write at /local/0/deploy/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/filewatch-0.6.5/lib/filewatch/tail.rb:205
teardown at /local/0/deploy/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-input-file-1.0.1/lib/logstash/inputs/file.rb:157
inputworker at /local/0/deploy/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 /local/0/deploy/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/pipeline.rb:203
start_input at /local/0/deploy/logstash-1.5.4/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/pipeline.rb:171
This has been working for weeks. The env files have NOT changed and I am completely stumped. I see the issue was resolved on Solaris but this is a Linux machine.
Have you seen https://github.com/elastic/logstash/issues/3127 and tried the workarounds there? I've used ln -s /lib/x86_64-linux-gnu/libcrypt.so.1 /usr/lib/x86_64-linux-gnu/libcrypt.so myself on an Ubuntu 14.04 system.
Thank you for the quick response. Yes. I had looked at it and did run the following test and see the library:
22:28:10/nypntsrv@picdsr000001076:/local/0/deploy/elk/logstash-1.5.4]$ strace -fo jruby.failing -e trace=file vendor/jruby/bin/jruby -e 'puts File.blockdev?("/")'
NotImplementedError: block device detection unsupported or native support failed to load
blockdev? at org/jruby/RubyFileTest.java:67
(root) at -e:1
22:28:15/nypntsrv@picdsr000001076:/local/0/deploy/elk/logstash-1.5.4]$ grep crypt.so jruby.failing
13745 open("/home/nypntsrv/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux/CORE/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("/usr/lib64/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("/usr/lib64/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("tls/x86_64/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("x86_64/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13745 open("//lib/libcrypt.so.1", O_RDONLY) = 3
13745 open("/lib64/libcrypt.so.1", O_RDONLY) = 3
13759 open("libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13759 open("//lib/libcrypt.so.1", O_RDONLY) = 3
13759 open("/lib64/libcrypt.so.1", O_RDONLY) = 3
13759 open("/lib/libcrypt.so.1", O_RDONLY) = 9
Is it possible that the highlighted sequence is incorrect?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.