Error while installing jdbc static logstash plug-in

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

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

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/

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

Tried it again

Is rubygems.org blocked by your DNS resolver?

No. I can access it via internet.

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

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

1 Like

Hi @rohitjejurikar were you able to install the plugin.

I tried building the gem file but the filter was unable to find the derby jar files.

Hi,

Yes. I was able to install the plug-in. The proxy server was blocking the installation. After we enabled rubygems.org I could install the plug-in.

Okay, we also have successfully installed the plugin, however, we are using posrgres as loader db. And the version of jar we are using is not compatible with the jar we are using.

Which db are you using? And is there some page or documentation where its written which jar to use?

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