Logstash LoadError: no such file to load — i18n

J Denney
J Denney
Jul 15, 2015 · 1 min read
LoadError: no such file to load -- i18n
require at org/jruby/RubyKernel.java:1085
(root) at /usr/local/Cellar/logstash/1.4.2/libexec/lib/logstash/runner.rb:46

I received this error when trying to run logstash from within a Ruby script for automated integration test purposes. Turns out the ‘RUBYOPT’ environment variable was getting set, most likely by bundler, causing the issue. I simply cleared the env var before executing logstash:

RUBYOPT='' logstash -e '{config}'

or

unset RUBYOPT && logstash -e '{config}'

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store