Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonar Installation problem

Tags:

sonarqube

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.

like image 429
Sahil Rally Avatar asked Jan 25 '11 07:01

Sahil Rally


People also ask

How do I install SonarQube on Windows 10?

To install SonarQube on Windows, download the latest version, I got 6.2, from the website (https://www.sonarqube.org/downloads/). Unzip the contents of the zip file and put them somewhere. I simply unzipped the sonarqube-6.2 folder to C:\ . Now, we need to hook up SonarQube to the database.


2 Answers

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)
like image 117
VonC Avatar answered Oct 23 '22 10:10

VonC


http://localhost:9000/setup will initialize the database and correct this error

like image 41
MEC Avatar answered Oct 23 '22 09:10

MEC