I need to upgrade the logstash-input-s3 and logstash-output-s3 plugins on an environment disconnected from the internet. The offline server is running logstash v5.2.2.
Per the instructions here I installed logstash v5.2.2 on a machine with an internet connection, upgraded the two plugins, and ran the suggested command:
ERROR: An error occured when installing the: file:///tmp/logstash-offline-plugins-5.2.2.zip, to have more information about the error add a DEBUG=1 before running the command., message: You have requested:
stud = 0.0.23
The bundle currently has stud locked at 0.0.22.
Try running `bundle update stud`
The server does not have Ruby installed and is not connected to the internet. If I look in the ZIP file I can see the correct stud gem is included. I tried the same procedure with v5.6.8 in a dev environment and got similar results, albeit with different gems having trouble. What do I need to resolve this?
In this case the dependency called stud is a common dependency to many plugins.
The problem is that you are only updating 2 plugins (S3 input and S3 output) out of the list of plugins that have stud as a dependency, locked at 0.0.22 or 0.0.18.
On the offline LS install, remove all the plugins in the offline pack then try the install as before (this is why the backup) if there is still an error, restore from backup.
The absolute last thing to do is:
Zip up the offline installation
Copy the zip file to an online machine.
Update the s3 input and outputs
Zip it up again, copy the zip file back and unzip over the old one.
The rsync utility might be useful to keep an online and offline installation in sync as well.
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.