I have elasticsearch configured without SSL. I am able to access it using curl http://localhost:9200/
Here are the versions
Elasticsearch: 6.2.2
Curator: 5.8.1
I have installed plugin repository-s3
I am trying to take snapshot of ES to S3 using below command.
curator --config curator.yml backup_action.yml
Here is my curator.yml
client:
hosts:
- localhost
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
aws_key:
aws_secret_key:
aws_region: ca-central-1
ssl_no_validate: False
http_auth:
timeout: 300
master_only: False
logging:
loglevel: DEBUG
logfile:
logformat: default
# blacklist: ['elasticsearch', 'urllib3']
blacklist: []
Here is my action file
actions:
1:
action: snapshot
description: Backing up indices older than 30 days.
options:
repository: s3-backup
name: stage-elk-%Y%m%d%H%M%S
ignore_unavailable: False
include_global_state: True
partial: False
wait_for_completion: True
skip_repo_fs_check: False
timeout_override:
continue_if_exception: True
disable_action: False
filters:
- filtertype: age
source: name
direction: older
unit: days
unit_count: 30
timestring: "%Y%m%d%H%M%S"
Here is the error I am getting
2019-10-04 11:45:21,638 DEBUG elasticsearch log_request_fail:160 > None
2019-10-04 11:45:21,639 DEBUG urllib3.connectionpool _new_conn:813 Starting new HTTPS connection (4): localhost:9200
2019-10-04 11:45:21,646 WARNING elasticsearch log_request_fail:149 GET https://localhost:9200/ [status:N/A request:0.008s]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_requests.py", line 124, in perform_request
response = self.session.send(prepared_request, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host='localhost', port=9200): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))
2019-10-04 11:45:21,647 DEBUG elasticsearch log_request_fail:160 > None
2019-10-04 11:45:21,647 ERROR curator.utils get_client:915 HTTP N/A error: HTTPSConnectionPool(host='localhost', port=9200): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))
2019-10-04 11:45:21,647 CRITICAL curator.utils get_client:923 Curator cannot proceed. Exiting.
Please note that I have mentioned use_ssl to false still in the log I can see that it is starting HTTPS connection
2019-10-04 11:45:21,639 DEBUG urllib3.connectionpool _new_conn:813 Starting new HTTPS connection (4): localhost:9200
2019-10-04 11:45:21,646 WARNING elasticsearch log_request_fail:149 GET https://localhost:9200/ [status:N/A request:0.008s]
Please help.