Alex Rivera | Logout

Sonar Installation problem

Asked 2011-01-25T07:45:43.710
9

Information about Installation

Using embedded database Derbis

Problem :

I run bin/windows-x86-32/StartSonar.bat and then click http://localhost:9000

On clicking this, I get the following error:

We're sorry, but something went wrong.
Please try back in a few minutes and contact support if the problem persists.
<%= link_to "Go back to the homepage", home_path %>

Do you know what to do with that error message.

Edit
Report

1 Answer

6

I usually get that message when the database isn't correctly set (either the local has an issue, in which case I try a fresh installation).
Or the mysql database you can associate has an issue (wrong 'sonar.jdbc.username' or 'sonar.jdbc.password' in sonar.properties file.).
Or the default port for the embedded database (jdbc:derby://localhost:1527/sonar;create=true) isn't available on your server/workstation.


If you are using a Mysql database (not your case), you need to create it first:

mysql [localhost] {root} ((none)) > CREATE DATABASE IF NOT EXISTS sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.01 sec)

mysql [localhost] {root} ((none)) > grant all privileges on sonar.* to 'sonar'@'localhost' identified by 'sonar';
Query OK, 0 rows affected (0.00 sec)

mysql [localhost] {root} ((none)) > flush privileges;
Query OK, 0 rows affected (0.00 sec)

Q4 2023, Purval Patel mentions in the comments to his blog post:

"SonarQube installation Ubuntu"

answered 2011-01-25T08:55:11.983

Your Answer