Failed to download out of all possible locations
Getting error while trying to install.
E:\elasticsearch\elasticsearch-1.5.0\bin>plugin --install org.codelibs/elasticsearch-dataformat/1.5.0 -> Installing org.codelibs/elasticsearch-dataformat/1.5.0... Trying http://download.elasticsearch.org/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-1.5.0.zip... Trying http://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip... Trying https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip... Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/1.5.0.zip... Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip... Failed to install org.codelibs/elasticsearch-dataformat/1.5.0, reason: failed to download out of all possible locations..., use --verbose to get detailed information
Please check if you can download https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip on the network environment.
I manage to download the zip file via the link that you have given by using Browser. But I am not able to install it via plugin command.
E:\elasticsearch\elasticsearch-1.5.0\bin>plugin --install org.codelibs/elasticsearch-dataformat/1.5.0 --timeout 1m --verbose -> Installing org.codelibs/elasticsearch-dataformat/1.5.0... Trying http://download.elasticsearch.org/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-1.5.0.zip... Failed: SocketTimeoutException[connect timed out] Trying http://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip... Failed: SocketTimeoutException[connect timed out] Trying https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip... Failed: SocketTimeoutException[connect timed out] Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/1.5.0.zip... Failed: IOException[Can't get https://github.com/org.codelibs/elasticsearch-dataformat/archive/1.5.0.zip to e:\elasticsearch\plugins\dataformat.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/1.5.0.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/1.5.0.zip]; Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip... Failed: IOException[Can't get https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip to e:\elasticsearch\plugins\dataformat.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip];
Can I just unzip it to <ElasticSearch home> plugins folder? Will that work?
After I unzip to plugins folder, I run: curl -o c:\temp\data.xls -XGET 'localhost:9200/quote3/quote/_data?format=csv&source={"query":{"match_all":{}},"fields":["order_id"]}'
I get another error: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 63 100 63 0 0 1682 0 --:--:-- --:--:-- --:--:-- 2423 'source' is not recognized as an internal or external command, operable program or batch file.
It might be a problem for http proxy...
Can I just unzip it to plugins folder? Will that work?
Yes.
'source' is not recognized as an internal or external command, operable program or batch file.
I do not think it's elasticsearch plugin problem. Please check usage of curl or cmd.
I get the following error.
[root@localhost vagrant]# /usr/share/elasticsearch/bin/plugin --install org.codelibs/elasticsearch-dataformat/1.5.0 --verbose
-> Installing org.codelibs/elasticsearch-dataformat/1.5.0...
Trying http://download.elasticsearch.org/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-1.5.0.zip...
Failed: IOException[Can't get http://download.elasticsearch.org/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-1.5.0.zip to /usr/share/elasticsearch/plugins/dataformat.zip]; nested: FileNotFoundException[http://download.elasticsearch.org/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-1.5.0.zip]; nested: FileNotFoundException[http://download.elasticsearch.org/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-1.5.0.zip];
Trying http://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip...
Failed: SSLException[java.security.ProviderException: java.security.KeyException]; nested: ProviderException[java.security.KeyException]; nested: KeyException;
Trying https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip...
Failed: SSLException[java.security.ProviderException: java.security.KeyException]; nested: ProviderException[java.security.KeyException]; nested: KeyException;
Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/1.5.0.zip...
Failed: SSLException[java.security.ProviderException: java.security.KeyException]; nested: ProviderException[java.security.KeyException]; nested: KeyException;
Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip...
Failed: SSLException[java.security.ProviderException: java.security.KeyException]; nested: ProviderException[java.security.KeyException]; nested: KeyException;
Failed to install org.codelibs/elasticsearch-dataformat/1.5.0, reason: failed to download out of all possible locations..., use --verbose to get detailed information
Other plugins work as expected. i.e. https://github.com/elastic/elasticsearch-analysis-phonetic
This is not a problem for our plugin. I think that elasticsearch-analysis-phonetic comes from http://download.elasticsearch.org/. Third party plugins are provided at Maven repository. So, you need to fix the following problem(SSLException):
Trying http://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/1.5.0/elasticsearch-dataformat-1.5.0.zip... Failed: SSLException[java.security.ProviderException: java.security.KeyException]; nested: ProviderException[java.security.KeyException]; nested: KeyException;
Any ideas on how I can fix that?
It's because the path is incorrect. If you notice the first attempt is at http://download.elasticsearch.org. This attempt fails Failed: IOException[Can't get http://download.elasticsearch.org...]. This means that the path to the file is incorrect. When the install doesn't find the file, it moves on and attempts to download it from the maven site. Check the plugin path and try again.
May be upgrading nss can help, reference: http://blog.backslasher.net/java-ssl-crash.html
@jitenkumar's suggested blog post worked for me! thx!
The commands I ran (do note it's for a different Elasticsearch plugin):
sudo yum -y upgrade nss
cd /usr/share/elasticsearch && sudo bin/plugin --install mobz/elasticsearch-head --verbose
This was on a CentOS 6.5 VM.