I'm getting crashes when publishing messages, it seems to happen every 20th message i publish or so. Maybe i'm doing something wrong but I can't make heads or tails of the error logs.
==> /var/log/rabbitmq/[email protected] <==
=INFO REPORT==== 13-Aug-2014::14:23:04 ===
accepting AMQP connection <0.25428.0> (10.0.2.2:58391 -> 10.0.2.15:5672)
=ERROR REPORT==== 13-Aug-2014::14:23:19 ===
** Generic server <0.25434.0> terminating
** Last message in was {'$gen_cast',
{method,
{'basic.publish',0,<<"test-exchange">>,
<<"routingKey">>,true,false},
{content,60,none,
<<144,0,16,97,112,112,108,105,99,97,116,105,
111,110,47,106,115,111,110,2,0>>,
rabbit_framing_amqp_0_9_1,
[<<"{\"idx\":15,\"prio\":0}">>]},
flow}}
** When Server state == {ch,running,rabbit_framing_amqp_0_9_1,1,<0.25428.0>,
<0.25432.0>,<0.25428.0>,
<<"10.0.2.2:58391 -> 10.0.2.15:5672">>,
{lstate,<0.25433.0>,false},
none,1,
{[],[]},
{user,<<"guest">>,
[administrator],
rabbit_auth_backend_internal,
{internal_user,<<"guest">>,
<<35,182,104,22,26,135,171,44,2,196,216,67,159,241,
160,42,233,1,84,197>>,
[administrator]}},
<<"/">>,<<>>,
{dict,1,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],
[[<0.25439.0>|
{resource,<<"/">>,queue,<<"my-queue">>}]],
[],[],[],[],[]}}},
{state,
{dict,1,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],
[[<0.25439.0>|#Ref<0.0.0.153346>]],
[],[],[],[],[]}}},
erlang},
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
{set,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
<0.25429.0>,
{state,fine,5000,#Ref<0.0.0.153503>},
true,15,
{{0,nil},{0,nil}},
[],
{{0,nil},{0,nil}},
[],none,0}
** Reason for termination ==
** {{badmatch,<<0>>},
[{rabbit_framing_amqp_0_9_1,decode_properties,2,[]},
{rabbit_binary_parser,ensure_content_decoded,1,[]},
{rabbit_channel,handle_method,3,[]},
{rabbit_channel,handle_cast,2,[]},
{gen_server2,handle_msg,2,[]},
{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,249}]}]}
==> /var/log/rabbitmq/[email protected] <==
=CRASH REPORT==== 13-Aug-2014::14:23:19 ===
crasher:
initial call: gen:init_it/6
pid: <0.25434.0>
registered_name: []
exception exit: {{badmatch,<<0>>},
[{rabbit_framing_amqp_0_9_1,decode_properties,2,[]},
{rabbit_binary_parser,ensure_content_decoded,1,[]},
{rabbit_channel,handle_method,3,[]},
{rabbit_channel,handle_cast,2,[]},
{gen_server2,handle_msg,2,[]},
{proc_lib,wake_up,3,
[{file,"proc_lib.erl"},{line,249}]}]}
in function gen_server2:terminate/3
ancestors: [<0.25431.0>,<0.25430.0>,<0.25427.0>,<0.25426.0>,
rabbit_tcp_client_sup,rabbit_sup,<0.139.0>]
messages: []
links: [<0.25431.0>]
dictionary: [{process_name,
{rabbit_channel,
{<<"10.0.2.2:58391 -> 10.0.2.15:5672">>,1}}},
{{credit_to,<0.25428.0>},35},
{{queue_exchange_stats,
{{resource,<<"/">>,queue,<<"my-queue">>},
{resource,<<"/">>,exchange,<<"test-exchange">>}}},
[{publish,14}]},
{{xtype_to_module,topic},rabbit_exchange_type_topic},
{pause_minority_guard,not_minority_mode},
{{exchange_stats,
{resource,<<"/">>,exchange,<<"test-exchange">>}},
[{confirm,14},{publish,14}]},
{permission_cache,
[{{resource,<<"/">>,exchange,<<"test-exchange">>},
write}]},
{{credit_from,<0.25439.0>},186},
{guid,{{4231563882,87170283,4179743796,3585566879},13}}]
trap_exit: true
status: running
heap_size: 1598
stack_size: 27
reductions: 10968
neighbours:
=SUPERVISOR REPORT==== 13-Aug-2014::14:23:19 ===
Supervisor: {<0.25431.0>,rabbit_channel_sup}
Context: child_terminated
Reason: {{badmatch,<<0>>},
[{rabbit_framing_amqp_0_9_1,decode_properties,2,[]},
{rabbit_binary_parser,ensure_content_decoded,1,[]},
{rabbit_channel,handle_method,3,[]},
{rabbit_channel,handle_cast,2,[]},
{gen_server2,handle_msg,2,[]},
{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,249}]}]}
Offender: [{pid,<0.25434.0>},
{name,channel},
{mfargs,
{rabbit_channel,start_link,
[1,<0.25428.0>,<0.25432.0>,<0.25428.0>,
<<"10.0.2.2:58391 -> 10.0.2.15:5672">>,
rabbit_framing_amqp_0_9_1,
{user,<<"guest">>,
[administrator],
rabbit_auth_backend_internal,
{internal_user,<<"guest">>,
<<35,182,104,22,26,135,171,44,2,196,216,67,
159,241,160,42,233,1,84,197>>,
[administrator]}},
<<"/">>,[],<0.25429.0>,<0.25433.0>]}},
{restart_type,intrinsic},
{shutdown,4294967295},
{child_type,worker}]
=SUPERVISOR REPORT==== 13-Aug-2014::14:23:19 ===
Supervisor: {<0.25431.0>,rabbit_channel_sup}
Context: shutdown
Reason: reached_max_restart_intensity
Offender: [{pid,<0.25434.0>},
{name,channel},
{mfargs,
{rabbit_channel,start_link,
[1,<0.25428.0>,<0.25432.0>,<0.25428.0>,
<<"10.0.2.2:58391 -> 10.0.2.15:5672">>,
rabbit_framing_amqp_0_9_1,
{user,<<"guest">>,
[administrator],
rabbit_auth_backend_internal,
{internal_user,<<"guest">>,
<<35,182,104,22,26,135,171,44,2,196,216,67,
159,241,160,42,233,1,84,197>>,
[administrator]}},
<<"/">>,[],<0.25429.0>,<0.25433.0>]}},
{restart_type,intrinsic},
{shutdown,4294967295},
{child_type,worker}]
==> /var/log/rabbitmq/[email protected] <==
=ERROR REPORT==== 13-Aug-2014::14:23:19 ===
AMQP connection <0.25428.0> (running), channel 1 - error:
{{badmatch,<<0>>},
[{rabbit_framing_amqp_0_9_1,decode_properties,2,[]},
{rabbit_binary_parser,ensure_content_decoded,1,[]},
{rabbit_channel,handle_method,3,[]},
{rabbit_channel,handle_cast,2,[]},
{gen_server2,handle_msg,2,[]},
{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,249}]}]}
=WARNING REPORT==== 13-Aug-2014::14:23:19 ===
Non-AMQP exit reason '{{badmatch,<<0>>},
[{rabbit_framing_amqp_0_9_1,decode_properties,2,[]},
{rabbit_binary_parser,ensure_content_decoded,1,[]},
{rabbit_channel,handle_method,3,[]},
{rabbit_channel,handle_cast,2,[]},
{gen_server2,handle_msg,2,[]},
{proc_lib,wake_up,3,
[{file,"proc_lib.erl"},{line,249}]}]}'
=INFO REPORT==== 13-Aug-2014::14:23:19 ===
closing AMQP connection <0.25428.0> (10.0.2.2:58391 -> 10.0.2.15:5672)
=INFO REPORT==== 13-Aug-2014::14:23:20 ===
accepting AMQP connection <0.25447.0> (10.0.2.2:58401 -> 10.0.2.15:5672)