# Upgrade to ES 6.0, ElasticSearch wont start

**URL:** https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047
**Category:** Elasticsearch
**Created:** [November 24, 2017, 3:22pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047 "2017-11-24T15:22:33Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [November 24, 2017, 3:22pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/1 "2017-11-24T15:22:33Z")

</div>

I have upgraded from ElasticSearch 5.6.2 to 6.0.0 on Centos 7 and am getting the following error when trying to start the service:  
Nov 24 16:18:37 desktopoli systemd: Starting Elasticsearch...  
Nov 24 16:18:37 desktopoli systemd: Failed at step EXEC spawning /usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec: No such file or directory  
Nov 24 16:18:37 desktopoli systemd: elasticsearch.service: control process exited, code=exited status=203  
Nov 24 16:18:37 desktopoli systemd: Failed to start Elasticsearch.  
Nov 24 16:18:37 desktopoli systemd: Unit elasticsearch.service entered failed state.  
Nov 24 16:18:37 desktopoli systemd: elasticsearch.service failed.

Any idea on how to fix?

---

<div class="post-metadata">

### Author: ![aholbreich](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@aholbreich](https://discuss.elastic.co/u/aholbreich)
#### Post date: [November 24, 2017, 3:33pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/2 "2017-11-24T15:33:34Z")

</div>

Hi, can you provide Elasticsearch logs as well ?

Something like :  
tail -100f /var/log/elasticsearch/your\_cluster\_name.log

---

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [November 24, 2017, 3:57pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/3 "2017-11-24T15:57:56Z")

</div>

It seems that when path.data is not configured(commented out) in elasticsearch.yml, in 6.0 ElasticSearch will try to configure /usr/share/elasticsearch/logs/ and log there.  
Anyway, this is where I am at now:

[2017-11-24T16:54:41,111][INFO][o.e.n.Node] [] initializing ...  
[2017-11-24T16:54:41,184][INFO][o.e.e.NodeEnvironment] [ana-9ag] using [1] data paths, mounts [[/ (rootfs)]], net usable\_space [29.6gb], net total\_space [43.9gb], types [rootfs]  
[2017-11-24T16:54:41,184][INFO][o.e.e.NodeEnvironment] [ana-9ag] heap size [990.7mb], compressed ordinary object pointers [true]  
[2017-11-24T16:54:41,185][INFO][o.e.n.Node] node name [ana-9ag] derived from node ID [ana-9agrRay\_xty0esFTMg]; set [[node.name](http://node.name)] to override  
[2017-11-24T16:54:41,185][INFO][o.e.n.Node] version[6.0.0], pid[116238], build[8f0685b/2017-11-10T18:41:22.859Z], OS[Linux/3.10.0-514.el7.x86\_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_102/25.102-b14]  
[2017-11-24T16:54:41,185][INFO][o.e.n.Node] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch]  
[2017-11-24T16:54:41,835][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [aggs-matrix-stats]  
[2017-11-24T16:54:41,835][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [analysis-common]  
[2017-11-24T16:54:41,835][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [ingest-common]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [lang-expression]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [lang-mustache]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [lang-painless]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [parent-join]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [percolator]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [reindex]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [repository-url]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [transport-netty4]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] loaded module [tribe]  
[2017-11-24T16:54:41,836][INFO][o.e.p.PluginsService] [ana-9ag] no plugins loaded  
[2017-11-24T16:54:42,337][ERROR][o.e.b.Bootstrap] Exception  
java.lang.IllegalArgumentException: unknown setting [default.path.conf] please check that any required plugins are installed, or check the breaking changes documentation for removed settings  
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:293) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:256) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:135) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.node.Node.(Node.java:330) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.node.Node.(Node.java:245) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:322) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:130) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:121) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:69) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.0.0.jar:6.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.0.0.jar:6.0.0]

---

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [November 24, 2017, 4:07pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/4 "2017-11-24T16:07:44Z")

</div>

I get the same error for [default.path.data] and [default.path.logs] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

But i do not have this configured in elasticsearch.yml anywhere...

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 24, 2017, 4:11pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/5 "2017-11-24T16:11:49Z")

</div>

Probably you didn’t update the startup scripts

---

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [November 28, 2017, 3:01pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/6 "2017-11-28T15:01:59Z")

</div>

Thanks for your reply. Can you please detail what needs to be changed in each file? Is manually hanging startup scripts always have to be done during upgrade procedure? I am following following documentation, point 4 for upgrading with RPM:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html)

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 28, 2017, 3:39pm UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/7 "2017-11-28T15:39:27Z")

</div>

No I can’t. I’m afraid I don’t know about scripts and Linux packaging. May be @tlrx or @warkolm know?

---

<div class="post-metadata">

### Author: ![moriol](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@moriol](https://discuss.elastic.co/u/moriol)
#### Post date: [November 29, 2017, 9:06am UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/8 "2017-11-29T09:06:42Z")

</div>

I have changed the following ffile with modifications:  
/usr/lib/systemd/system/elasticsearch.service

ExecStart=/usr/share/elasticsearch/bin/elasticsearch   
-p ${PID\_DIR}/elasticsearch.pid   
--quiet   
-Epath.logs=${LOG\_DIR}   
-Epath.data=${DATA\_DIR} \

I also had to change the following in same file:

#Specifies the maximum number of processes  
LimitNPROC=4096

Then I reloaded service and started Elasticsearch and all works well.  
systemctl daemon-reload  
systemctl start elasticsearch

Thanks for pointing me in right direction.

---

<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 27, 2017, 9:06am UTC](https://discuss.elastic.co/t/upgrade-to-es-6-0-elasticsearch-wont-start/109047/9 "2017-12-27T09:06:56Z")

</div>

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