# Unable to add logstash-input-google\_cloud\_storage plugin

**URL:** <https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542>\
**Category:** Logstash\
**Created:** [April 23, 2020, 8:08pm UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542 "2020-04-23T20:08:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![saroja](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@saroja](https://discuss.elastic.co/u/saroja)\
**Post date:** [April 23, 2020, 8:08pm UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542/1 "2020-04-23T20:08:57Z")

</div>

I want to use logstash-input-google\_cloud\_storage plugin in one of our requirrement. I am using logstash-7.6 in windows 10 machine.

I followed the steps below to install the gem file, but no luck. Getting error during execution of gem install command.

Used command \> gem install logstash-input-google\_cloud\_storage

Find error like Errno::ESRCH: No such process - No message available  
chmod at org/jruby/RubyFile.java:646

Finally download the gem file and put it into local path and execute the command, and it throws error like above one.

> bin/logstash-plugin install C:/Users/ThinkPad/local-gem/logstash-input-google\_cloud\_storage-0.10.0-java.gem

ELK\logstash-7.6.0\bin\>logstash-plugin install logstash-input-google\_cloud\_storage  
Validating logstash-input-google\_cloud\_storage  
Installing logstash-input-google\_cloud\_storage  
Error Bundler::InstallError, retrying 1/10  
Errno::ESRCH: No such process - No message available  
An error occurred while installing logstash-input-google\_cloud\_storage (0.11.1), and Bundler cannot continue.  
Make sure that `gem install logstash-input-google_cloud_storage -v '0.11.1' --source 'https://rubygems.org/'` succeeds before bundling.

After that , I was installed ruby 2.6 and try to execute gem command, still the same issue persists.Ruby version is  
ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]

Finally Checked the gem list and updated it using the command

> gem update --system

But I couldn't find any logstash gem there.

Please suggest, whether i am following correct procedure to add google storage plugin or not.

Thank you.

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 24, 2020, 12:55am UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542/2 "2020-04-24T00:55:08Z")

</div>

Hello,

I do not think you need a ruby environment to install the plugin.

Open a Windows CMD prompt and ensure you `JAVA_HOME` is defined.

Then go to the Logstash path and run:

```auto
Z:\Downloads\logstash-7.6.0\bin>logstash-plugin install logstash-input-google_cloud_storage
Validating logstash-input-google_cloud_storage
Installing logstash-input-google_cloud_storage
Installation successful

```

The procedure is detailed [here](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-google_cloud_storage.html).

I think your `ruby` environment is somehow conflictin with Logstash?

---

<div class="post-metadata">

**Author:** ![saroja](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@saroja](https://discuss.elastic.co/u/saroja)\
**Post date:** [April 25, 2020, 10:12am UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542/3 "2020-04-25T10:12:12Z")

</div>

Hi,

Thank you for your response. The error is showing like below.

[2020-04-24T18:06:36,347][ERROR][logstash.plugins.registry] Problems loading a plugin with {:type=\>"input", :name=\>"google\_cloud\_storage", :path=\>"logstash/inputs/google\_cloud\_storage", :error\_message=\>"\n\n\tyou 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\n\nno such file to load -- com/google/apis/google-api-services-storage/v1-rev20181109-1.27.0/google-api-services-storage-v1-rev20181109-1.27.0 (LoadError)", :error\_class=\>RuntimeError, :error\_backtrace=\>["uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jar\_dependencies.rb:356:in `do_require'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jar_dependencies.rb:265:in `block in require\_jar'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jar\_dependencies.rb:307:in `require_jar_with_block'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jar_dependencies.rb:264:in `require\_jar'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/lib/bootstrap/patches/jar\_dependencies.rb:6:in `require_jar'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-google_cloud_storage-0.11.1-java/lib/logstash-input-google_cloud_storage_jars.rb:12:in `'", "org/jruby/RubyKernel.java:978:in `require'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-google\_cloud\_storage-0.11.1-java/lib/logstash/inputs/cloud\_storage/client.rb:5:in `<main>'", "org/jruby/RubyKernel.java:978:in `require'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-google_cloud_storage-0.11.1-java/lib/logstash/inputs/google_cloud_storage.rb:6:in `'", "org/jruby/RubyKernel.java:978:in `require'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/vendor/bundle/jruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/plugins/registry.rb:191:in `legacy_lookup'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/plugins/registry.rb:166:in `block in lookup'", "org/jruby/ext/thread/Mutex.java:164:in `synchronize'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/plugins/registry.rb:162:in `lookup'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/plugins/registry.rb:216:in `lookup_pipeline_plugin'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/plugin.rb:144:in `lookup'", "org/logstash/plugins/PluginFactoryExt.java:181:in `plugin'", "org/logstash/execution/JavaBasePipelineExt.java:60:in `initialize'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/java\_pipeline.rb:27:in `initialize'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/pipeline_action/create.rb:36:in `execute'", "C:/Users/ThinkPad/Saroj/ELK/logstash-7.6.0/logstash-core/lib/logstash/agent.rb:326:in `block in converge\_state'"]}

Please advice.

---

<div class="post-metadata">

**Author:** ![saroja](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@saroja](https://discuss.elastic.co/u/saroja)\
**Post date:** [April 25, 2020, 11:48am UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542/4 "2020-04-25T11:48:27Z")

</div>

Hi,

Logstash-7.6 will support jdk 1.8 or not. I have installed jdk 11.0.7. still same issue to download the plugin.Its showing some ruby gem error.

---

<div class="post-metadata">

**Author:** ![saroja](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@saroja](https://discuss.elastic.co/u/saroja)\
**Post date:** [April 25, 2020, 11:52am UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542/5 "2020-04-25T11:52:11Z")

</div>

Hi,

Please find the step, i have followed here

C:\Users\ThinkPad\>echo %JAVA\_HOME%  
C:\Program Files\Java\jdk-11.0.7

C:\Users\ThinkPad\>cd C:\Users\ThinkPad\Saroj\ELK\ELK\_7.6\logstash-7.6.0\bin

C:\Users\ThinkPad\Saroj\ELK\ELK\_7.6\logstash-7.6.0\bin\>logstash-plugin install logstash-input-google\_cloud\_storage  
2020-04-25T12:50:19.805+01: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.  
WARNING: An illegal reflective access operation has occurred  
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/C:/Users/ThinkPad/Saroj/ELK/ELK\_7.6/logstash-7.6.0/vendor/jruby/lib/ruby/stdlib/jopenssl.jar) to constructor java.security.cert.CertificateFactory(java.security.cert.CertificateFactorySpi,java.security.Provider,java.lang.String)  
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper  
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  
Validating logstash-input-google\_cloud\_storage  
Installing logstash-input-google\_cloud\_storage  
Error Bundler::InstallError, retrying 1/10  
Errno::ESRCH: No such process - No message available  
An error occurred while installing logstash-input-google\_cloud\_storage (0.11.1), and Bundler cannot continue.  
Make sure that `gem install logstash-input-google_cloud_storage -v '0.11.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:  
logstash-input-google\_cloud\_storage

Please suggest

---

<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 23, 2020, 11:52am UTC](https://discuss.elastic.co/t/unable-to-add-logstash-input-google-cloud-storage-plugin/229542/6 "2020-05-23T11:52:17Z")

</div>

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