Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upstream "sinatra" package incompatibility: An unexpected error occurred! {:error=>#<ArgumentError: wrong number of arguments (given 3, expected 1..2)> #78

Closed
mmguero opened this issue Feb 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working logstash Relating to Malcolm's use of Logstash

Comments

@mmguero
Copy link
Collaborator

mmguero commented Feb 17, 2022

Logstash no longer starts as one of the plugins we're installing pulls an updated version 2.2.0 of the sinatra package causes the error message on startup:

logstash_1           | [2022-02-17T03:25:28,313][FATAL][logstash.runner          ] An unexpected error occurred! {:error=>#<ArgumentError: wrong number of arguments (given 3, expected 1..2)>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/api/modules/base.rb:43:in `initialize'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb:1537:in `new'", "/usr/share/logstash/logstash-core/lib/logstash/api/rack_app.rb:113:in `block in app'", "org/jruby/RubyBasicObject.java:2622:in `instance_eval'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/api/rack_app.rb:101:in `app'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:123:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:74:in `from_settings'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:76:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:533:in `create_agent'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:424:in `execute'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:68:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:291:in `run'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:133:in `run'", "/usr/share/logstash/lib/bootstrap/environment.rb:93:in `<main>'"]}
logstash_1           | [2022-02-17T03:25:28,315][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
logstash_1           | org.jruby.exceptions.SystemExit: (SystemExit) exit
logstash_1           | 	at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
logstash_1           | 	at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
logstash_1           | 	at usr.share.logstash.lib.bootstrap.environment.<main>(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]
logstash_1           | 2022-02-17 03:25:28,381 INFO exited: logstash (exit status 1; not expected)

See elastic/logstash#13777 and jruby/jruby#7102

In the meantime we need to edit Logstash's Gemfile.lock to use the unaffected previous 2.1.0 version.

@mmguero mmguero added bug Something isn't working logstash Relating to Malcolm's use of Logstash labels Feb 17, 2022
@mmguero mmguero self-assigned this Feb 17, 2022
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Feb 17, 2022
@mmguero
Copy link
Collaborator Author

mmguero commented Feb 17, 2022

closed (with workaround for now) will monitor upstream bug

@mmguero mmguero closed this as completed Feb 17, 2022
mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Feb 17, 2022
… logstash will start up up; use --preserve flag implemented in elastic/logstash#5224
mmguero added a commit to cisagov/Malcolm that referenced this issue Feb 24, 2022
mmguero added a commit to cisagov/Malcolm that referenced this issue Feb 24, 2022
… logstash will start up up; use --preserve flag implemented in elastic/logstash#5224
mmguero added a commit that referenced this issue Feb 24, 2022
This was referenced Feb 24, 2022
@mmguero mmguero added this to Malcolm Oct 14, 2024
@mmguero mmguero moved this to Released in Malcolm Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working logstash Relating to Malcolm's use of Logstash
Projects
Status: Released
Development

No branches or pull requests

1 participant