<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Cannot start Axon Ivy Engine by ROOT user on Linux</title><link>https://answers.axonivy.com/questions/2167/cannot-start-axon-ivy-engine-by-root-user-on-linux</link><description>&lt;p&gt;Hi IvyTeam,
I'm currently setting up an Ivy Engine on Linux server. The process is working fine except when it automatically start on startup. Because when it run by ROOT user, I got an exception related to Elasticsearch.&lt;/p&gt;
&lt;p&gt;The Ivy Engine version is 6.3.0&lt;/p&gt;
&lt;p&gt;[ 82%] Starting BusinessData manager
04:27:39.038 ERROR [...asticSearchServer] 
  java.lang.RuntimeException: don't run elasticsearch as root.
04:27:39.038 ERROR [...asticSearchServer] 
    at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93)
04:27:39.039 ERROR [...asticSearchServer] 
    at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144)
04:27:39.039 ERROR [...asticSearchServer] 
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
04:27:39.039 ERROR [...asticSearchServer] 
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
04:27:39.039 ERROR [...asticSearchServer] 
    at org.elasticsearch.bootstrap.IvyElasticsearchStarterStopper.main(IvyElasticsearchStarterStopper.java:27)
04:27:39.039 ERROR [...asticSearchServer] 
  Refer to the log for complete error details.
Error while starting Axon.ivy Engine&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2167/cannot-start-axon-ivy-engine-by-root-user-on-linux" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 09 Nov 2016 08:34:06 -0500</lastBuildDate><item><title>Answer by vinh_</title><link>https://answers.axonivy.com/questions/2167/cannot-start-axon-ivy-engine-by-root-user-on-linux/2175</link><description>&lt;p&gt;I had a work around  there and it will work, our team need version 6.3 because of the bussiness data persistence.&lt;/p&gt;
&lt;p&gt;added this line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;su somenormaluser -c \\
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;before&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;"$SERVICED" startdaemon &amp;amp;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The draw back is now we can start it by ROOT but cannot start by "somenormaluser" because "somenormaluser" don't have permission to run "su" command.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vinh_</dc:creator><pubDate>Wed, 09 Nov 2016 08:34:06 -0500</pubDate><guid>https://answers.axonivy.com/questions/2167/cannot-start-axon-ivy-engine-by-root-user-on-linux/2175</guid></item></channel></rss>