Installation error

I was trying to install logstash for development contribution. While I was trying to see if it is installed properly, I ran

 bin/logstash -e 'input { stdin { } } output { stdout {} }'

I am now getting the following error:

An unexpected error occurred! {:error=>#<ArgumentError: Setting "xpack.geoip.downloader.enabled" doesn't exist. Please check if you haven't made a typo.>, :backtrace=>["/home/sirius/logstash/logstash-core/lib/logstash/settings.rb:104:in `get_setting'", "/home/sirius/logstash/logstash-core/lib/logstash/settings.rb:136:in `get_value'", "/home/sirius/logstash/x-pack/lib/geoip_database_management/manager.rb:52:in `initialize'", "org/jruby/RubyClass.java:915:in `new'", "/home/sirius/logstash/vendor/jruby/lib/ruby/stdlib/singleton.rb:127:in `block in instance'", "org/jruby/ext/thread/Mutex.java:171:in `synchronize'", "/home/sirius/logstash/vendor/jruby/lib/ruby/stdlib/singleton.rb:125:in `instance'", "/home/sirius/logstash/logstash-core/lib/logstash/agent.rb:633:in `initialize_geoip_database_metrics'", "/home/sirius/logstash/logstash-core/lib/logstash/agent.rb:97:in `initialize'", "org/jruby/RubyClass.java:949:in `new'", "/home/sirius/logstash/logstash-core/lib/logstash/runner.rb:549:in `create_agent'", "/home/sirius/logstash/logstash-core/lib/logstash/runner.rb:431:in `execute'", "/home/sirius/logstash/vendor/bundle/jruby/3.1.0/gems/clamp-1.0.1/lib/clamp/command.rb:68:in `run'", "/home/sirius/logstash/logstash-core/lib/logstash/runner.rb:293:in `run'", "/home/sirius/logstash/vendor/bundle/jruby/3.1.0/gems/clamp-1.0.1/lib/clamp/command.rb:133:in `run'", "/home/sirius/logstash/lib/bootstrap/environment.rb:89:in `<main>'"]}
[2024-05-02T01:12:12,591][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:912) ~[jruby.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:871) ~[jruby.jar:?]
        at home.sirius.logstash.lib.bootstrap.environment.<main>(/home/sirius/logstash/lib/bootstrap/environment.rb:90) ~[?:?]

Related to this issue?

1 Like

I think the issue occurs when setting OSS to true? I will try by setting it to false.

Thanks! I would create an issue on github for this as this OSS step is an issue