Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline Install jmx4r dependency #18

Open
bwgriffith opened this issue Mar 28, 2016 · 3 comments
Open

Offline Install jmx4r dependency #18

bwgriffith opened this issue Mar 28, 2016 · 3 comments

Comments

@bwgriffith
Copy link

Trying to install offline and it seems to be looking for jmx4r. When I successfully install that locally first via: <logstash_dir>/vendor/jruby/bin/jruby -S gem install --local jmx4r-0.1.4.gem I continue to get the dependency error on the local install:

bin/plugin install --local logstash-input-jmx-2.0.2.gem
Validating logstash-input-jmx-2.0.2.gem
Installing logstash-input-jmx
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "jmx4r":
In Gemfile:
logstash-input-jmx (= 2.0.2) java depends on
jmx4r (>= 0) java
Could not find gem 'jmx4r (>= 0) java', which is required by gem 'logstash-input-jmx (= 2.0.2) java', in any of the sources.

@codingphil
Copy link

Any clues about the cause of the problem?

@acchen97
Copy link

What version of Logstash are you using?

We introduced a new offline plugin management workflow back in 5.2. Please take a look and try it out. https://www.elastic.co/guide/en/logstash/current/offline-plugins.html

@codingphil
Copy link

OK. Sorry my mistake.

I did the first step of "Running your unpublished Plugin in Logstash" (editing the gemfile) forgot to call
bin/logstash-plugin install --no-verify
and started logstash.

Then the error mentioned in the original issue description occurred.

After calling
bin/logstash-plugin install --no-verify
in the plugin dir it worked fine.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants