【问题标题】:sonar-runner unable to launch on fedora19sonar-runner 无法在 fedora19 上启动
【发布时间】:2014-06-19 01:16:48
【问题描述】:

我的詹金斯工作因以下错误而失败..我已经验证了数据库进程及其登录...

看起来不错..

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.)

嵌套结果

# 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

【问题讨论】:

  • # 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 12跨度>
  • 能贴一下sonar runner的配置(去掉db的passwd)吗?

标签: jenkins jenkins-plugins sonarqube sonar-runner jenkins-cli


【解决方案1】:

观察..我发现posgresql.conf文件中的配置需要更改,参数listen_addresses...更改后..效果很好。

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

listen_addresses = '*'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-10
    • 2020-04-16
    • 1970-01-01
    • 2016-09-16
    • 2015-10-25
    • 1970-01-01
    • 2016-09-26
    • 2016-08-27
    相关资源
    最近更新 更多