how to launch sonarqube?
SonarQube 6.7 includes an upgraded version of Elasticsearch which cannot be run as root. Thus, SonarQube can no longer be run as root.
The blog post you followed seems to recommend / assume that you're running as root. To not start SonarQube as root, simply end your su
session, or log back in as yourself to start the process. Note that you'll need to make sure the user you are starting SonarQube as has 7 (read, write, execute) on the SonarQube directory, recursively, and 6 (read, write) on the log files if they already exist.
In my case, the Java version was the problem.
I installed Oracle JDK 8 for for sonarcube 6.7.1, which resolved the problem:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
You can read more about the supported platforms here. For now, only Java 8 is supported.
I got the following error in cmd:
INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running INFO app[][o.e.p.PluginsService] no modules loaded INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
It had problems setting up Elasticsearch on its default port number 9001. (You can check it in the logs folder: .\sonarqube-7.6\logs
)
I just changed the port number from 9001 to 0 in the sonarqube properties file.
Go to- .\sonarqube-7.6\conf\sonar.properties
and set sonar.search.port=0
Port 0 takes any port which is unused.
Good luck with the changes