Getting elasticsearch \"can not run as root\" error after upgrading from SonarQube 6.5 to 6.6. Nothing else changed.
CentOS release 6.8 (Final) Java(TM) SE Runtime Envir
Change in systemd:
User=sonar Group=sonar
and change all source and #RUN_AS_USER=sonar It will run. It seem the error in enviroment when run in root then su to sonar
#RUN_AS_USER=sonar