title: Issues upgrading SonarQube 6.4 to 6.7 LTS
body: <p>Trying to upgrade the my sonarqube instance running on an m3.xlarge Amazon Linux AMI 2017.03.1.20170617 x86_64 HVM GP2</p>
  
  <p>Walking through upgrade instructions here <a href="https://docs.sonarqube.org/display/SONAR/Upgrading" rel="nofollow noreferrer">https://docs.sonarqube.org/display/SONAR/Upgrading</a></p>
  
  <p>But when I go to startup sonar in the new directory it comes up for just a few seconds then shuts down. Is anyone else having this issue or am I missing something in the instructions? Updated the sonar.properties file with the same info as in my 6.4 version and I did not see any changes that needed to be made in the wrapper.conf. The older version still comes up fine. </p>
  
  <p>Wondering if this has to do with:
  a) Trying to connect to the existing DB
  b) Not having installed any plugins yet</p>
  
  <pre><code>/etc/sonarqube-6.7/bin/linux-x86-64
  [root@ip linux-x86-64]# ./sonar.sh start
  Starting SonarQube...
  Started SonarQube.
  [root@ip-linux-x86-64]# ls -la
  total 144
  drwxr-xr-x 3 root root   4096 Nov 27 21:08 .
  drwxr-xr-x 8 root root   4096 Nov  7 15:16 ..
  drwxr-xr-x 2 root root   4096 Nov  7 15:16 lib
  -rw-r--r-- 1 root root      6 Nov 27 21:08 SonarQube.pid
  -rwxr-xr-x 1 root root  15522 Nov  7 15:06 sonar.sh
  -rwxr-xr-x 1 root root 111027 Nov  7 15:06 wrapper
  [root@ip- linux-x86-64]# ls -la
  total 144
  drwxr-xr-x 3 root root   4096 Nov 27 21:08 .
  drwxr-xr-x 8 root root   4096 Nov  7 15:16 ..
  drwxr-xr-x 2 root root   4096 Nov  7 15:16 lib
  -rw-r--r-- 1 root root      6 Nov 27 21:08 SonarQube.pid
  -rwxr-xr-x 1 root root  15522 Nov  7 15:06 sonar.sh
  -rwxr-xr-x 1 root root 111027 Nov  7 15:06 wrapper
  [root@ip- linux-x86-64]# ls -la
  total 140
  drwxr-xr-x 3 root root   4096 Nov 27 21:08 .
  drwxr-xr-x 8 root root   4096 Nov  7 15:16 ..
  drwxr-xr-x 2 root root   4096 Nov  7 15:16 lib
  -rwxr-xr-x 1 root root  15522 Nov  7 15:06 sonar.sh
  -rwxr-xr-x 1 root root 111027 Nov  7 15:06 wrapper
  [root@ linux-x86-64]# ls -la
  total 140
  </code></pre>
  
  <h2>sonar.log</h2>
  
  <pre><code>vi sonar.log 
  
  --&gt; Wrapper Started as Daemon
  Launching a JVM...
  Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
    Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
  
  2017.11.27 21:20:50 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /etc/sonarqube-6.7/temp
  2017.11.27 21:20:50 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
  2017.11.27 21:20:50 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/etc/sonarqube-6.7/elasticsearch]: /etc/sonarqube-6.7/elasticsearch/bin/elasticsearch -Epath.conf=/etc/sonarqube-6.7/temp/conf/es
  2017.11.27 21:20:50 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
  2017.11.27 21:20:50 INFO  app[][o.e.p.PluginsService] no modules loaded
  2017.11.27 21:20:50 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
  2017.11.27 21:20:51 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
  2017.11.27 21:20:51 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
    2017.11.27 21:20:51 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
  </code></pre>
  
  <h2>es.log</h2>
  
  <pre><code> vi es.log 
  
  2017.11.27 21:20:51 ERROR es[][o.e.b.Bootstrap] Exception
  java.lang.RuntimeException: can not run elasticsearch as root
          at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.3.jar:5.6.3]
  2017.11.27 21:20:51 WARN  es[][o.e.b.ElasticsearchUncaughtExceptionHandler] 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:136) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.3.jar:5.6.3]
  Caused by: java.lang.RuntimeException: can not run elasticsearch as root
          at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.3.jar:5.6.3]
          at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.3.jar:5.6.3]
          ... 6 more
  </code></pre>