[root@ip-172-31-27-4 conf]# systemctl status sonarqube.service
● sonarqube.service – SonarQube service
Loaded: loaded (/etc/systemd/system/sonarqube.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Tue 2021-08-10 18:26:49 +07; 5s ago
Process: 626 ExecStart=/bin/nohup /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java -Xms32m -Xmx32m -Djava.net.preferIPv4Stack=true -jar /usr/local/sonarqube-7.9.3/lib/sonar-application-7.9.3.jar (code=exited, status=1/FAILURE)
Main PID: 626 (code=exited, status=1/FAILURE)
Solution
chown -R sonar:sonar /opt/sonarqube
and don’t forget to change the sonar.sh file
RUN_AS_USER=sonar
You need to login in order to like this post: click here
YOU MIGHT ALSO LIKE