Authentication
$POSTGRESQL_HOME/data/pg_hba.conf
-
Modify "local all all peer" to "local all all trust" to enable "sonar" login in with "psql -U sonar".
-
Modify "host all all 127.0.0.1/32 ident" to "host all all 127.0.0.1/32 trust" to enable SonarQube communicate with Postgresql database; or define a access rule in "pg_ident.conf".
-
If you can connect to SonarQube server only on localhost, try shutdown firewall: "service iptables stop" or open the port following Configure Firewalls on Linux .
-
List all projects in Postgresql database:
$ psql -U sonar select * from projects;