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

Failed to download out of all possible locations #16

Open
leechuen opened this issue Jun 12, 2015 · 9 comments
Open

Failed to download out of all possible locations #16

leechuen opened this issue Jun 12, 2015 · 9 comments
Labels

Comments

@leechuen
Copy link

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

@marevol
Copy link
Contributor

marevol commented Jun 12, 2015

@leechuen
Copy link
Author

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 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.

@marevol
Copy link
Contributor

marevol commented Jun 12, 2015

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.

@mehtadev17
Copy link

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

@marevol
Copy link
Contributor

marevol commented Aug 24, 2015

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;

@mehtadev17
Copy link

Any ideas on how I can fix that?

@jeffdupont
Copy link

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.

@jitenderkumar
Copy link

May be upgrading nss can help, reference: http://blog.backslasher.net/java-ssl-crash.html

@jedihe
Copy link

jedihe commented Jan 16, 2016

@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.

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

No branches or pull requests

6 participants