Hi,
I’m getting a Could not find plugin class error after installing the search-guard-ssl plugin. I’m installing it into the base docker image using docker. I searched and didn’t find anyone else that has this exact issue like I’m having. I assume I’m missing something in the instructions.
Here is my environment.
OS X - 10.11.4
Docker version 1.11.0, build 4dc5990
Elasticsearch Version: 2.3.1, Build: bd98092/2016-04-04T12:25:05Z, JVM: 1.8.0_72-internal
Here are the commands I’m running and the output from each command.
docker run -t -i elasticsearch /bin/bash
cd /usr/share/elasticsearch
bin/plugin install com.floragunn/search-guard-ssl/v2.3.1.8.1
→ Installing com.floragunn/search-guard-ssl/v2.3.1.8.1…
Trying https://download.elastic.co/com.floragunn/search-guard-ssl/search-guard-ssl-v2.3.1.8.1.zip …
Trying https://github.com/com.floragunn/search-guard-ssl/archive/v2.3.1.8.1.zip …
Trying https://github.com/com.floragunn/search-guard-ssl/archive/master.zip …
ERROR: failed to download out of all possible locations…, use --verbose to get detailed information
bin/plugin install floragunncom/search-guard-ssl/v2.3.1.8.1
→ Installing floragunncom/search-guard-ssl/v2.3.1.8.1…
Trying https://download.elastic.co/floragunncom/search-guard-ssl/search-guard-ssl-v2.3.1.8.1.zip …
Trying https://github.com/floragunncom/search-guard-ssl/archive/v2.3.1.8.1.zip …
Downloading …DONE
Verifying https://github.com/floragunncom/search-guard-ssl/archive/v2.3.1.8.1.zip checksums if available …
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
java.lang.RuntimePermission accessClassInPackage.sun.misc
-
java.lang.RuntimePermission getClassLoader
-
java.lang.RuntimePermission loadLibrary.*
-
java.lang.reflect.ReflectPermission suppressAccessChecks
-
java.security.SecurityPermission getProperty.ssl.KeyManagerFactory.algorithm
for descriptions of what these permissions allow and the associated risks.
Continue with installation? [y/N]y
Installed search-guard-ssl into /usr/share/elasticsearch/plugins/search-guard-ssl
/etc/init.d/elasticsearch start
…] Starting Elasticsearch Server:sysctl: setting key “vm.max_map_count”: Read-only file system
. ok
/etc/init.d/elasticsearch status
[FAIL] elasticsearch is not running … failed!
cat /var/log/elasticsearch/elasticsearch.log
ElasticsearchException[Could not find plugin class [com.floragunn.searchguard.ssl.SearchGuardSSLPlugin]]; nested: ClassNotFoundException[com.floragunn.searchguard.ssl.SearchGuardSSLPlugin];
at org.elasticsearch.plugins.PluginsService.loadPluginClass(PluginsService.java:465)
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:431)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:129)
at org.elasticsearch.node.Node.(Node.java:158)
at org.elasticsearch.node.Node.(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Caused by: java.lang.ClassNotFoundException: com.floragunn.searchguard.ssl.SearchGuardSSLPlugin
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.elasticsearch.plugins.PluginsService.loadPluginClass(PluginsService.java:463)
… 8 more