# Upgrade Elasticsearch 2.4.0 to 5.6.0

**URL:** <https://discuss.elastic.co/t/upgrade-elasticsearch-2-4-0-to-5-6-0/220808>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 25, 2020, 9:44am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-4-0-to-5-6-0/220808 "2020-02-25T09:44:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruipoliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruipoliveira/32/63265_2.png) [@ruipoliveira](https://discuss.elastic.co/u/ruipoliveira)\
**Post date:** [February 25, 2020, 9:44am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-4-0-to-5-6-0/220808/1 "2020-02-25T09:44:20Z")

</div>

I have the configuration for the 3 masters:

master1

```auto
cluster.name: elasticsearch
node.master: true
node.data: false
node.name: "master1"
path.data: /data/data
path.logs: /data/log
bootstrap.memory_lock: true
transport.tcp.port: 9300
http.enabled: false
network.host: 0.0.0.0
gateway.recover_after_nodes: 4
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["es-master1:9300", "es-master2:9300", "es-master3:9300"]
path.repo: ["/mnt/backup/elasticsearch"]

```

master2

```auto
cluster.name: elasticsearch
node.master: true
node.data: false
node.name: "master2"
path.data: /data/data
path.logs: /data/log
bootstrap.memory_lock: true
transport.tcp.port: 9300
http.enabled: false
network.host: 0.0.0.0
gateway.recover_after_nodes: 4
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["es-master1:9300", "es-master2:9300", "es-master3:9300"]
path.repo: ["/mnt/backup/elasticsearch"]

```

master3

```auto
cluster.name: elasticsearch
node.master: true
node.data: false
node.name: "master3"
path.data: /data/data
path.logs: /data/log
bootstrap.memory_lock: true
transport.tcp.port: 9300
http.enabled: false
network.host: 0.0.0.0
gateway.recover_after_nodes: 4
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["es-master1:9300", "es-master2:9300", "es-master3:9300"]
path.repo: ["/mnt/backup/elasticsearch"]

```

When starting the elasticsearch i have the error:

```auto
[2020-02-24T17:05:56,121][INFO][o.e.n.Node] [master2] starting ...
[2020-02-24T17:05:56,377][INFO][o.e.t.TransportService] [master2] publish_address {172.30.0.10:9300}, bound_addresses {[::]:9300}
[2020-02-24T17:05:56,399][INFO][o.e.b.BootstrapChecks] [master2] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked
[2020-02-24T17:05:56,471][INFO][o.e.n.Node] [master2] stopping ...
[2020-02-24T17:05:56,509][INFO][o.e.n.Node] [master2] stopped

```

NOTES:

- My docker run command have the flags : --detach --privileged
- Use simular jvm.options file ([https://github.com/pires/docker-elasticsearch/blob/5.6.0/config/jvm.options](https://github.com/pires/docker-elasticsearch/blob/5.6.0/config/jvm.options))

Can someone help me with this error? Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 24, 2020, 9:56am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-4-0-to-5-6-0/220808/2 "2020-03-24T09:56:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
