ElasticSearch plugins: "Failed to resolve config path" error ElasticSearch plugins: "Failed to resolve config path" error elasticsearch elasticsearch

ElasticSearch plugins: "Failed to resolve config path" error


It is not resolve of question. But i resolved my problem.

Script in /usr/share/elasticsearch/bin/plugin generate bash-command and run it. I edited this file. It printed this command by echo instead running it. I copied this command and ran it from bush terminal. And it ran correctly.

I don't know why but it work. May be it will be helpful for someone.


I was stuck with the same problem, too -- 2016, September. Turned out, this problem occurs with an old version of elastic search (i.e. 1.7.3) which is in the repos for Ubuntu. Use the current one (which is recommended anyway) and you should not get this error.

To install the current one (writing this, it is version 2.4) follow these steps:

wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.listsudo apt-get update && sudo apt-get install elasticsearch


These changes fixed the issue for me:

--- /usr/share/elasticsearch/bin/plugin 2015-12-24 05:14:52.000000000 +0000+++ /usr/share/elasticsearch/bin/pluginfix  2018-04-21 22:54:49.547134959 +0000@@ -79,7 +79,7 @@       properties="$properties \"$var\"=\"$1\""       ;;     *)-      args="$args \"$1\""+      args="$args $1"   esac   shift done@@ -90,7 +90,7 @@     *-Des.default.path.conf=*|*-Des.path.conf=*)     ;;     *)-      properties="$properties -Des.default.path.conf=\"$CONF_DIR\""+      properties="$properties -Des.default.path.conf=$CONF_DIR"     ;;   esac fi@@ -100,11 +100,11 @@     *-Des.default.config=*|*-Des.config=*)     ;;     *)-      properties="$properties -Des.default.config=\"$CONF_FILE\""+      properties="$properties -Des.default.config=$CONF_FILE"     ;;   esac fi export HOSTNAME=`hostname -s`-exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home=\""$ES_HOME"\" $properties -cp \""$ES_CLASSPATH"\" org.elasticsearch.plugins.PluginManager $args+exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_CLASSPATH" org.elasticsearch.plugins.PluginManager $args

The workaround posted by Pikaev Viktor applies essentially the same fix. Through the action of copy-pasting the command that would be executed by the script, one level of pairs of quotes get removed by the shell.

This bug has also been reported to Ubuntu Debian (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807596) but has been marked as won't fix because:

... the package elasticsearch has just been removed from the Debian archive unstable ...

as of March 11, 2018.