Coder Social home page Coder Social logo

Comments (4)

peelman avatar peelman commented on August 14, 2024 1

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.

peelman avatar peelman commented on August 14, 2024

Just encountered the same problem when upgrading to 22.04.

from logstash-output-slack.

flepoutre avatar flepoutre commented on August 14, 2024

@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.

flepoutre avatar flepoutre commented on August 14, 2024

It works if we updated mime-types.

from logstash-output-slack.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.