Archive November 2013

upgrade sonar 3 to 4

so easy as 5 simple steps :
– Download and unzip new sonarqube-4.0.zip : > unzip sonarqube-4.0.zip -d $NEW_SONAR_HOME
– Manually edit sonarqube-4.0/conf/sonar.properties and sonarqube-4.0/conf/wrapper.conf and copy old properties values from old sonar conf
– Copy extensions from old sonar to the new one (only extensions not having correspondent in the new sonar)
– stop old sonar and start the new one :
> $OLD_SONAR_HOME/bin/yourOS/sonar.sh stop
> $NEW_SONAR_HOME/bin/yourOS/sonar.sh start
– Go to http://localhost:9000/setup (assuming sonar listen in localhost) and finally click under upgrade button

losing sonar admin password

by default sonar creates admin account : user: admin, password : admin
when sonar admin password is changed and lost, simple way to reinitialize password to admin is with a simple sql command :
> musql -u sonar -p
mysql> use sonar
mysql> update users set crypted_password = ’88c991e39bb88b94178123a849606905ebf440f5′, salt=’6522f3c5007ae910ad690bb1bdbf264a34884c6d’ where login = ‘admin’
that’s all.