[PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused

Hi Team,
Can someone help with installation issue in Ubuntu, I had installed Kong but when i am trying to start the kong, It is giving connection refused issue.

user1$ sudo kong start
2024/05/09 22:22:55 [warn] ulimit is currently set to “1024”. For better performance set it to at least “4096” using “ulimit -n”
2024/05/09 22:22:55 [warn] ulimit is currently set to “1024”. For better performance set it to at least “4096” using “ulimit -n”
Error: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused

Run with --v (verbose) or --vv (debug) for more details
user1$ psql --version
psql (PostgreSQL) 14.12 (Ubuntu 14.12-1.pgdg20.04+1)

@alerts.nagaraju It seems the network connectivity between the Kong host and the PG host is unavailable. Have you tried debugging the network connection using standard tools first to validate that a connection can be established?