public inbox for [email protected]  
help / color / mirror / Atom feed
issues connecting to RDS from psql 9.2 v 14.2
5+ messages / 3 participants
[nested] [flat]

* issues connecting to RDS from psql 9.2 v 14.2
@ 2022-04-27 16:13  Capobianco, Tony <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Capobianco, Tony @ 2022-04-27 16:13 UTC (permalink / raw)
  To: [email protected] <[email protected]>

Our RHEL 7.9 installation comes with PostgreSQL 9.2 installed which I know has been desupported.  We installed 14.2 in a non-default location and observe this unusual behavior:

[postgres@servername ~]$ psql -h RDS-instance.rds.amazonaws.com -p 5432 -d dbname -U root
Password for user root:
psql (9.2.24, server 12.8)
WARNING: psql version 9.2, server version 12.0.
         Some psql features might not work.
SSL connection (cipher: cipher text here, bits: 256)
Type "help" for help.

daldb=> \q
[postgres@ servername ~]$ export LD_LIBRARY_PATH=/u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/lib
[postgres@ servername ~]$ /u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/bin/psql -h RDS-instance.rds.amazonaws.com -p 5432 -d dbname -U root
psql: error: connection to server at " RDS-instance.rds.amazonaws.com " (10.33.131.184), port 5432 failed: FATAL:  no pg_hba.conf entry for host "10.11.12.13", user "root", database "dbname", SSL off
[postgres@ servername ~]$

Any ideas of why I'm encountering this issue?

Thanks.

Tony


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: issues connecting to RDS from psql 9.2 v 14.2
@ 2022-04-27 16:47  Tom Lane <[email protected]>
  parent: Capobianco, Tony <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2022-04-27 16:47 UTC (permalink / raw)
  To: Capobianco, Tony <[email protected]>; +Cc: [email protected] <[email protected]>

"Capobianco, Tony" <[email protected]> writes:
> Our RHEL 7.9 installation comes with PostgreSQL 9.2 installed which I know has been desupported.  We installed 14.2 in a non-default location and observe this unusual behavior:
> [postgres@servername ~]$ psql -h RDS-instance.rds.amazonaws.com -p 5432 -d dbname -U root
> Password for user root:
> psql (9.2.24, server 12.8)
> WARNING: psql version 9.2, server version 12.0.
>          Some psql features might not work.
> SSL connection (cipher: cipher text here, bits: 256)
> Type "help" for help.

> daldb=> \q
> [postgres@ servername ~]$ export LD_LIBRARY_PATH=/u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/lib
> [postgres@ servername ~]$ /u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/bin/psql -h RDS-instance.rds.amazonaws.com -p 5432 -d dbname -U root
> psql: error: connection to server at " RDS-instance.rds.amazonaws.com " (10.33.131.184), port 5432 failed: FATAL:  no pg_hba.conf entry for host "10.11.12.13", user "root", database "dbname", SSL off
> [postgres@ servername ~]$

> Any ideas of why I'm encountering this issue?

Looks like you neglected to build psql with OpenSSL support,
and the server is insisting on having an SSL connection.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: issues connecting to RDS from psql 9.2 v 14.2
@ 2022-04-27 19:16  Capobianco, Tony <[email protected]>
  parent: Tom Lane <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Capobianco, Tony @ 2022-04-27 19:16 UTC (permalink / raw)
  To: Tom Lane <[email protected]>; +Cc: [email protected] <[email protected]>

Ok, that makes sense.  Attempting the below, but receiving this error:

./configure --without-readline --with-includes=/usr/lib --with-openssl

checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL

[postgres@servername postgresql-14.2]$ ls -lhrt /usr/lib/*crypt*
-rwxr-xr-x 1 root root 547K Feb 28  2017 /usr/lib/libgcrypt.so.11.8.2
lrwxrwxrwx 1 root root   19 Aug 29  2017 /usr/lib/libgcrypt.so.11 -> libgcrypt.so.11.8.2
-rwxr-xr-x 1 root root  38K Sep 14  2021 /usr/lib/libcrypt-2.17.so
lrwxrwxrwx 1 root root   16 Nov 12 07:01 /usr/lib/libcrypt.so.1 -> libcrypt-2.17.so
lrwxrwxrwx 1 root root   23 Nov 12 07:01 /usr/lib/libcrypt.so -> ../../lib/libcrypt.so.1

Tony 

-----Original Message-----
From: Tom Lane <[email protected]> 
Sent: Wednesday, April 27, 2022 12:47 PM
To: Capobianco, Tony <[email protected]>
Cc: [email protected]
Subject: Re: issues connecting to RDS from psql 9.2 v 14.2

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


"Capobianco, Tony" <[email protected]> writes:
> Our RHEL 7.9 installation comes with PostgreSQL 9.2 installed which I know has been desupported.  We installed 14.2 in a non-default location and observe this unusual behavior:
> [postgres@servername ~]$ psql -h RDS-instance.rds.amazonaws.com -p 
> 5432 -d dbname -U root Password for user root:
> psql (9.2.24, server 12.8)
> WARNING: psql version 9.2, server version 12.0.
>          Some psql features might not work.
> SSL connection (cipher: cipher text here, bits: 256) Type "help" for 
> help.

> daldb=> \q
> [postgres@ servername ~]$ export 
> LD_LIBRARY_PATH=/u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pg
> sql/lib [postgres@ servername ~]$ 
> /u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/bin/psql -h 
> RDS-instance.rds.amazonaws.com -p 5432 -d dbname -U root
> psql: error: connection to server at " RDS-instance.rds.amazonaws.com 
> " (1.2.3.4), port 5432 failed: FATAL:  no pg_hba.conf entry for 
> host "1.2.3.4", user "root", database "dbname", SSL off [postgres@ 
> servername ~]$

> Any ideas of why I'm encountering this issue?

Looks like you neglected to build psql with OpenSSL support, and the server is insisting on having an SSL connection.

                        regards, tom lane






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: issues connecting to RDS from psql 9.2 v 14.2
@ 2022-04-27 21:19  Florents Tselai <[email protected]>
  parent: Capobianco, Tony <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Florents Tselai @ 2022-04-27 21:19 UTC (permalink / raw)
  To: Capobianco, Tony <[email protected]>; +Cc: Tom Lane <[email protected]>; [email protected] <[email protected]>



> On 27 Apr 2022, at 10:16 PM, Capobianco, Tony <[email protected]> wrote:
> 
> Ok, that makes sense. Attempting the below, but receiving this error:
> 
> ./configure --without-readline --with-includes=/usr/lib --with-openssl
> 
> checking for CRYPTO_new_ex_data in -lcrypto... no
> configure: error: library 'crypto' is required for OpenSSL

You don’t have crypto installed on your machine.

Try something like 

Redhat / Centos / Fedora : sudo yum install openssl-devel 
Ubuntu / Debian : sudo apt-get install libssl-dev

> 
> [postgres@servername postgresql-14.2]$ ls -lhrt /usr/lib/*crypt*
> -rwxr-xr-x 1 root root 547K Feb 28 2017 /usr/lib/libgcrypt.so.11.8.2
> lrwxrwxrwx 1 root root 19 Aug 29 2017 /usr/lib/libgcrypt.so.11 -> libgcrypt.so.11.8.2
> -rwxr-xr-x 1 root root 38K Sep 14 2021 /usr/lib/libcrypt-2.17.so
> lrwxrwxrwx 1 root root 16 Nov 12 07:01 /usr/lib/libcrypt.so.1 -> libcrypt-2.17.so
> lrwxrwxrwx 1 root root 23 Nov 12 07:01 /usr/lib/libcrypt.so -> ../../lib/libcrypt.so.1
> 
> Tony 
> 
> -----Original Message-----
> From: Tom Lane <[email protected] <mailto:[email protected]>> 
> Sent: Wednesday, April 27, 2022 12:47 PM
> To: Capobianco, Tony <[email protected] <mailto:[email protected]>>
> Cc: [email protected] <mailto:[email protected]>
> Subject: Re: issues connecting to RDS from psql 9.2 v 14.2
> 
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
> 
> 
> "Capobianco, Tony" <[email protected]> writes:
>> Our RHEL 7.9 installation comes with PostgreSQL 9.2 installed which I know has been desupported. We installed 14.2 in a non-default location and observe this unusual behavior:
>> [postgres@servername ~]$ psql -h RDS-instance.rds.amazonaws.com -p 
>> 5432 -d dbname -U root Password for user root:
>> psql (9.2.24, server 12.8)
>> WARNING: psql version 9.2, server version 12.0.
>> Some psql features might not work.
>> SSL connection (cipher: cipher text here, bits: 256) Type "help" for 
>> help.
> 
>> daldb=> \q
>> [postgres@ servername ~]$ export 
>> LD_LIBRARY_PATH=/u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pg
>> sql/lib [postgres@ servername ~]$ 
>> /u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/bin/psql -h 
>> RDS-instance.rds.amazonaws.com -p 5432 -d dbname -U root
>> psql: error: connection to server at " RDS-instance.rds.amazonaws.com 
>> " (1.2.3.4), port 5432 failed: FATAL: no pg_hba.conf entry for 
>> host "1.2.3.4", user "root", database "dbname", SSL off [postgres@ 
>> servername ~]$
> 
>> Any ideas of why I'm encountering this issue?
> 
> Looks like you neglected to build psql with OpenSSL support, and the server is insisting on having an SSL connection.
> 
> regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: issues connecting to RDS from psql 9.2 v 14.2
@ 2022-04-28 17:49  Capobianco, Tony <[email protected]>
  parent: Florents Tselai <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: Capobianco, Tony @ 2022-04-28 17:49 UTC (permalink / raw)
  To: Florents Tselai <[email protected]>; +Cc: Tom Lane <[email protected]>; [email protected] <[email protected]>

Bingo!  That was it.  Thanks so much!

Tony

From: Florents Tselai <[email protected]>
Sent: Wednesday, April 27, 2022 5:19 PM
To: Capobianco, Tony <[email protected]>
Cc: Tom Lane <[email protected]>; [email protected]
Subject: Re: issues connecting to RDS from psql 9.2 v 14.2

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.




On 27 Apr 2022, at 10:16 PM, Capobianco, Tony <[email protected]<mailto:[email protected]>> wrote:

Ok, that makes sense. Attempting the below, but receiving this error:

./configure --without-readline --with-includes=/usr/lib --with-openssl

checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL

You don't have crypto installed on your machine.

Try something like

Redhat / Centos / Fedora : sudo yum install openssl-devel
Ubuntu / Debian : sudo apt-get install libssl-dev


[postgres@servername postgresql-14.2]$ ls -lhrt /usr/lib/*crypt*
-rwxr-xr-x 1 root root 547K Feb 28 2017 /usr/lib/libgcrypt.so.11.8.2
lrwxrwxrwx 1 root root 19 Aug 29 2017 /usr/lib/libgcrypt.so.11 -> libgcrypt.so.11.8.2
-rwxr-xr-x 1 root root 38K Sep 14 2021 /usr/lib/libcrypt-2.17.so
lrwxrwxrwx 1 root root 16 Nov 12 07:01 /usr/lib/libcrypt.so.1 -> libcrypt-2.17.so
lrwxrwxrwx 1 root root 23 Nov 12 07:01 /usr/lib/libcrypt.so -> ../../lib/libcrypt.so.1

Tony

-----Original Message-----
From: Tom Lane <[email protected]<mailto:[email protected]>>
Sent: Wednesday, April 27, 2022 12:47 PM
To: Capobianco, Tony <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: issues connecting to RDS from psql 9.2 v 14.2

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


"Capobianco, Tony" <[email protected]<mailto:[email protected]>> writes:

Our RHEL 7.9 installation comes with PostgreSQL 9.2 installed which I know has been desupported. We installed 14.2 in a non-default location and observe this unusual behavior:
[postgres@servername ~]$ psql -h RDS-instance.rds.amazonaws.com<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Frds-instance.rds.amazonaws.com%2F&a...; -p
5432 -d dbname -U root Password for user root:
psql (9.2.24, server 12.8)
WARNING: psql version 9.2, server version 12.0.
Some psql features might not work.
SSL connection (cipher: cipher text here, bits: 256) Type "help" for
help.


daldb=> \q
[postgres@ servername ~]$ export
LD_LIBRARY_PATH=/u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pg
sql/lib [postgres@ servername ~]$
/u01/apps/postgres/postgresql-14.2/pg14.2/usr/local/pgsql/bin/psql -h
RDS-instance.rds.amazonaws.com<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Frds-instance.rds.amazonaws.com%2F&a...; -p 5432 -d dbname -U root
psql: error: connection to server at " RDS-instance.rds.amazonaws.com<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Frds-instance.rds.amazonaws.com%2F&a...;
" (1.2.3.4), port 5432 failed: FATAL: no pg_hba.conf entry for
host "1.2.3.4", user "root", database "dbname", SSL off [postgres@
servername ~]$


Any ideas of why I'm encountering this issue?

Looks like you neglected to build psql with OpenSSL support, and the server is insisting on having an SSL connection.

regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2022-04-28 17:49 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 16:13 issues connecting to RDS from psql 9.2 v 14.2 Capobianco, Tony <[email protected]>
2022-04-27 16:47 ` Tom Lane <[email protected]>
2022-04-27 19:16   ` Capobianco, Tony <[email protected]>
2022-04-27 21:19     ` Florents Tselai <[email protected]>
2022-04-28 17:49       ` Capobianco, Tony <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox