Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578954 - app-admin/logstash-bin-2.3.0 doesn't start, init script says "Configuration error."
Summary: app-admin/logstash-bin-2.3.0 doesn't start, init script says "Configuration e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-03 19:13 UTC by Karl-Johan Karlsson
Modified: 2016-04-12 08:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2016-04-03 19:13:23 UTC
After upgrading to app-admin/logstash-bin-2.3.0, trying to run the init script results in this error message:

# /etc/init.d/logstash start
 * Checking your configuration ...
Sending logstash logs to /var/log/logstash/logstash.log.
 * Configuration error. Please fix your configuration files.   [ !! ]
 * ERROR: logstash failed to start

The log file (/var/log/logstash/logstash.log in this case) says:

{:timestamp=>"2016-04-03T20:52:35.449000+0200", :message=>"An unexpected error occurred!", :error=>#<NoMethodError: undefined method `config_valid?' for LogStash::Pipeline:Class>, :class=>"NoMethodError", :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.0-java/lib/logstash/agent.rb:169:in `execute'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.0-java/lib/logstash/runner.rb:94:in `run'", "org/jruby/RubyProc.java:281:in `call'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.0-java/lib/logstash/runner.rb:99:in `run'", "org/jruby/RubyProc.java:281:in `call'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/task.rb:24:in `initialize'"], :level=>:warn}

This has already been found and fixed upstream: https://github.com/elastic/logstash/issues/4933

The issue is that running in the "--configtest" mode doesn't work in 2.3.0. Since I knew I had a working config, I worked around the problem by changing the init script so that instead of running "${command} ${command_args} --configtest" the init script just runs "true".

Since it seems 2.3.0 has no chance of working at all with Gentoo's init script, perhaps that version should be masked in anticipation of a fixed 2.3.1?
Comment 1 Patrick Lauer gentoo-dev 2016-04-05 10:11:57 UTC
2.3.0 is masked for now, waiting for 2.3.1 release
Comment 2 Tomáš Mózes 2016-04-12 08:14:23 UTC
2.3.1 in tree, thanks for reporting.