For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > March 2004 > DBI and Postgres problem: Undefined subroutine &DBD::Pg::db::_login called









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DBI and Postgres problem: Undefined subroutine &DBD::Pg::db::_login called
Heiko Sippel

2004-03-19, 12:56 pm

Hello,

after transfering a working Perl application to a second server we havnow
have trouble with the connection to a Postgres database which lies on
another server and is unchanged. The application still runs on the old
server, but we cannot open a connection on the new server. Instead we get
the error message:

-------------------------------------------------------

Had to create DBD::Pg::dr::imp_data_size unexpectedly at
/usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm line 687.
Had to create DBD::Pg::db::imp_data_size unexpectedly at
/usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm line 687.
[Wed Mar 15 10:47:30 2004] [error] Undefined subroutine &DBD::Pg::db::_login
called at /usr/lib/perl5/site_perl/5.005/i386-linux/DBD/Pg.pm line 94.
(in cleanup) Driver has not implemented DESTROY for DBI::db=HASH(0x86d3058)
at /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Registry.pm line 144

-------------------------------------------------------

We can connect to the database by other means (java jdbc), so routing should
not be the trouble.

The application itself is the same, as mentioned before, but apache configs
may be different. However, we do not know what to look for. Is this a
misconfiguration problem? We are quite certain that the Perl libs are
identical on both machines.


Matt S Trout

2004-03-19, 12:56 pm

In article <c39ttt$25slkd$1@ID-211349.news.uni-berlin.de>,
Heiko Sippel <heiko.sippel@djinnsoft.de> wrote:
>Hello,
>
>after transfering a working Perl application to a second server we havnow
>have trouble with the connection to a Postgres database which lies on
>another server and is unchanged. The application still runs on the old
>server, but we cannot open a connection on the new server. Instead we get
>the error message:
>
>-------------------------------------------------------
>
>Had to create DBD::Pg::dr::imp_data_size unexpectedly at
>/usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm line 687.
>Had to create DBD::Pg::db::imp_data_size unexpectedly at
>/usr/lib/perl5/site_perl/5.005/i386-linux/DBI.pm line 687.
>[Wed Mar 15 10:47:30 2004] [error] Undefined subroutine &DBD::Pg::db::_login
>called at /usr/lib/perl5/site_perl/5.005/i386-linux/DBD/Pg.pm line 94.
>(in cleanup) Driver has not implemented DESTROY for DBI::db=HASH(0x86d3058)
>at /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Registry.pm line 144
>
>-------------------------------------------------------


I'd strongly suspect this means your DBD::Pg install is broken on the server
you've moved your application to.

I'd suggest upgrading to/reinstalling the latest version, making sure all the
tests pass - if they all do I'd be very surprised if the new install doesn't
fix the problem.
--
Bring me my etherkiller; Oh clouds unfold! / Bring me the magic smoke of desire
I shall not cease from mental fight / Nor shall my LART rest in my hand
Till we have buried the bodies / Of all the lusers in all this land
-- rpg, ASR [ My homepage is http://www.trout.me.uk ]
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com