Sonarqube unable to connect to ElasticSearch

Hi community,

I’m having trouble starting the sonar server. It was working fine 1 day ago but suddenly it is failing.
We’ve searched thorough the community issues and github issues as well.
please help.sonar.log (1.2 MB) es.log (17.5 KB) ce.log (7.6 KB) web.log (246 Bytes) hs_err_pid3345.log.txt (29.0 KB)

log files attached.
thanks !

we’ve restarted the ubuntu server where sonarqube was hosted. It is working now. Doesn’t know why the issue occurred and why it got fixed after a server restart. The logs are pointing something else.

In case you’re trying to figure out what went wrong, I can see evidence there was an issue connecting to the database:

### Cause: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

We don’t generally recommend running SonarQube and the database together on the same server. You might consider dedicating a separate server to the database and then monitoring it in the future.

We’ll consider your recommendation, Jeff. Thanks !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.