# Error installing logstash codec plugin

**URL:** <https://discuss.elastic.co/t/error-installing-logstash-codec-plugin/291472>\
**Category:** Logstash\
**Created:** [December 10, 2021, 9:16pm UTC](https://discuss.elastic.co/t/error-installing-logstash-codec-plugin/291472 "2021-12-10T21:16:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucky7s](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucky7s/32/98721_2.png) [@lucky7s](https://discuss.elastic.co/u/lucky7s)\
**Post date:** [December 10, 2021, 9:16pm UTC](https://discuss.elastic.co/t/error-installing-logstash-codec-plugin/291472/1 "2021-12-10T21:16:59Z")

</div>

I downloaded the logstash-codec-leef plugin from github and successfully ran 'build install' using jruby. All rspec tests succeed.

When I try to install this plugin using 'sudo logstash-plugin install' I get the following error:

```auto
Using bundled JDK: /usr/share/logstash/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
RuntimeError:

        you might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command

no such file to load -- com/fasterxml/jackson/core/jackson-core/2.9.10/jackson-core-2.9.10 (LoadError)
              do_require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:356
             require_jar at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:265
  require_jar_with_block at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:307
             require_jar at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:264
             require_jar at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:363
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jars/classpath.rb:63
                 process at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jars/lock.rb:67
               each_line at org/jruby/RubyString.java:5718
                 process at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jars/lock.rb:53
                 process at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jars/classpath.rb:83
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jars/classpath.rb:59
      require_jars_lock! at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:207
                    each at org/jruby/RubyArray.java:1820
      require_jars_lock! at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:203
       require_jars_lock at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:246
             require_jar at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:257
             require_jar at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jar_dependencies.rb:363
                  <main> at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/jopenssl/load.rb:14
                 require at org/jruby/RubyKernel.java:974
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:83
                  <main> at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/openssl.rb:1
                 require at org/jruby/RubyKernel.java:974
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:83
                  <main> at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/security.rb:12
                 require at org/jruby/RubyKernel.java:974
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:83
                  <main> at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/package.rb:44
                 require at org/jruby/RubyKernel.java:974
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:83
                  <main> at /usr/share/logstash/lib/pluginmanager/util.rb:18
                 require at org/jruby/RubyKernel.java:974
                 require at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:83
                  <main> at /usr/share/logstash/lib/pluginmanager/main.rb:31

```

When I run lock\_jars, I get:

```auto
can not interpolated proxy info for /home/p30084/.m2/settings.xml
-- jar root dependencies --
[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /usr/local/jruby/lib/ruby/gems/shared/gems/ruby-maven-3.3.12/lib/ruby_maven.rb:38)
unsupported Java version "11", defaulting to 1.7
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.io.FilenoUtil (file:/home/p30084/.m2/repository/org/jruby/jruby-core/9.1.2.0/jruby-core-9.1.2.0.jar) to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of org.jruby.util.io.FilenoUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
sh: line 0: cd: uri:classloader:/: No such file or directory
      org.yaml:snakeyaml:1.26:compile
      com.fasterxml.jackson.core:jackson-core:2.9.10:compile
      com.fasterxml.jackson.core:jackson-annotations:2.9.10:compile
      com.fasterxml.jackson.core:jackson-databind:2.9.10.8:compile
      com.fasterxml.jackson.module:jackson-module-afterburner:2.9.10:compile
      org.bouncycastle:bcpkix-jdk15on:1.55:compile
      org.bouncycastle:bcprov-jdk15on:1.55:compile
      org.apache.httpcomponents:httpclient:[4.5.0,4.5.99999]:compile
      org.apache.httpcomponents:httpmime:[4.5.0,4.5.99999]:compile
      commons-logging:commons-logging:[1.2,1.99999]:compile
      commons-codec:commons-codec:[1.9,1.99999]:compile
      org.apache.httpcomponents:httpcore:[4.4.4,4.4.99999]:compile
      org.apache.logging.log4j:log4j-slf4j-impl:2.6.2:compile
      org.apache.logging.log4j:log4j-api:2.6.2:compile
      org.apache.logging.log4j:log4j-core:2.6.2:compile
      com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.1:compile

Jars.lock is up to date

```

I'm out of my league, can somebody please help?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 7, 2022, 9:17pm UTC](https://discuss.elastic.co/t/error-installing-logstash-codec-plugin/291472/2 "2022-01-07T21:17:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
