I am using DBI
and pqdriver
for Postgres via RPostgres::Postgres()
to establish a connection like the following.
con <- DBI::dbConnect(RPostgres::Postgres(), dbname = "my_db", host = "10.10.10.194", port = 5432, user = "my_user", password = "my_password")
Using the same connector, I am able to connect to a UAT version of our environment but unable to connect to production - despite all credens etc. being correct.
The error I get is:
Error: server closed the connection unexpectedly. This probably means the server terminated abnormally before or while processing the request.
For the life of me, I am unable to understand how to debug this issue. I am able to successfully telnet
, but only while connecting like the above my attempt fails.
Update 1
I tried checking with IT/DB admin, and they wonder if this is happening because dbConnect
is using any proxies to access. Not sure how I can see this?
Also, I tried traceback
to get the following (I am sure there will be better ways of debugging which I am unaware of...)
Update 2
This is what I get if I run via JDBC: