I have added in pg_hba.conf on the server side this line :
host all all host_ip md5
But i am still getting the error
DBI connect('database=databasename;host=server_host_ip','username',...) failed: FATAL: no pg_hba.conf entry for host "host_ip", user "username", database "databasename", SSL off at /usr/local/share/perl/5.10.1/DBIx/DataStore.pm line 1983.
[Fri Aug 24 11:01:03 2012] /usr/local/share/perl/5.10.1/DBIx/DataStore.pm,1029: Validation of connection to primary database failed!
Died at /usr/local/share/perl/5.10.1/DBIx/DataStore.pm line 1029.`
what i am missing?
UPDATE
perl merge_infos.pl
DBI connect('database=diamas;host=67.23.10.243','dia',...) failed: FATAL: no pg_hba.conf entry for host "38.104.59.18", user "dia", database "diamas", SSL off at /usr/local/share/perl/5.10.1/DBIx/DataStore.pm line 1983.
pg_hba.conf (remote sever)
host all all 38.104.59.18/32 trust
THE CALL (local machine)
(in script) merge_infos.pl
use DBIx::DataStore ( config => 'yaml' );
my $olddb = DBIx::DataStore->new('www');
datastore.yml
www:
primary:
driver: Pg
database: diamas
user: dia
password: ***
host: 67.23.10.243
schemas:
- public
postgresdaemon. Note that only the instances that don't currently handle connections are interesting. On one of my Debian systems I have these two processes running:/usr/lib/postgresql/8.3/bin/postgres -D /var/lib/postgresql/8.3/latin9 -c config_file=/etc/postgresql/8.3/latin9/postgresql.confand/usr/lib/postgresql/8.3/bin/postgres -D /var/lib/postgresql/8.3/unicode -c config_file=/etc/postgresql/8.3/unicode/postgresql.conf; those are two clusters/instances running on different ports, each with its ownpg_hba.confconfiguration file. - Moritz Bunkuspg_hba.conf, theDBI->connect(...)call (remove the actual password) and the error message printed by Perl. If possible also include the output of/sbin/ip address listor, ifipisn't installed, the output ofifconfig. - Moritz Bunkus