Hello,
Since I performed an offline installation of multiple packages (The installation itself did not throw any errors) I noticed that Logstash crashes at startup.
When I check the service logs, I get as followed:
Mar 22 16:26:42 gmpvlt0159 systemd[1]: logstash.service holdoff time over, scheduling restart.
Mar 22 16:26:42 gmpvlt0159 systemd[1]: Started logstash.
Mar 22 16:26:42 gmpvlt0159 systemd[1]: Starting logstash...
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: Errno::ENOENT: No such file or directory - /usr/share/logstash/vendor/bundle/jruby/1.9/specifications/ffi-1.9.17-java.gemspec
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: initialize at org/jruby/RubyFile.java:370
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: open at org/jruby/RubyIO.java:1197
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: open at org/jruby/RubyKernel.java:325
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: data at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/stub_specification.rb:75
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: valid? at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/stub_specification.rb:178
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each_stub at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:731
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each_gemspec at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:723
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each at org/jruby/RubyArray.java:1613
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each_gemspec at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:722
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each at org/jruby/RubyArray.java:1613
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each_gemspec at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:721
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: each_stub at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:729
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: stubs at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:748
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: find_inactive_by_path at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/specification.rb:936
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: try_activate at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems.rb:187
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: require at /usr/share/logstash/vendor/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:126
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: setup! at /usr/share/logstash/lib/bootstrap/bundler.rb:54
Mar 22 16:26:45 gmpvlt0159 logstash[34026]: (root) at /usr/share/logstash/lib/bootstrap/environment.rb:67
Mar 22 16:26:45 gmpvlt0159 systemd[1]: logstash.service: main process exited, code=exited, status=1/FAILURE
Mar 22 16:26:45 gmpvlt0159 systemd[1]: Unit logstash.service entered failed state.
Mar 22 16:26:45 gmpvlt0159 systemd[1]: logstash.service failed.
Mar 22 16:26:45 gmpvlt0159 systemd[1]: logstash.service holdoff time over, scheduling restart.
Mar 22 16:26:45 gmpvlt0159 systemd[1]: Started logstash.
Mar 22 16:26:45 gmpvlt0159 systemd[1]: Starting logstash...
The strange part is that if I search the folder the file is there:
root@testserver:/etc/logstash/conf.d# ll /usr/share/logstash/vendor/bundle/jruby/1.9/specifications |grep ffi
-rw-rw-r-- 1 logstash logstash 625 Feb 24 18:47 ffi-1.9.17-java.gemspec
Does someone know how I can fix this? I searched the internet but did not find a thing about it.
Best regards,
Carlos Soares.