Comments (4)
For reference, using @odlevakp's method in #17 I was able to modify a local download's gemspec, build the gem myself, after editing:
s.required_ruby_version = '>=2'
and then the install completed successfully. The root of the problem seems to center around Ubuntu 22.04 shipping with ruby3.
from logstash-output-slack.
Just encountered the same problem when upgrading to 22.04.
from logstash-output-slack.
@peelman thanks for the workaround.
With the workaround I can install the plugin but after when I starting logstash I have this error :
[2023-09-21T10:51:16,228][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SyntaxError) /usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/mime-types-2.6.2/lib/mime/types/logger.rb:26: _1 is reserved for numbered parameter
def initialize(_1, _2 = nil, _3 = nil)
org.jruby.exceptions.SyntaxError: (SyntaxError) /usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/mime-types-2.6.2/lib/mime/types/logger.rb:26: _1 is reserved for numbered parameter
def initialize(_1, _2 = nil, _3 = nil)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1057) ~[jruby.jar:?]
at RUBY.
(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/mime-types-2.6.2/lib/mime/types/deprecations.rb:3) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1057) ~[jruby.jar:?]
at RUBY.(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/mime-types-2.6.2/lib/mime/types.rb:3) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1057) ~[jruby.jar:?]
at RUBY.(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/rest-client-1.8.0/lib/restclient/request.rb:2) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1057) ~[jruby.jar:?]
at RUBY.(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/rest-client-1.8.0/lib/restclient.rb:10) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1057) ~[jruby.jar:?]
at RUBY.(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/rest-client-1.8.0/lib/rest-client.rb:2) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1057) ~[jruby.jar:?]
at RUBY.register(/usr/share/logstash/vendor/local_gems/2c747c21/logstash-output-slack-2.2.0/lib/logstash/outputs/slack.rb:32) ~[?:?]
at org.logstash.config.ir.compiler.AbstractOutputDelegatorExt.register(org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:69) ~[logstash-core.jar:?]
at RUBY.register_plugins(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:237) ~[?:?]
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1987) ~[jruby.jar:?]
at RUBY.register_plugins(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:236) ~[?:?]
at RUBY.maybe_setup_out_plugins(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:610) ~[?:?]
at RUBY.start_workers(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:249) ~[?:?]
at RUBY.run(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:194) ~[?:?]
at RUBY.start(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:146) ~[?:?]
from logstash-output-slack.
It works if we updated mime-types.
from logstash-output-slack.
Related Issues (11)
- Slack output breaks when there are linebreaks in the attachments' fields HOT 1
- Logstash stopped processing because of an error: (SystemExit) exit HOT 2
- Getting Error While installing plugin in logstash-7.0.1 HOT 13
- Any plans to support newer versions?
- Is this project essentially dead?
- Unable to install in **Logstash 7.8.0**
- Unable to insert new lines in format field for message formatting HOT 2
- Logstash 5.0 support HOT 6
- Attachment fields do not have replaced event variables HOT 3
- After installing plugin, Logstash cannot be viewed from Kibana
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logstash-output-slack.