# Upgrade from 2.4 to 5 Elasticsearch issues

**URL:** <https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664>\
**Category:** Elasticsearch\
**Created:** [November 10, 2016, 1:12pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664 "2016-11-10T13:12:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiGame](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@NiGame](https://discuss.elastic.co/u/NiGame)\
**Post date:** [November 10, 2016, 1:12pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/1 "2016-11-10T13:12:02Z")

</div>

Used the upgrade plugin and sorted all issues, it flagged.  
Then shutdown, single node cluster.  
Upgraded using apt  
Running Elasticsearch start then shuts down after about 12seconds  
logs show see below, does not show any issues  
But looking at journalctl --unit elasticsearch, i see the following

Oct 27 18:08:06 logstash-1 elasticsearch[915]: # LICENSE EXPIRED ON [Thursday, September 08, 2016]. IF YOU HAVE A NEW LICENSE, PLEASE  
Oct 27 18:08:06 logstash-1 elasticsearch[915]: # UPDATE IT. OTHERWISE, PLEASE REACH OUT TO YOUR SUPPORT CONTACT.

This is strange as the cluster was working before the change and I can no longer see a license plugin and have no ability to install one.

Also note all I run with it is logstash and kibana, no services that are payed for.

It is like when I upgrade it installed an old free license, how do I go about upgrading it?

the following command gives me  
/usr/share/elasticsearch/bin# ./elasticsearch-plugin install license  
ERROR: Unknown plugin license

LOGS  
[2016-11-10T12:36:21,769][INFO][o.e.n.Node] [node-1] initializing ...  
[2016-11-10T12:36:21,974][INFO][o.e.e.NodeEnvironment] [node-1] using [1] data paths, mounts [[/ (/dev/sda6)]], net usable\_space [1.7tb], net total\_space [1.8tb], spins? [possibly], types [btrfs]  
[2016-11-10T12:36:21,974][INFO][o.e.e.NodeEnvironment] [node-1] heap size [1.9gb], compressed ordinary object pointers [true]  
[2016-11-10T12:36:21,981][INFO][o.e.n.Node] [node-1] version[5.0.0], pid[10836], build[253032b/2016-10-26T05:11:34.737Z], OS[Linux/4.2.0-42-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0\_45/25.45-b02]  
[2016-11-10T12:36:24,177][INFO][o.e.p.PluginsService] [node-1] loaded module [aggs-matrix-stats]  
[2016-11-10T12:36:24,177][INFO][o.e.p.PluginsService] [node-1] loaded module [ingest-common]  
[2016-11-10T12:36:24,177][INFO][o.e.p.PluginsService] [node-1] loaded module [lang-expression]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [lang-groovy]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [lang-mustache]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [lang-painless]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [percolator]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [reindex]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [transport-netty3]  
[2016-11-10T12:36:24,178][INFO][o.e.p.PluginsService] [node-1] loaded module [transport-netty4]  
[2016-11-10T12:36:24,179][INFO][o.e.p.PluginsService] [node-1] no plugins loaded  
[2016-11-10T12:36:28,464][INFO][o.e.n.Node] [node-1] initialized  
[2016-11-10T12:36:28,465][INFO][o.e.n.Node] [node-1] starting ...  
[2016-11-10T12:36:28,925][INFO][o.e.t.TransportService] [node-1] publish\_address {REDACTED:9300}, bound\_addresses {REDACTED:9300}  
[2016-11-10T12:36:28,935][INFO][o.e.b.BootstrapCheck] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
[2016-11-10T12:36:28,940][ERROR][o.e.b.Bootstrap] [node-1] node validation exception  
bootstrap checks failed  
max virtual memory areas vm.max\_map\_count [65530] likely too low, increase to at least [262144]  
[2016-11-10T12:36:28,944][INFO][o.e.n.Node] [node-1] stopping ...  
[2016-11-10T12:36:29,014][INFO][o.e.n.Node] [node-1] stopped  
[2016-11-10T12:36:29,015][INFO][o.e.n.Node] [node-1] closing ...  
[2016-11-10T12:36:29,042][INFO][o.e.n.Node] [node-1] closed

---

<div class="post-metadata">

**Author:** ![NiGame](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@NiGame](https://discuss.elastic.co/u/NiGame)\
**Post date:** [November 10, 2016, 3:45pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/2 "2016-11-10T15:45:06Z")

</div>

OK, I have now got it up and running.

Had to change a couple of things, but most notably, is that it would not work with an external IP, as soon as I set this to local, it worked. This was the main reason it was shutting itself down. The licence issue was because I had trialled watcher in the past and it had not fully removed itself.

So my question has changed, how do I get an external IP back onto elastic search, as I make changes on the server during my testing remotely using Sense.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 10, 2016, 3:47pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/3 "2016-11-10T15:47:41Z")

</div>

You may want to read [this blog post](https://www.elastic.co/blog/bootstrap_checks_annoying_instead_of_devastating) about the bootstrap checks in Elasticsearch 5.0.

---

<div class="post-metadata">

**Author:** ![NiGame](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@NiGame](https://discuss.elastic.co/u/NiGame)\
**Post date:** [November 10, 2016, 3:52pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/4 "2016-11-10T15:52:43Z")

</div>

Thanks for that, it does explain what happening and why they are doing it, but that is all. Not the most helpful for getting it setup.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 10, 2016, 3:59pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/5 "2016-11-10T15:59:43Z")

</div>

It does link to the list of [checks that are performed](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/bootstrap-checks.html) in the documentation so that you can go through and make sure they are all covered.

---

<div class="post-metadata">

**Author:** ![NiGame](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@NiGame](https://discuss.elastic.co/u/NiGame)\
**Post date:** [November 10, 2016, 4:11pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/6 "2016-11-10T16:11:18Z")

</div>

Thanks, had just stumbled across that myself, after you lead me in the right direction.  
Cheers, think I know what I need to do.

---

<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:** [December 8, 2016, 4:11pm UTC](https://discuss.elastic.co/t/upgrade-from-2-4-to-5-elasticsearch-issues/65664/7 "2016-12-08T16:11:55Z")

</div>

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