When you tried to configure SonarQube, you may experience the below error:
SonarQube does not support being run as
Fix for the above issue:
create a user called sonar by executing below command:
sudo useradd sonar
sudo chown -R sonar:sonar sonar-install-folder/
Edit the sonar.sh start script and change the #RUN_AS_USER to be RUN_AS_USER=sonar
sudo vi /opt/sonarqube/bin/linux-x86-64/sonar.sh
Change
RUN_AS_USER=sonar
2018.10.15 17:32:13 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.RuntimeException: can not run elasticsearch as root
~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195)
SonarQube does not support being run as
root user, so we need to create regular user like sonar and give privilege to that use. Fix for the above issue:
create a user called sonar by executing below command:
sudo useradd sonar
sudo chown -R sonar:sonar sonar-install-folder/
Edit the sonar.sh start script and change the #RUN_AS_USER to be RUN_AS_USER=sonar
sudo vi /opt/sonarqube/bin/linux-x86-64/sonar.sh
Change
RUN_AS_USER=sonar
now start the server
sudo sh /opt/sonarqube/bin/linux-x86- 64/sonar.sh start
This should fix that issue.
679977CA
ReplyDeleteagoda güvenilir mi
agoda güvenilir mi
agoda güvenilir mi
8522AB5A
ReplyDeleteÇorum
Kırşehir
Batman
Tunceli
Bilecik
Bitlis
Çanakkale
Sivas
Antep
68FFE220
ReplyDeleteGüzelbahçe
Kozan
Pursaklar
Ağva
Elvankent
Ortaköy
Çatalca
Çayyolu
Karesi
6E6BE9D9
ReplyDeleteİnegöl
Seyhan
Beyoğlu
Menemen
Ayvalık
Akyaka
Çeşme
Akşehir
Demetevler
19D9DA59
ReplyDeleteKalkan
Susurluk
Kınık
Soma
Kemalpaşa
Eşme
Aksu
Akşehir
Ortaköy