Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

plugin is not reconnect after postgres reboot #30

@tepkuh

Description

@tepkuh

After reboot PostgreSQL plugin does not try to re-connect

RabbitMQ: 3.8.14
Erlang: 23.3.1
Plugin version: 1.0.0a1
PostgreSQL: 13.2

Log from rabbitmq:

2021-04-04 00:03:30.512 [info] <0.2249.1> Closing all channels from connection '<rabbit@app1.1617395075.2232.1>' because it has been closed
2021-04-04 00:06:56.002 [error] <0.27907.0> Supervisor {<0.27907.0>,mirrored_supervisor_sups} had child pgsql_listen_worker started with pgsql_listen_worker:start_link() at <0.280.1> exit with reason {shutdown,{error,fatal,<<"57P01">>,admin_shutdown,<<"terminating connection due to administrator command">>,[{file,<<"postgres.c">>},{line,<<"3090">>},{routine,<<"ProcessInterrupts">>},{severity,<<"FATAL">>}]}} in context child_terminated
2021-04-04 00:06:56.401 [error] <0.2391.1> pgsql_listen_lib:ensure_pgsql_connection/2 error: {error,fatal,<<"57P03">>,cannot_connect_now,<<"the database system is shutting down">>,[{file,<<"postmaster.c">>},{line,<<"2324">>},{routine,<<"ProcessStartupPacket">>},{severity,<<"FATAL">>}]}
2021-04-04 00:06:56.401 [error] <0.2391.1> pgsql_listen_exchange startup error for {resource,<<"/">>,exchange,<<"notification">>}: {error,fatal,<<"57P03">>,cannot_connect_now,<<"the database system is shutting down">>,[{file,<<"postmaster.c">>},{line,<<"2324">>},{routine,<<"ProcessStartupPacket">>},{severity,<<"FATAL">>}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions