Error while installing jdbc static logstash plug-in


(Rohit J) #1

Hi, I'm not able to install logstash jdbc static plug-in... While installing it gives message.. fetching specs from http://rubygems.org does 10 attempts and then fails. I even downloaded the plug-in,built it and then tried to install but no luck. I also changed the source in gemspec to a local site before buildong but no luck. Can you please help? Thanks in advance..


(Guy Boertje) #2

Please paste the console output of the online install here (the part showing the 10 attempts).


(Rohit J) #3

here is the output:
Installing logstash-filter-jdbc_static
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 4/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 5/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 6/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 7/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 8/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 9/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 10/10
Could not fetch specs from http://rubygems.org/
Too many retries, aborting, caused by Bundler::HTTPError
ERROR: Installation Aborted, message: Could not fetch specs from http://rubygems.org/


(Guy Boertje) #4

Did you try this again or is the above from the previous attempt?


(Rohit J) #5

Tried it again


(Guy Boertje) #6

Is rubygems.org blocked by your DNS resolver?


(Rohit J) #7

No. I can access it via internet.


(Guy Boertje) #8

One the same machine?

A download and manual install might also fail if the install process is trying to get dependencies from rubygems.org as well. Try a ping to that domain from the LS machine.

Logstash has an offline plugin install mechanism. On a different machine with LS installed (at the same version) that has full access one prepares an off-line package (zip file, plugin with deps) that is then copied to the machine without full access and installed. https://www.elastic.co/guide/en/logstash/7.0/offline-plugins.html


(Rohit J) #9

I can access rubygems.org from the same machine. I'll check about offline packages and get back to you. Thanks