logstash-plugins / logstash-output-file

Apache License 2.0
23 stars 53 forks source link

cannot install #93

Closed oprogramador closed 2 years ago

oprogramador commented 2 years ago

Logstash information:

Please include the following information:

  1. Logstash version (e.g. bin/logstash --version) 7.15.0
  2. Logstash installation source (e.g. built from source, with a package manager: DEB/RPM, expanded from tar or zip archive, docker) apt-get
  3. How is Logstash being run (e.g. as a service/service manager: systemd, upstart, etc. Via command line, docker/kubernetes) sudo systemctl restart logstash.service
  4. How was the Logstash Plugin installed sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-file

OS version (uname -a if on a Unix-like system): Linux pierre-ThinkPad-E590 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:

Steps to reproduce: Sometimes I get this:

⟩ sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-file
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.
Validating logstash-output-file
Installing logstash-output-file
Error Bundler::HTTPError, retrying 1/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 2/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 3/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 4/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 5/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 6/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 7/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 8/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 9/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Error Bundler::HTTPError, retrying 10/10
Could not reach host index.rubygems.org. Check your network connection and try again.
Too many retries, aborting, caused by Bundler::HTTPError
ERROR: Installation Aborted, message: Could not reach host index.rubygems.org. Check your network connection and try again.

or sometimes this:

⟩ sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-file
[sudo] password for pierre:             
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.
Validating logstash-output-file
Unable to download data from https://rubygems.org - SocketError: Failed to open TCP connection to rubygems.org:443 (initialize: name or service not known) (https://rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-file
oprogramador commented 2 years ago

Another time, it worked:

⟩ sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-file
[sudo] password for pierre:             
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.
Validating logstash-output-file
Installing logstash-output-file
Installation successful