Plugin Logstash-codec-nmap updated 3/17/17

The Logstash-codec-nmap plugin was updated and merged with master this morning. It does not appear that when installing using the logstash plugin manager that the update is available to logstash as the install still fails using that method.

ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":
In snapshot (Gemfile.lock):
logstash-core-plugin-api (= 2.1.12)

I installed the new plugin version 0.0.17 using the manual install process here

However I get an error during the install informing me there is a compatibility issue with the logstash-core-pluging-api gem.

We have the current version of Logstash (5.2.2) installed from yum on a CentOS/7 box.

Any suggestions on how to get this working?

Here is the error message from the install of the 0.0.17 version of the plugin


[root@localhost logstash]# bin/logstash-plugin install --no-verify logstash-codec-nmap
Installing logstash-codec-nmap
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":
In snapshot (Gemfile.lock):
logstash-core-plugin-api (= 2.1.12)

In Gemfile:
logstash-devutils (>= 0) java depends on
logstash-core-plugin-api (<= 2.99, >= 2.0) java

logstash-input-s3 (>= 0) java depends on
  logstash-mixin-aws (>= 0) java depends on
    logstash-core-plugin-api (<= 2.99, >= 1.60) java


logstash-input-s3 (>= 0) java depends on
  logstash-mixin-aws (>= 0) java depends on
    logstash-core-plugin-api (<= 2.99, >= 1.60) java

logstash-codec-nmap (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-core-plugin-api (>= 0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash-core":
In snapshot (Gemfile.lock):
logstash-core (= 5.2.2)

In Gemfile:
logstash-core-plugin-api (>= 0) java depends on
logstash-core (= 5.2.2) java

logstash-codec-nmap (>= 0) java depends on
  logstash-core (< 3.0.0, >= 2.0.0) java

logstash-core (>= 0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
[root@localhost logstash]#


1 Like

I'm having exactly exactly the same problem on Ubuntu 16.04. I 'bundle update' and got this as well (not helpful to me):

# bundle update
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Fetching https://github.com/logstash-plugins/logstash-codec-nmap
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies............
Bundler could not find compatible versions for gem "logstash-core-plugin-api":
  In Gemfile:
    logstash-core-plugin-api java

    logstash-codec-nmap java was resolved to 0.0.17, which depends on
      logstash-core-plugin-api (<= 2.99, ~> 1.60) java

Some other info:

# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

# bin/logstash
logstash         logstash.lib.sh  logstash-plugin  

# bin/logstash --version
logstash 5.2.2
root@logstash1-dev:/usr/share/logstash# ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]

The plugin and the gem have been updated per this thread on git.

However it still does not install. I ran bundle update on the gemfile in /usr/share/logstash and there are dependency issues.


Bundler could not find compatible versions for gem "logstash-core-plugin-api":
In Gemfile:
logstash-core-plugin-api java

logstash-codec-nmap java was resolved to 0.0.17, which depends on
  logstash-core-plugin-api (<= 2.99, ~> 1.60) java

Could not find gem 'logstash-core-plugin-api (<= 2.99, ~> 1.60) java', which is
required by gem 'logstash-codec-nmap java', in any of the sources.


Does anyone know how to resolve this so that the nmap codec plugin will become usable again?

Thank you
Rick

EDIT: This works now. There's no issue for me anymore.

Confirmed - I've also retried this after the changes and release done apparently 23 hours ago. I uninstalled and then re-installed logstash completely using apt on Ubuntu 16.04.2 LTS and still get this:

root@management:/etc/ansible# ssh logstash1-dev
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-64-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Wed Mar 22 13:46:32 2017 from 10.10.1.1
root@logstash1-dev:~# cd /usr/share/logstash/
root@logstash1-dev:/usr/share/logstash# bin/logstash-plugin install logstash-codec-nmap
Validating logstash-codec-nmap
Installing logstash-codec-nmap
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":
  In snapshot (Gemfile.lock):
    logstash-core-plugin-api (= 2.1.12)

  In Gemfile:
    logstash-devutils (>= 0) java depends on
      logstash-core-plugin-api (<= 2.99, >= 2.0) java

[[snip]]

    logstash-input-s3 (>= 0) java depends on
      logstash-mixin-aws (>= 0) java depends on
        logstash-core-plugin-api (<= 2.99, >= 1.60) java

    logstash-codec-nmap (>= 0) java depends on
      logstash-core-plugin-api (~> 1.0) java

    logstash-core-plugin-api (>= 0) java

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash-core":
  In snapshot (Gemfile.lock):
    logstash-core (= 5.2.2)

  In Gemfile:
    logstash-core-plugin-api (>= 0) java depends on
      logstash-core (= 5.2.2) java

    logstash-codec-nmap (>= 0) java depends on
      logstash-core (< 3.0.0, >= 2.0.0) java

    logstash-core (>= 0) java

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

The Logstash-codec-nmap plugin now installs properly.

Thank you for fixing this issue
Rick

1 Like

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