You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
#632
Open
pragatiipatil opened this issue
Apr 20, 2023
· 0 comments
I'm getting the error '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.' error when I'm trying to run my application on docker.
Please help me with the fix.
Below are some of the details:
System OS: mac OS
postgres port: 5432
I made changes in the postgresql.conf and set listen_addresses = '*'
and in pg_hba.conf
host all all 0.0.0.0/0
changed the 127.0.0.1/32 change to 0.0.0.0/0
Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
I'm getting the error '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.' error when I'm trying to run my application on docker.
Please help me with the fix.
Below are some of the details:
System OS: mac OS
postgres port: 5432
I made changes in the postgresql.conf and set listen_addresses = '*'
and in pg_hba.conf
host all all 0.0.0.0/0
changed the 127.0.0.1/32 change to 0.0.0.0/0
Thank you.
The text was updated successfully, but these errors were encountered: