Connection fails on one system in a address range allowed to connect

From: "Johnson, Bruce E - (bjohnson)" <Johnson(at)pharmacy(dot)arizona(dot)edu>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Connection fails on one system in a address range allowed to connect
Date: 2023-11-21 23:27:29
Message-ID: 55C98A3B-4D99-4F39-8A2D-31D25E456F2B@arizona.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am migrating an existing web application from Oracle to postgres and I’m testing the connectivity.

Trying to run a test program (that works on another system in the same subnet!) I get this error:

Error system:

[root(at)dhbroomscheduling4 ~]# ./pg_test.pl
DBI connect('dbname=webdata;host=dhbpostgres.pharmacy.arizona.edu;port=5432','trav',...) failed: FATAL: password authentication failed for user "trav"
FATAL: no pg_hba.conf entry for host "150.135.124.50", user "trav", database "webdata", no encryption at ./pg_test.pl line 8.

Working system:

[root(at)avipg perl]# ./pg_test.pl
Sector Alpha Crucis has 44 worlds
Sector Antares has 37 worlds
Sector Core has 221 worlds …

(The test dataset is a collection of mapping data for an old RPG game)

Note the pg_test.pl script was copied from the working server to the non working one.

The pg_hba.conf on the server includes this which should encompass all systems in this VLAN

# external 'OldMTM' site range
hostssl all all 150.135.124.0/25 password

Another system in the same address range is working just fine with the identical setup, in fact it’s in production without issues.

Both systems are running Rocky Linux 9, using the perl DBI interface with DBD::Pg all installed from the Rocky Linux repositories.

Firewall settings, Perl version, env variables etc are the same on both client hosts

I know the password is correct because I just successfully logged in on the server with psql -U trav -d webdata -W and used the password in the connect statement in the script.

Anywhere else that I should look for a cause?

--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2023-11-22 06:19:54 Re: Removing oids with pg_repack
Previous Message David G. Johnston 2023-11-21 19:30:04 Re: Retrieve results in PostgreSQL stored procedure allowing query parallelism