# Logstash plugin offline packaging

**URL:** <https://discuss.elastic.co/t/logstash-plugin-offline-packaging/229130>\
**Category:** Logstash\
**Created:** [April 21, 2020, 8:51pm UTC](https://discuss.elastic.co/t/logstash-plugin-offline-packaging/229130 "2020-04-21T20:51:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![granier](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@granier](https://discuss.elastic.co/u/granier)\
**Post date:** [April 21, 2020, 8:51pm UTC](https://discuss.elastic.co/t/logstash-plugin-offline-packaging/229130/1 "2020-04-21T20:51:21Z")

</div>

Hi,

I try to package a logstash plugin for offlline deployment.

I use openjdk 10 2018-03-20 build 10+44 and logstash 6.8.3 that contains jruby jruby 9.2.7.0 (2.5.3) .

I use the follonwing commands :

- logstash-plugin prepare-offline-pack --output plugin\_jmx.zip --overwrite logstash-input-jmx

- logstash-plugin prepare-offline-pack --add-opens java.base/sun.nio.ch=org.jruby.core --output plugin\_jmx.zip --overwrite logstash-input-jmx

- logstash-plugin prepare-offline-pack --add-opens java.base/sun.nio.ch=org.jruby.core --output plugin\_jmx.zip --overwrite logstash-input-jmx

I always get the same error :  
"2020-04-21T22:49:49.110+02:00 [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch  
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable. \*\*\*\*"

How to solve a such issue ?

B. Granier

---

<div class="post-metadata">

**Author:** ![granier](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@granier](https://discuss.elastic.co/u/granier)\
**Post date:** [April 27, 2020, 12:35pm UTC](https://discuss.elastic.co/t/logstash-plugin-offline-packaging/229130/2 "2020-04-27T12:35:38Z")

</div>

Now i get the error "ERROR: Cannot create the offline archive, message: Cannot find plugins matching: `logstash-input-jmx`"

I tried on my personal computer without any proxy and my business computer ...

I looked at [rubygems.org/](http://rubygems.org/) and found the plugin here : [https://rubygems.org/gems/logstash-input-jmx/versions/2.0.2?locale=fr](https://rubygems.org/gems/logstash-input-jmx/versions/2.0.2?locale=fr)

---

<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:** [May 25, 2020, 12:35pm UTC](https://discuss.elastic.co/t/logstash-plugin-offline-packaging/229130/3 "2020-05-25T12:35:45Z")

</div>

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