Forum Discussion

Alex_Ooi's avatar
Alex_Ooi
Helper IV
6 years ago
Solved

Connecting PostgreSQL hosted in Google Cloud Platform

Hi there, most recently my company had moved its PostgreSQL RDS from AWS to GCP. Things were going fine until I reformatted my machine today. After hours of bantering through the solution here (https://community.powerbi.com/t5/Desktop/The-remote-certificate-is-invalid-according-to-the-validation/m-p/532504#M249591) I just realised the reason why I couldn't proceed would be due to the location where the server is hosted.

 

Right now, I am stuck because usually when I downloaded the npgsql driver, it would have worked when my PostgreSQL RDS was still hosted in AWS in the past. Like, I don't even know should I download pgAdmin (because I tried that and it still didn't work anyway).

 

The errors returned are a few iterative ones, which seems to be running in circles when I tried other solutions:

"We couldn't authenticate with the credentials provided. Please try again."

But I could run my queries in Navicat just fine with no connectivity issues like this.

 

"Could not receive data from client: No connection could be made because the target machine actively refused it."

I revoked my credentials, then made sure they are set in database level and not Windows level. The problem still persists.

 

"Could not connect to server: Connection refused (0x0000274D/10061)"

This happens to be the most technical problem that I don't even understand where to head after reading some articles.

 

I am not a programmer, neither am I an expert with softwares. I would really appreciate if there are any database architect who's able to explain in details to me how all these should work in a GCP environment.

  • Alex_Ooi's avatar
    Alex_Ooi
    6 years ago

    Hi Anonymous after discussing with my DevOps, the root cause of this problem is not with the SSL certificate. Rather, it was with the proxy connection where the request was refused. When he gave me the principal IP to connect with, all problems solved. I will close this case now. Thank you for your response.

4 Replies