Create
Showing results for
Search instead for
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Hi all,

When I try to test the database connection, I have the following error :

Can't reach database server or port

SQLState - 08001
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.

The postgresql.conf file looks like :

# - Connection Settings -

listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)

The pg_hba.conf file looks like :

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 ident
host all all localhost/24 trust

The PostgreSQL service is running.

I tried also to disable the firewall and the antivirus.....without success.

What should I try more ?

Thanks in advance for your precious help

Windows 7 / confluence installed on the same computer as PostgreSQL 10

Windows 7 / Confluence installed on the same computer as PostgreSQL10

It sounds like you saw Confluence PostgreSQL JDBC direct connection refused . Please double check that PostgreSQL was restarted after the authentication was set to trust instead of ident.

On a side note, I don't think this is the cause of the issue but PostgreSQL ver. 10 is not a supported platform for Confluence 6.4.x: Supported Platforms