Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash without logging when durable clashes #25

Open
mekanixdk opened this issue Nov 16, 2016 · 1 comment
Open

Crash without logging when durable clashes #25

mekanixdk opened this issue Nov 16, 2016 · 1 comment

Comments

@mekanixdk
Copy link
Contributor

Tried adding a publisher to a supervisor and the entire app crashed with little information.

{"Kernel pid terminated",application_controller,"{application_terminated,huginn_hydra,shutdown}"}

Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_terminated,huginn_hydra,shutdown})
make: *** [console] Error 1

With the help of @ahf we found that durable = false in the publisher while the Exchange was already running with durable = true

[error] gen_server <0.946.0> terminated with reason: {{shutdown,{server_initiated_close,406,<<"PRECONDITION_FAILED - inequivalent arg 'durable' for exchange 'shopgun.hydra_events' in vhost '/': received 'false' but current is 'true'">>}},{gen_server,call,[<0.950.0>,{call,{'exchange.declare',0,<<"shopgun.hydra_events">>,<<"topic">>,false,false,false,false,false,[]},none,<0.946.0>},infinity]}} in gen_server:call/3 line 212

This error was only exposed by running my_sup:start_link(). from console, could be nice to have that error when starting normally.

@jlouis
Copy link
Owner

jlouis commented Nov 16, 2016

Yes, this is inconvenient. The first step is to make a small reproducible case where this happens, so we can make sure we nail it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants