<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I’ve been running into a weird issue with the pgsql_listen_exchange plugin code that I’ve been trying to fix.<div><br></div><div>If you start a fresh RabbitMQ install with an empty database and the plugin enabled, it will exit due to a no_such_vhost error for <<“/“>> in the rabbit_error_log module start/0. Logs:</div><div><br></div><div><a href="https://gist.github.com/gmr/b29e672db7d4423defd1">https://gist.github.com/gmr/b29e672db7d4423defd1</a></div><div><br></div><div>What is odd about it, is if the database is not empty, that is rabbitmq is started before enabling the plugin, everything works just fine. This seems to be consistent with the default branch as well as with 3.3.0+. I’ve not tried earlier versions of RabbitMQ.</div><div><br></div><div>It seems it probably has something to do with the rabbit_boot_step ordering of my plugin combined with some logging somewhere in combination to the initial creation of the rabbitmq mnesia database, but I’m at a loss as to what’s going on beyond that.</div><div><br></div><div>If I change the plugin to run later in the boot step ordering (i.e. have in come in after recover), it works fine for the initial load, but then if I declare an exchange, it is not loaded soon enough to be there for the exchange to be recovered on boot.</div><div><br></div><div>From digging through pretty much everything I could find with boot steps, it seems that I should be able to require rabbit_registry and enable recover for the proper behavior.</div><div><br></div><div>I also have two other modules with boot steps, one is a mirrored_supervisor that enables the exchange and requires kernel_ready and the other is a rabbit_policy_validator that requires rabbit_registry and enables recovery.</div><div><br></div><div>Any pointers on how I can debug what condition my plugin is creating to cause this failure would be greatly appreciated.</div><div><br></div><div>Gavin</div><div><br></div><div><br></div></body></html>