0

My jenkins job is failing with the below error.. i have verified the database process and its login as well...

It looks to be fine..

ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar

Caused by: java.lang.IllegalStateException: Fail to connect to database
    PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)

Result of nestat

# netstat -an |grep 5432 tcp 0 0 127.0.0.1:5432 127.0.0.1:35438 ESTABLISHED tcp 0 0 127.0.0.1:5432 127.0.0.1:35092 ESTABLISHED tcp6 0 0 ::1:5432 :::* LISTEN tcp6 0 0 127.0.0.1:35092 127.0.0.1:5432 ESTABLISHED tcp6 0 0 127.0.0.1:35317 127.0.0.1:5432 ESTABLISHED tcp6 0 0 127.0.0.1:35438 127.0.0.1:5432 ESTABLISHED
4

1 回答 1

0

观察..我发现posgresql.conf文件中的配置需要更改,参数listen_addresses...更改后..它工作正常。

/var/lib/pgsql/9.2/data/postgresql.conf

听地址 = '*'

于 2014-05-04T03:40:42.650 回答