El día martes, noviembre 28, 2023 a las 11:14:35 +0000, Mark Lawrence via 
dbi-users escribió:

> > the 'use DBI;' already does a connect to the server and tries to read
> > the names of the available databases from the server:
> 
> I would check this assumption, because it strikes me as extremely unlikely.
> DBI does not load any drivers at use or require/import time.

I was wrong with this.

> >       ERROR: 1 'connection to server at "sisis-db" (172.16.6.3), port 5432 
> > failed: FATAL:  no pg_hba.conf entry for host "172.16.5.3", user "nobody", 
> > database "postgres", no encryption' (err#0)
> >    <- DESTROY(DBI::db=HASH(0x391fc98))= ( undef ) [1 items] at Pg.pm line 
> > 264
> >    !! ERROR: 1 'connection to server at "sisis-db" (172.16.6.3), port 5432 
> > failed: FATAL:  no pg_hba.conf entry for host "172.16.5.3", user "nobody", 
> > database "postgres", no encryption' (err#0)
> >    <- data_sources= ( ) [0 items] at DBI.pm line 1074
> 
> This appears to be the result of a call to DBI->data_sources(). Are you
> calling that somewhere?

Exactly, we were calling it without correct credentials in the env vars
PGUSER, PGPASSWORD. Thanks for your hint. The code of this module is
more than thousand lines long and not written by me.

        matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

I am not at war with Russia.  Я не воюю с Россией.
Ich bin nicht im Krieg mit Russland.

Reply via email to