13-05-2021

Active4 years, 5 months ago

PgAdmin3 on Mac can be built by following these instructions: 1. CVS Checkout wxWindows 2. Cd wxWindows 3. Mkdir macbuild; cd macbuild 4../configure --prefix=/path/to/wx2 --with-mac --enable-unicode.

I have put together an Amazon RDS using Postgres. I can connect to the database via pgAdminIII on my Mac and my PC without any problems. But some folks trying to connect to my RDS site get the traditional timeout message.

Is there a way to debug pgAdminIII client pc/mac issues that might cause failure to connect?

The stackoverflow Q/A so far seem to be dedicated to first time connection from pgAdmin to Amazon RDS running PostgreSQL. Unlike those issues, some of my users simply can not connect to a known working database.

I am looking for ping, traceroute type tests that point to a firewall or other client PC/Mac setup problem????

user3078690

1 Answer

I have reduced the problem to 'Why are some pc/mac clients blocked from using the Amazon RDS port number: 5432 ?

On my home network, I can use port 5432, but other folks at their location (with their software and hardware security) can not.

Step 1

Test for valid instance name and port access (for mac or windows)

In a terminal window (for mac) or a CMD window (for PC) type this telent expression:

telnet xtrf3.[your host details].amazonaws.com 5432

Mac

Where the xtrf3.. portion of the telnet command. is the link to our PostgreSQL instance running on Amazon, and 5432 is the port number

If the telent test fails due to port number issues, you will get a long wait (maybe 2 minutes) for 'connecting to xtrf…” followed by: “Could not open connection to the host, on port 5432: Connect failed”

If the telnet test fails due to invalid Amazon RDS instance name, you will quickly get the following error: “Connecting To xtrf3.[your host details].amazonaws.com...Could not open connection to the host, on port 5432: Connect failed”

If the telnet test is successful you will get a blank screen very quickly. In this case your pc or mac can find the PostgreSQL instance using the required port number

Step 2

Assuming step 1 shows that the postgreSQL instance is active on Amazon RDS, but connection times out: I discovered that the Amazon EC-2 security setting for inbound traffic was incorrect.

Pgadmin 4 Download

In my case I set up inbound TCP source address to be my home Internet provider IP address. So I could connect from home, but no one at the office or at wifi locations could connect. Changing the source address to 'all' or 0.0.0.0/0 fixed the problem. Security is weaker, but the service is still password protected and good enough for this project.

One could create separate EC-2 inbound entries for each location where access is required, and eliminate the generic access to all as a further refinement once it is clear that the EC-2 security group setting was the problem.

Postgresql Mac Client

user3078690
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.