We were trying to update logstash for 1.4.2 to 2.1.0 latest version.
We encounter below issues --
- /opt/logstash/bin/logstash: line 22: dirname: command not found
/opt/logstash/bin/logstash: line 22: //bin/logstash.lib.sh: No such file or directory
-- To resolve this we have edited LOGSTASH_HOME with correct value in logstash.lib.sh & logstash.
- /opt/logstash/bin/logstash.lib.sh: line 2: dirname: command not found
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME
This ERROR is because of below message we observed in configtest --
/opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/logstash.conf
Unable to find JRuby.
If you are a user, this is a bug.
If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
We are expecting help from this forum to resolve this.
As above update giving us issues we have tried with 1.4.2 to 1.5.1, 1.5.1 to 1.5.3, 1.5.3 to 2.1.0 .. in each update we were faced this issue.
Issue is not observed when we downgrade to logstash 1.4.2 [ original version ].
Appreciate immediate help.