Cant get SonarQubw service up (centos vm)

This is the issue, I want to upgrade version (from 8.4 to 8.6) and also license from developer to enterprise
So I took the vm down … made a clone so I can play with the clone first

Didn’t do any change – just saw that UI is not coming up, shout the clone
Got the original up again, test connectivity to DNS server, all is good
Performed ./sonar start

Still nothing no UI…

This is sonar.log:

2021.02.10 10:34:53 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/sonarqube-8.4.1.35646/temp
2021.02.10 10:34:53 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2021.02.10 10:34:53 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/usr/sonarqube-8.4.1.35646/elasticsearch]: /usr/sonarqube-8.4.1.35646/elasticsearch/bin/elasticsearch
2021.02.10 10:34:53 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021.02.10 10:34:54 INFO  app[][o.e.p.PluginsService] no modules loaded
2021.02.10 10:34:54 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2021.02.10 10:35:01 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.02.10 10:35:01 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.02.10 10:35:01 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Hey there. Welcome to the community!

This line tells us we should go looking in es.log for the error.

2021.02.10 09:31:39 INFO  es[][o.e.n.Node] stopping ...
2021.02.10 09:31:39 INFO  es[][o.e.n.Node] stopped
2021.02.10 09:31:39 INFO  es[][o.e.n.Node] closing ...
2021.02.10 09:31:39 INFO  es[][o.e.n.Node] closed
2021.02.10 10:11:55 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.4.jar:6.8.4]
2021.02.10 10:11:55 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:163) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.4.jar:6.8.4]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.4.jar:6.8.4]
        ... 6 more
2021.02.10 10:35:01 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.4.jar:6.8.4]
2021.02.10 10:35:01 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:163) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.4.jar:6.8.4]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.4.jar:6.8.4]
        ... 6 more
2021.02.10 12:08:15 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.8.4.jar:6.8.4]
2021.02.10 12:08:15 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:163) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.4.jar:6.8.4]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.4.jar:6.8.4]
        ... 6 more

And there it is :slight_smile: SonarQube cannot run as root (because Elasticsearch cannot run as root).

You should start the service as… not root, or change the RUN_AS_USER in the conf/wrapper.conf file

i ran it from a regular user now, still nothing, didnt see a run as user var in the config (also says inside not to edit),
this is sonar.log now:

--> 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.

2020.11.19 08:38:44 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/sonarqube-8.4.1.35646/temp
2020.11.19 08:38:44 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.11.19 08:38:44 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/usr/sonarqube-8.4.1.35646/elasticsearch]: /usr/sonarqube-8.4.1.35646/elasticsearch/bin/elasticsearch
2020.11.19 08:38:45 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.11.19 08:38:45 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.11.19 08:38:45 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.11.19 08:39:00 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.11.19 08:39:00 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/usr/sonarqube-8.4.1.35646]: /usr/lib/jvm/java-11-openjdk-11.0.7.10-4.el7_8.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/usr/sonarqube-8.4.1.35646/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*:/usr/sonarqube-8.4.1.35646/lib/jdbc/postgresql/postgresql-42.2.14.jar org.sonar.server.app.WebServer /usr/sonarqube-8.4.1.35646/temp/sq-process99858431836291274properties
2020.11.19 08:39:36 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2020.11.19 08:39:36 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='ce', ipcIndex=3, logFilenamePrefix=ce]] from [/usr/sonarqube-8.4.1.35646]: /usr/lib/jvm/java-11-openjdk-11.0.7.10-4.el7_8.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/usr/sonarqube-8.4.1.35646/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*:/usr/sonarqube-8.4.1.35646/lib/jdbc/postgresql/postgresql-42.2.14.jar org.sonar.ce.app.CeServer /usr/sonarqube-8.4.1.35646/temp/sq-process2952422362739705647properties
2020.11.19 08:39:48 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2020.11.19 08:39:48 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up
TERM trapped.  Shutting down.
2021.02.10 09:31:39 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ce]: 143
2021.02.10 09:31:39 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is stopped
2021.02.10 09:31:39 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [web]: 129
2021.02.10 09:31:39 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2021.02.10 09:31:39 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.02.10 09:31:39 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2021.02.10 09:31:39 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> 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.

2021.02.10 10:11:48 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/sonarqube-8.4.1.35646/temp
2021.02.10 10:11:48 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2021.02.10 10:11:48 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/usr/sonarqube-8.4.1.35646/elasticsearch]: /usr/sonarqube-8.4.1.35646/elasticsearch/bin/elasticsearch
2021.02.10 10:11:48 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021.02.10 10:11:48 INFO  app[][o.e.p.PluginsService] no modules loaded
2021.02.10 10:11:48 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2021.02.10 10:11:55 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.02.10 10:11:55 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.02.10 10:11:55 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> 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.

2021.02.10 10:34:53 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/sonarqube-8.4.1.35646/temp
2021.02.10 10:34:53 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2021.02.10 10:34:53 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/usr/sonarqube-8.4.1.35646/elasticsearch]: /usr/sonarqube-8.4.1.35646/elasticsearch/bin/elasticsearch
2021.02.10 10:34:53 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021.02.10 10:34:54 INFO  app[][o.e.p.PluginsService] no modules loaded
2021.02.10 10:34:54 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2021.02.10 10:35:01 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.02.10 10:35:01 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.02.10 10:35:01 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> 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.

2021.02.10 12:08:08 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/sonarqube-8.4.1.35646/temp
2021.02.10 12:08:08 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2021.02.10 12:08:08 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/usr/sonarqube-8.4.1.35646/elasticsearch]: /usr/sonarqube-8.4.1.35646/elasticsearch/bin/elasticsearch
2021.02.10 12:08:08 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021.02.10 12:08:08 INFO  app[][o.e.p.PluginsService] no modules loaded
2021.02.10 12:08:08 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2021.02.10 12:08:15 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.02.10 12:08:15 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.02.10 12:08:15 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> 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.

2021.02.10 14:59:01 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /usr/sonarqube-8.4.1.35646/temp
2021.02.10 14:59:01 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2021.02.10 14:59:01 ERROR app[][o.s.a.p.ManagedProcessHandler] Fail to launch process [es]
java.lang.IllegalStateException: Cannot write Elasticsearch yml settings file
        at org.sonar.application.es.EsYmlSettings.writeToYmlSettingsFile(EsYmlSettings.java:53)
        at org.sonar.application.ProcessLauncherImpl.writeConfFiles(ProcessLauncherImpl.java:152)
        at org.sonar.application.ProcessLauncherImpl.launch(ProcessLauncherImpl.java:84)
        at org.sonar.application.SchedulerImpl.lambda$tryToStartProcess$2(SchedulerImpl.java:196)
        at org.sonar.application.process.ManagedProcessHandler.start(ManagedProcessHandler.java:73)
        at org.sonar.application.SchedulerImpl.tryToStartProcess(SchedulerImpl.java:194)
        at org.sonar.application.SchedulerImpl.tryToStartEs(SchedulerImpl.java:146)
        at org.sonar.application.SchedulerImpl.tryToStartAll(SchedulerImpl.java:138)
        at org.sonar.application.SchedulerImpl.schedule(SchedulerImpl.java:112)
        at org.sonar.application.App.start(App.java:69)
        at org.sonar.application.App.main(App.java:98)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.nio.file.AccessDeniedException: /usr/sonarqube-8.4.1.35646/temp/conf/es/elasticsearch.yml
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
        at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
        at java.base/java.nio.file.Files.newOutputStream(Files.java:219)
        at java.base/java.nio.file.Files.write(Files.java:3424)
        at org.sonar.application.es.EsYmlSettings.writeToYmlSettingsFile(EsYmlSettings.java:51)
        ... 16 common frames omitted
2021.02.10 14:59:01 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.02.10 14:59:01 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2021.02.10 14:59:01 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

:man_facepalming: My bad. It’s in the ./sonar.sh file.

You probably need to run a chown -R on the SonarQube install directory to make sure the user starting SonarQube has full read/write access to the directory. For example:

chown -R sonarqube:sonarqube /home/sonarqube

I’m also assuming you haven’t made any changes to where SonarQube stores files (sonar.path.data and sonar.path.temp in your conf/sonar.properties filie. In the odd case that you have, you can apply the same logic: the user running SonarQube should be able to read/write to these directories/files, preferably own them.

no changes were made, the vm was down - i was simply trying to get it back up! let me try and see all your suggestions!

this worked! (the Chown)! thank you so much!!

I do have another question! do you have info about upgrades of versions and from on license level to another? (regular install not docker)

The Upgrade Guide and Upgrade Notes are the best resource available. Changing Edition is as easy as making sure you’ve downloaded the right one (and otherwise treating it as a normal upgrade, just with a license to apply when you’re up and going).

fast question, i want to install the latest version on centos (regular zip install)
im using : wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.6.1.zip
and getting:
–2021-02-11 10:18:24-- https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.6.1.zip
Resolving binaries.sonarsource.com (binaries.sonarsource.com)… 91.134.125.245
Connecting to binaries.sonarsource.com (binaries.sonarsource.com)|91.134.125.245|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2021-02-11 10:18:25 ERROR 404: Not Found.

Well that link just… doesn’t exist.

You’re probably looking for https://binaries.sonarsource.com/CommercialDistribution/sonarqube-enterprise/sonarqube-enterprise-8.6.1.40680.zip

thank you ! it worked, but i do face 2 difficulties
1- after the upgrade i go to marketplace and find NON of the former plugins i had installed in the old version

2 new licence is taking in account old license LOC count so i got a drop of 470K from 1 Mil i got with the new licence

can you advise on both issues?

https://community.sonarsource.com/t/sonarqube-v8-5-and-beyond-where-did-all-the-plugins-go/32792/2

I’m not sure. I quite understand your issue. A license defines the max LoC on your instance. It does not, for example, add 1 Million LoC, 1 Million LoC is just your new upper limit.