I install 7.9 version of sonarqube on aws ec2 instance and it is running fine. due to not compatible with my code i am upgrading to latest version 8.3. i download zip and unzip it. after stoping older version, i try to run it. i am getting error as below.
java.lang.IllegalStateException: Cannot write Elasticsearch yml settings file
Caused by: java.nio.file.AccessDeniedException: /opt/sonarqube/sonarqube-8.3/temp/conf/es/elasticsearch.yml
Have you tried to start SonarQube as root in a previous run? If so, the ES config file has been created as root and now when you're trying to start the service as another user it can't overwrite the file.
To fix it, delete the temp folder in your $SONAR_HOME and it should work.
sudo rm -r $SONAR_HOME/temp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With