Comments on How to Install SonarQube on Ubuntu 18.04 LTS

SonarQube is an open source platform to continuously inspect code quality of applications, it supports more than 20 programming languages and different databases. In this tutorial, we will learn how to install SonarQube on Ubuntu 18.04 LTS (Bionic Beaver).

6 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Richard

From what I see you are installing Oracle java but didn't use update-alternatives and are still using the OpenJDK from the standard repository? (see Java -v) Which works prefectly well BTW. No Oracle Java needed.

Next to that I am wondering why you don't use the PostgreSQL version from repositories? It offers version 10.6 which is perfect for SonarQube and easier to install.

Last but not least I am using Nginx as proxy, but that is my personal preference.

By: steve johnson

Thanks for detailed docs.  Much better than on the sonarqube website.  Mine instal kept restarting the service.  The logs said I needed UTF8 isntead of Latin1.  So I had to create the database like this: CREATE DATABASE sonar WITH OWNER sonar ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TEMPLATE template0;

By: Alec

Nope, does not work.

Active: failed (Result: start-limit-hit) since Wed 2019-08-07 05:57:06 UTC; 3min 53s ago

Kinf of did not think it would, but thanks anyway.

By: Alec

Aug 07 06:35:35 services sonar.sh[13810]: Failed to start SonarQube.Aug 07 06:35:35 services sonar.sh[13865]: Stopping SonarQube...Aug 07 06:35:35 services sonar.sh[13865]: SonarQube was not running.Aug 07 06:35:35 services systemd[1]: Started SonarQube service.Aug 07 06:36:30 services systemd[1]: Starting SonarQube service...Aug 07 06:36:30 services sonar.sh[13928]: Starting SonarQube...Aug 07 06:36:31 services sonar.sh[13928]: Failed to start SonarQube.Aug 07 06:36:31 services sonar.sh[13986]: Stopping SonarQube...Aug 07 06:36:31 services sonar.sh[13986]: SonarQube was not running.Aug 07 06:36:31 services systemd[1]: Started SonarQube service.

.. and it is not running.

By: Sam T

Went thru all the steps, but This command fails:  sudo chown -R sonar:sonar /opt/sonarqube

chown: invalid user: ‘sonar:sonar’

 

By: Hugo

at the time to execute

Next, switch to the postgres user with the following command:

su - postgres it asks for a password, but the documentation does not specify any. which password can be used?