Re: Apache::DBI "connection lost contact" error

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC0_be3QyXBsbskAnsqAy+LP4-7kGH7cObOR=zF3akwFH0SAUA@mail.gmail.com>
On Fri, May 31, 2013 at 5:45 PM, Xinhuan Zheng <[email protected]>
wrote:
> 2520 Apache::DBI             skipping connection during server startup,
read the docu !!
> 2520 Apache::DBI             skipping connection during server startup,
read the docu !!

That's good.

> 2521 Apache::DBI             push PerlChildExitHandler
> 2521 Apache::DBI             need ping: yes
> 2521 Apache::DBI             new connect to '….'
> 2521 Apache::DBI             disconnect (overloaded)
> 2521 Apache::DBI             need ping: yes
> 2521 Apache::DBI             already connected to '….'
> 2521 Apache::DBI             disconnect (overloaded)

That's not good.  If this is still part of the startup process, that
shouldn't be caching the database handle.

If you don't use Apache::DBI, do you still see these Oracle errors?

> Are children using same Database Handle?

It looks like that first handle is being copied across the fork from the
parent process.  They don't really use it, because it fails the ping test
and they just open new handles.  It should not cause any real problems,
just the error in your log.

> Does Apache::DBI work right with Apache2+mod_perl2?

Yes, but there may be a bug in how it checks to see if the server is
restarting.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.