Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Installation fails on EC2 instances when specifying "es_version=5.0.0-alpha5" #197

Closed
yaron-idan opened this issue Nov 20, 2016 · 1 comment

Comments

@yaron-idan
Copy link

I have managed to use the role to successfully install ES 2.3.4 on my EC2 instances but now when I try to use the same configuration for ES 5.0 the role fails with the following error -

TASK [elasticsearch : Start elasticsearch service] *****************************
fatal: [ES2]: FAILED! => {"changed": false, "failed": true, "msg": " * Starting Elasticsearch Server - ip-10-0-10-198\n   ...fail!\n"}

I am using the following AWS AMI - ami-40d28157 (after installing python manually, for ansible to work), and this is my playbook -

---
- name: Install and configure ES
  hosts: ES_master
  become: true
  become_user: root
  roles:
      #expand to all available parameters
      - { role: elasticsearch, es_instance_name: "{{ ansible_hostname }}", es_data_dirs: "/mnt/elasticsearch/data", es_log_dir: "/mnt/elasticsearch/logs", es_work_dir: "/mnt/elasticsearch/temp",
      es_config: {
          node.name: "{{ ansible_hostname }}",
          cluster.name: "custom-cluster",
          node.data: true,
          node.master: true,
          bootstrap.mlockall: true,
          discovery.zen.ping.multicast.enabled: false,
          discovery.ec2.tag.ES-suggester: true,
          discovery.type: "ec2",
          cloud.aws.region: "us-east-1",
          network.bind_host: "0.0.0.0",
          transport.tcp.port: 9300,
          http.port: 9200,
          }
      }
  vars:
      es_major_version: "5.x"
      es_version: "5.0.0-alpha5"
      es_heap_size: "500m"

I saw previous issues claiming that this role should support 5.0, but I'm wondering if the problem is due to the support of an alpha version?
When I try to install ES 5.0.1 manually, following the instructions on elastic.co website, the install passes successfully.

@yaron-idan yaron-idan changed the title Installation fails on EC2 instances when specifying "es_version=5.0" Installation fails on EC2 instances when specifying "es_version=5.0.0-alpha5" Nov 21, 2016
@jakommo
Copy link
Contributor

jakommo commented Nov 22, 2016

@yaron-idan no, the role does not yet officially support 5, see the readme.
There is a PR #182 for 5 though.

@jakommo jakommo closed this as completed Nov 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants