Open inetfuture opened 7 years ago
Works for me:
~/Downloads/logstash-5.4.3
❯ bin/logstash-plugin install --version 5.0.1 logstash-output-influxdb
Validating logstash-output-influxdb-5.0.1
Installing logstash-output-influxdb
Installation successful
Can you try installing without the version?
@inetfuture which logstash version are you using?
5.5.1
Hey @IngaFeick maybe you can help me, I can not install influxdb 5.0.1. I am using logstash version 5.5.0 running on windows 7 64-bit.
I tried a lot of installation methods, but I can not get it working.
I tried:
Is it at the right place in this issue or shell I open a new one?
C:\ELK-Stack\dev\logstash-5.5.0>bin\logstash-plugin.bat prepare-offline-pack logstash-output-influxdb
Bundler::VersionConflict: Bundler could not find compatible versions for gem "influxdb":
In Gemfile:
logstash-output-influxdb (= 5.0.1) java depends on influxdb (<= 0.3.99, >= 0.3) java
Could not find gem 'influxdb (<= 0.3.99, >= 0.3) java', which is required by gem 'logstash-output-influxdb (= 5.0.1) java', in any of the sources.
start at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:203
resolve at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:182
resolve at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:192
specs at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:132
specs_for at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:177
requested_specs at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:166
requested_specs at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/environment.rb:18
setup at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:13
setup at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler.rb:122
setup! at C:/ELK-Stack/dev/logstash-5.5.0/lib/bootstrap/bundler.rb:67
execute at C:/ELK-Stack/dev/logstash-5.5.0/lib/pluginmanager/prepare_offline_pack.rb:14
run at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
execute at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11
run at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
run at C:/ELK-Stack/dev/logstash-5.5.0/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132
(root) at C:\ELK-Stack\dev\logstash-5.5.0\lib\pluginmanager\main.rb:48
C:\ELK-Stack\dev\logstash-5.5.0>bin\logstash-plugin.bat install file:///C:/ELK-Stack/dev/data/plugins/logstash-output-influxdb-5.0.1.zip
ERROR: An error occured when installing the: file:///C:/ELK-Stack/dev/data/plugins/logstash-output-influxdb-5.0.1.zip, to have more information about the error add a DEBUG=1 before running the command., message: Bundler could not find compatible versions for gem "influxdb":
In Gemfile:
logstash-output-influxdb (= 5.0.1) java depends on
influxdb (<= 0.3.99, >= 0.3) java
Could not find gem 'influxdb (<= 0.3.99, >= 0.3) java', which is required by gem 'logstash-output-influxdb (= 5.0.1) java', in any of the sources.
C:\ELK-Stack\dev\logstash-5.5.0>bin\logstash-plugin.bat install logstash-output-
influxdb
Validating logstash-output-influxdb
Unable to download data from https://rubygems.org - SocketError: initialize: nam
e or service not known (https://rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-influxdb
C:\ELK-Stack\dev\logstash-5.5.0>bin\logstash-plugin.bat install C:/ELK-Stack/dev
/data/plugins/logstash-output-influxdb-5.0.1.gem
Validating C:/ELK-Stack/dev/data/plugins/logstash-output-influxdb-5.0.1.gem
Installing logstash-output-influxdb
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 4/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 5/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 6/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 7/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 8/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 9/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 10/10
Could not fetch specs from https://rubygems.org/
Too many retries, aborting, caused by Bundler::HTTPError
ERROR: Installation Aborted, message: Could not fetch specs from https://rubygems.org/
Hi, I have the same problem, I can't install logstash-output-plugin 5.0.4.
I'm runing logstash version 6.3.1 on CentOS 7 64-bit
Java version (java -version
):
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
i'm behind a proxy so I did:
export http_proxy=http://myproxy:myport
export https_proxy=http://myproxy:myport
export HTTP_PROXY=http://myproxy:myport
export HTTPS_PROXY=http://myproxy:myport
$ sudo bin/logstash-plugin install --local --no-verify /path/to/gem/logstash-output-influxdb-5.0.4.gem
Installing logstash-output-influxdb Plugin version conflict, aborting ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "influxdb": In Gemfile: logstash-output-influxdb (= 5.0.4) java depends on influxdb (<= 0.3.99, >= 0.3) java Could not find gem 'influxdb (<= 0.3.99, >= 0.3) java', which is required by gem 'logstash-output-influxdb (= 5.0.4) java', in any of the sources.
2. Normal way:
$ sudo bin/logstash-plugin install logstash-output-influxdb
Validating logstash-output-influxdb Unable to download data from https://rubygems.org - Errno::ECONNREFUSED: Connection refused - Failed to open TCP connection to api.rubygems.org:443 (Connection refused - connect(2) for "api.rubygems.org" port 443) (https://api.rubygems.org/latest_specs.4.8.gz) ERROR: Installation aborted, verification failed for logstash-output-influxdb
3. With `no-verify` flag:
$ sudo bin/logstash-plugin install --no-verify logstash-output-influxdb
Installing logstash-output-influxdb Error Bundler::HTTPError, retrying 1/10 Could not fetch specs from https://rubygems.org/ . . . Could not fetch specs from https://rubygems.org/ Error Bundler::HTTPError, retrying 10/10 Could not fetch specs from https://rubygems.org/ Too many retries, aborting, caused by Bundler::HTTPError ERROR: Installation Aborted, message: Could not fetch specs from https://rubygems.org/
I've found a workaround! :)
First, I've created a "handmade" logstash-offline-plugin.zip with the dependencies:
cd /my/path
mkdir logstash
cd logstash
wget https://rubygems.org/downloads/logstash-output-influxdb-5.0.4.gem
mkdir dependencies
cd /my/path/logstash/dependencies
wget https://rubygems.org/downloads/influxdb-0.3.17.gem
wget https://rubygems.org/downloads/json-1.8.6-java.gem
wget https://rubygems.org/downloads/stud-0.0.23.gem
cd /my/path
zip -r logstash-offline-plugins-handmade.zip logstash
Then, according to Logstash plugins documentation:
cd /path/to/logstash
sudo bin/logstash-plugin install file:///my/path/logstash-offline-plugins-handmade.zip