# Not able to start 6.3 after upgrade from 6.2

**URL:** <https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150>\
**Category:** Elasticsearch\
**Created:** [June 15, 2018, 10:15pm UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150 "2018-06-15T22:15:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koen\_Wouters](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Koen\_Wouters](https://discuss.elastic.co/u/Koen_Wouters)\
**Post date:** [June 15, 2018, 10:15pm UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/1 "2018-06-15T22:15:12Z")

</div>

We just upgraded from 6.2 to 6.3 and are no longer able to start. The error message states that I cannot start as root, and it seems to be a very common issue looking at posts here and using google.

But I just can't figure out where this is coming from, I've checked everything, and nowhere I seem to be using root anymore

I ensured usr/share/elasticsearch, var/lib/elasticsearch and etc/elasticsearch are not on root, but I keep getting the message that I am using it as root. We decided to uninstall and reinstall from scratch on our development machines but no luck, same error again after vanilla installation. The issue is the same on my production machine which is now completely unavailable.

So since the only responses here are 'do not use root', and as far as i can see I do not use root I have following questions :

What permissions and ownership settings are changed by the installer after upgrading from 6.2 to 6.3?

Are there any other folders used by ES apart from the ones mentioned above? If so can someone share these?

If not, is there a way to roll back?

If it helps, we are running on Ubuntu 16.04, and we had Xpack installed

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 15, 2018, 10:34pm UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/2 "2018-06-15T22:34:53Z")

</div>

Can you show logs?  
How did you install things?  
How are you starting Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Koen\_Wouters](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Koen\_Wouters](https://discuss.elastic.co/u/Koen_Wouters)\
**Post date:** [June 16, 2018, 9:11am UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/3 "2018-06-16T09:11:19Z")

</div>

I installed using the standard apt logic, worked since version 5 so nothing fancy or new here. But this time I wasn't able to get neither Elastic or Kibana running anymore

In normal conditions I have systemd logic taking care of this, but neither one started after reboot.

the logs don't show anything more as below error statement when I try to run it from the commandline

my-sudo-account@my\_server:~$ sudo /usr/share/elasticsearch/bin/elasticsearch  
[2018-06-15T23:29:30,741][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [sqe\_node-1] uncaught exception in thread [main]  
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.0.jar:6.3.0]  
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.0.jar:6.3.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.0.jar:6.3.0]  
Caused by: java.lang.RuntimeException: can not run elasticsearch as root  
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:104) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:171) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.0.jar:6.3.0]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.0.jar:6.3.0]  
... 6 more

By modifying all of the owner / group settings I may have modified more than needed, but bottomline is that neither one of the known locations has root as owner or group, so where is this statement comming from ?

I've been trying numerous combinations of my own account (non root) and / or elasticsearch as a user / group combination so not sure if I did not make things worse that way. Currently these are my used combinations :

etc/default/elasticsearch -\> elasticsearch:elasticsearch -\> 0660  
etc/elasticsearch -\> elasticsearch:elasticsearch -\> 2750  
usr/share/elastisearch -\> elasticsearch:elasticsearch -\> 0755

note that I tried with various combinations apart from the above ones but all keep telling me I shouldn't use root, on 2 different machines. So obviously I'm missing something, just can't figure out what.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2018, 9:13am UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/4 "2018-06-16T09:13:23Z")

</div>

> [@Koen\_Wouters](#):
>
> can not run elasticsearch as root

How are you starting the process?

---

<div class="post-metadata">

**Author:** ![Koen\_Wouters](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Koen\_Wouters](https://discuss.elastic.co/u/Koen_Wouters)\
**Post date:** [June 16, 2018, 10:06am UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/5 "2018-06-16T10:06:20Z")

</div>

my-sudo-account@my\_server:~$ sudo /usr/share/elasticsearch/bin/elasticsearch

So not as root, but with my user account

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2018, 10:07am UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/6 "2018-06-16T10:07:48Z")

</div>

Using sudo means it will run as root.

---

<div class="post-metadata">

**Author:** ![Koen\_Wouters](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Koen\_Wouters](https://discuss.elastic.co/u/Koen_Wouters)\
**Post date:** [June 16, 2018, 10:27am UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/7 "2018-06-16T10:27:03Z")

</div>

Ok, but if I don't use sudo it gives me 'command not found' , so if you can not run it as sudo and not without, then how do you run it?

And why was I able to do this for the past few years without a problem?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2018, 10:29am UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/8 "2018-06-16T10:29:43Z")

</div>

Sound like a path issue more than anything else. Have you tried logging out and back in?

> [@Koen\_Wouters](#):
>
> And why was I able to do this for the past few years without a problem?

You haven't been able to run Elasticsearch as root for quite some time now, I don't know how your system is configured though.

---

<div class="post-metadata">

**Author:** ![Koen\_Wouters](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Koen\_Wouters](https://discuss.elastic.co/u/Koen_Wouters)\
**Post date:** [June 16, 2018, 12:21pm UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/9 "2018-06-16T12:21:35Z")

</div>

typo indeed, I got no permission errors.

So, I fiddled around with the permissions, got some action then and it turned out also my log files and indexed had changes made to the permissions and/or owner settings after the update. Error messages helped me to fix these one by one and once all these were set it started complaining about the fact I had an old Xpack file. Finally after removing that one it started to work again.

It still does not want to run on boot using my previous settings but ok, I can always reconstruct these ones. At least using the command line ES started working again.

Unfortunately, now Kibana is playing nasty. Same issues, permissions and groups were changed all over the place, modified them all again, got complaints about xPack as for ES, was not able to remove using the normal commands but removing manually seemed to fix this and now I can start it also from the command line again.

But, I still can't open it in the browser now. Kibana starts complaining giving below message :

[no\_shard\_available\_action\_exception] No shard available for [get [.kibana][doc][config:6.3.0]: routing [null]] :: {"path":"/.kibana/doc/config%3A6.3.0","query":{} ,"statusCode":503,"response":"{"error":{"root\_cause":[{"type":"no\_shard\_available\_action\_exception","reason":"No shard available for [get [.kibana][doc][config:6.3.0]: routing [null]]"}],"type":"no\_shard\_available\_a ction\_exception","reason":"No shard available for [get [.kibana][doc][config:6.3.0]: routing [null]]"},"status":503}"}

Any idea what goes wrong now ?

---

<div class="post-metadata">

**Author:** ![Koen\_Wouters](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@Koen\_Wouters](https://discuss.elastic.co/u/Koen_Wouters)\
**Post date:** [June 16, 2018, 12:51pm UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/10 "2018-06-16T12:51:19Z")

</div>

Seems ES is having problems finding some (older?) Xpack logic preventing it from loading at boot. We did use the trial a while ago, were than converted to basic and maybe there is some garbage left now with the new structure ? What are these appenders and where should they be located?

Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,014 main ERROR Null object returned for RollingFile in Appenders.  
Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,014 main ERROR Null object returned for RollingFile in Appenders.  
Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,015 main ERROR Unable to locate appender "rolling" for logger config "root"  
Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,015 main ERROR Unable to locate appender "index\_indexing\_slowlog\_rolling" for logger config "index.indexing.slowlog.index"  
Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,016 main ERROR Unable to locate appender "audit\_rolling" for logger config "org.elasticsearch.xpack.security.audit.logfile.LoggingAuditTrail"  
Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,016 main ERROR Unable to locate appender "index\_search\_slowlog\_rolling" for logger config "index.search.slowlog"  
Jun 16 14:57:10 mining-server elasticsearch[6823]: 2018-06-16 14:57:10,016 main ERROR Unable to locate appender "deprecation\_rolling" for logger config "org.elasticsearch.deprecation"

Strangely enough it does start fine with the command line, without giving any error message at all

---

<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:** [July 14, 2018, 12:51pm UTC](https://discuss.elastic.co/t/not-able-to-start-6-3-after-upgrade-from-6-2/136150/11 "2018-07-14T12:51:25Z")

</div>

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