Good day, I have a problem installing Sonarqube 6.7.4 LTS, I use Ubuntu Server 16.04, Mysql 5.7, Java8 JDK.
- Install Java with the following commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
- Install MySql 5.7 with the following commands:
sudo apt-get update
sudo apt install mysql-server-5.7
sudo systemctl start mysql
- I create the database and the user with the respective permissions:
CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'sonar' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';
FLUSH PRIVILEGES;
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.web.host=0.0.0.0
sonar.web.port=9000
sonar.web.context=/sonar
When the sonar.sh service is executed, the database migration is not performed (it is shown empty), the service is started for a few seconds and it is stopped. Implement the SonarQube server as a service but it still does not work.
The sonar.log file shows the following:
Launching a JVM...
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2018.06.05 17:13:42 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2018.06.05 17:13:42 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /
127.0.0.1:90012018.06.05 17:13:42 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonar/elasticsearch]: /opt/sonar/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonar/temp/conf/es
2018.06.05 17:13:42 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.06.05 17:13:43 INFO app[][o.e.p.PluginsService] no modules loaded
2018.06.05 17:13:43 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.06.05 17:13:44 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
2018.06.05 17:13:44 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.06.05 17:13:44 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Please I need a support, I have several days with this case.