Skip to content

DESTROY failed: no connection #126

@dmr3

Description

@dmr3

I am running Mojolicious services that use DBD::Pg through DBIx::Class or Mojo::Pg. Periodically, I see in the logs the following DBI exception a few times per day (difficult to reproduce):

(in cleanup) DBD::Pg::st DESTROY failed: no connection to the server

I found a silencing of the warning in the forking section of t/02attribs.t

local $SIG{__WARN__} = sub { warn $_[0] unless $_[0] =~ /DESTROY failed: no connection/ }; # shut up destroy warning

so this seems like the best place to ask about this DBI exception!

My services appear to churn along happily, reconnecting as needed. I checked and I am using AutoInactiveDestroy => 1 via DBI. I also run versions of the same services with connections to DBD::Oracle; there are no analogous exceptions coming through Oracle::DBD.

Would someone be able to provide more information about the exception and whether it can be avoided?

EDIT:
Perl v5.30.0
DBI::VERSION = 1.643
DBD::Pg::VERSION = 3.14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions