Can't Run Sonar Server Caused by Elasticsearch Cannot Running as Root

Can't run Sonar Server caused by Elasticsearch cannot running as root

Change the root access to the sonar file. Try running in normal user access.

chown <another user>:<user group> sonar.sh

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.



Related Topics



Leave a reply



Submit