elasticsearch plugin install SSLHandshakeException - elasticsearch

I'm working on an Ubuntu VM, with a proxy.
I have this error then i try to install an elasticsearch plugin :
bin/plugin install --verbose license
-Dhttp.proxyHost=https://myusername:mypassword#my.url.proxy
-Dhttp.proxyPort=portnum -Dhttps.protocols=TLSv1.1,TLSv1.2
-> Installing license...
Trying
https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.2.0.zip
...
Failed: SSLHandshakeException[Remote host closed connection during handshake]; nested: EOFException[SSL peer shut down incorrectly];
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
with or without the options -Dhttp.proxyHost, -Dhttp.proxyPort and -Dhttps.protocols, i have the same problem.
Any help will be appreciated,
Christophe

Related

Unable to install mariadb on macOs

I'm trying to install mariadb on macOs Big Sur(version 11.2.3) with m1 chip. Tried the following official link here and here, but when i run the command
brew install mariadb
then after some time it gives me this error
curl: (7) Failed to connect to pkg-containers.githubusercontent.com port 443: Operation timed out
Error: mariadb: Failed to download resource "mecab"
Download failed: https://ghcr.io/v2/homebrew/core/mecab/blobs/sha256:495c42533a5ea5bdedcf4a95c05e613c3579f626b17d0df0396d8a0ea9328bbe
Any help would be appreciated!.
It is a probably a problem with my connection. Please see more details here

Unable to connect to rubygems.org from a linux server. Handshake_failure

I was trying to install logstash plugins in a Linux server in cloud(Amazon Linux AMI 2016.09). and got the error that the server is not able to download data from https://rubygems.org. Handshake_failure
Command used to install plugin: sudo /usr/share/logstash/bin/logstash-plugin install logstash-filter-environment
Error log: Validating logstash-filter-environment
Unable to download data from https://rubygems.org - Received fatal alert: handshake_failure (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-filter-environment
Tried to access this website from this server with this command: w3m https://rubygems.org
Error log: Bad cert ident from rubygems.org: dNSName=j.sni.global.fastly.net
I can successfully wget https://rubygems.org/latest_specs.4.8.gz from the server and it got downloaded successfully.
Got this issue with Ruby 2.0, so upgraded version to Ruby 3.0 and still the same error.

Unable to install elasticsearch-head in Windows 7

Unable to install elasticsearch-head in Windows 7. Getting the following error in command prompt.
elasticsearch-2.4.0\bin>plugin install mobz/elasticsearch-head
Installing mobz/elasticsearch-head...
ing https://github.com/mobz/elasticsearch-head/archive/master.zip ...
OR: failed to download out of all possible locations..., use --verbose to get detailed information
How to fix?
[update]
C:\elasticsearch-2.4.0\bin>plugin.bat install mobz/elasticsearch-head --verbose
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
For ElasticSearch => 5.0
Running as a plugin of Elasticsearch is now deprecated for security problems.
1 . Enable CORS in elasticsearch
config/elasticsearch.yml:
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length
2. you have to run it in another server, like this for example:
(you will need npm => 6)
go to: github.com/mobz/elasticsearch-head.git
donwload it
cd elasticsearch-head
npm install
npm run start
open http://localhost:9100/
it worked for me.

Offline installation of elasticsearch plug-ins for Windows

I am trying to install the license plug-in for elasticsearch, but
my proxy refuse the connection. When i execute the command plugin install license i get the error:
C:\elasticsearch-2.2.0\bin>plugin install license
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugi
n/license/2.2.0/license-2.2.0.zip ...
Failed: ConnectException[Connection refused: connect]
ERROR: failed to download out of all possible locations..., use --verbose to get
detailed information
Download the file from the path in the error message (https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.2.0.zip) and put it into „C:\“
then execute the following command in cmd
C:\elasticsearch-2.2.0\bin> plugin install file:"C:\license-2.2.0.zip"
Alternative:
You can specify a Proxy with
C:\elasticsearch-2.2.0\bin>plugin -DproxyPort=number -DproxyHost=hostname_or_ip install <plugin>

Failed to install mobz/elasticsearch-head, reason: failed to download out of all possible locations..., use -verbose to get detailed information

Why do I get the following error when i try to install the elasticsearch - head` plugin through Command prompt?
C:\tomcat\webapps\elasticsearch-1.1.1\bin>plugin -install mobz/elasticsearch-head
Error is :
Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
**Failed to install mobz/elasticsearch-head, reason:** failed to download out of all
possible locations..., use -verbose to get detailed information
Download it manually from https://github.com/mobz/elasticsearch-head and unzip it in elasticsearch-1.4.2/plugins/head/_site/
and start elasticsearch server
then check in browser
http://localhost:9200/_plugin/head/
I installed it successfully in this way:
bin/plugin -DproxyPort=port_number -DproxyHost=hostname -install mobz/elasticsearch-head
Replace the port_number and hostname in above command.
It seems that head plugin installer is broken. It reports:
Can't get https://github.com/movz/elasticsearch-head/archive/master.zip
And when you try to download this file by hand, you will realize that installer can't work.
However you can use head plugin easily if you download it as zip from https://github.com/mobz/elasticsearch-head, and then you just open index.html in your browser.

Resources