Hi Team,
I get the below error when try to publish to a LVC exchange , the connections is closed by the broker .
any idea what wrong I am doing ?
client logs ;
[20150710 10:32:39.842-S-OmaServerMessage-Thread-3] Unexpected exception in OmaServerMessage.process(): com.rabbitmq.client.AlreadyClosedException: connection is already closed due to connection error; protocol method: #method<connection.close>(reply-code=541, reply-text=INTERNAL_ERROR, class-id=0, method-id=0)
com.rabbitmq.client.AlreadyClosedException: connection is already closed due to connection error; protocol method: #method<connection.close>(reply-code=541, reply-text=INTERNAL_ERROR, class-id=0, method-id=0)
at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:195)
at com.rabbitmq.client.impl.AMQChannel.transmit(AMQChannel.java:296)
at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:648)
at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:631)
at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:622)
at com.rabbitmq.client.impl.recovery.AutorecoveringChannel.basicPublish(AutorecoveringChannel.java:160)
Broker logs :
=ERROR REPORT==== 10-Jul-2015::09:43:46 ===
** Generic server <0.9385.62> terminating
** Last message in was {'$gen_cast',
{method,
{'queue.bind',0,
<<"NONPROD.JETSTREAM.QA.JetStreamOma.jtdb">>,
<<"NONPROD.JETSTREAM.QA.JSQA.Lvc">>,
<<"JetStreamOma.jtdb">>,false,[]},
none,noflow}}
** When Server state == {ch,running,rabbit_framing_amqp_0_9_1,1,<0.9381.62>,
<0.9387.62>,<0.9381.62>,
<<"10.152.132.150:55490 -> 10.152.155.201:25009">>,
{lstate,<0.9386.62>,false},
<<"10.152.132.150:55490 -> 10.152.155.201:25009">>,
{lstate,<0.9386.62>,false},
none,1,
{[],[]},
{user,<<"nonprod.jetstream-oma">>,[],
[{rabbit_auth_backend_internal,none}]},
<<"/">>,
<<"NONPROD.JETSTREAM.QA.JetStreamOma.jtdb">>,
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]}}},
{state,
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]}}},
erlang},
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]}}},
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]}}},
{set,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]}}},
<0.9380.62>,
{state,fine,5000,#Ref<0.0.66.224148>},
false,1,
{{0,nil},{0,nil}},
[],
{{0,nil},{0,nil}},
[{<<"exchange_exchange_bindings">>,bool,true},
{<<"authentication_failure_close">>,bool,true},
[{<<"exchange_exchange_bindings">>,bool,true},
{<<"authentication_failure_close">>,bool,true},
{<<"consumer_cancel_notify">>,bool,true},
{<<"basic.nack">>,bool,true},
{<<"publisher_confirms">>,bool,true},
{<<"connection.blocked">>,bool,true}],
none,5,none}
** Reason for termination ==
** {{aborted,
{no_exists,
[lvc,
{cachekey,
{resource,<<"/">>,exchange,
<<"NONPROD.JETSTREAM.QA.JSQA.Lvc">>},
<<"JetStreamOma.jtdb">>}]}},
[{mnesia,abort,1,[{file,"mnesia.erl"},{line,309}]},
{rabbit_exchange_type_lvc,add_binding,3,
[{file,"src/rabbit_exchange_type_lvc.erl"},{line,66}]},
{rabbit_binding,x_callback,4,
[{file,"src/rabbit_binding.erl"},{line,561}]},
{rabbit_binding,'-add/3-fun-0-',3,
[{file,"src/rabbit_binding.erl"},{line,193}]},
{rabbit_channel,binding_action,9,
[{file,"src/rabbit_channel.erl"},{line,1471}]},
{rabbit_channel,handle_cast,2,
[{file,"src/rabbit_channel.erl"},{line,326}]},
{gen_server2,handle_msg,2,[{file,"src/gen_server2.erl"},{line,1034}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
=ERROR REPORT==== 10-Jul-2015::09:43:46 ===
Error on AMQP connection <0.9381.62> (10.152.132.150:55490 -> 10.152.155.201:25009, vhost: '/', user: 'nonprod.jetstream-oma', state: running), channel 1:
{{aborted,
{no_exists,
[lvc,
{cachekey,
{resource,<<"/">>,exchange,<<"NONPROD.JETSTREAM.QA.JSQA.Lvc">>},
<<"JetStreamOma.jtdb">>}]}},
[{mnesia,abort,1,[{file,"mnesia.erl"},{line,309}]},
{rabbit_exchange_type_lvc,add_binding,3,
[{file,"src/rabbit_exchange_type_lvc.erl"},{line,66}]},
{rabbit_binding,x_callback,4,[{file,"src/rabbit_binding.erl"},{line,561}]},
{rabbit_binding,'-add/3-fun-0-',3,
[{file,"src/rabbit_binding.erl"},{line,193}]},
{rabbit_binding,'-add/3-fun-0-',3,
[{file,"src/rabbit_binding.erl"},{line,193}]},
{rabbit_channel,binding_action,9,
[{file,"src/rabbit_channel.erl"},{line,1471}]},
{rabbit_channel,handle_cast,2,[{file,"src/rabbit_channel.erl"},{line,326}]},
{gen_server2,handle_msg,2,[{file,"src/gen_server2.erl"},{line,1034}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
=WARNING REPORT==== 10-Jul-2015::09:43:46 ===
Non-AMQP exit reason '{{aborted,
{no_exists,
[lvc,
{cachekey,
{resource,<<"/">>,exchange,
<<"NONPROD.JETSTREAM.QA.JSQA.Lvc">>},
<<"JetStreamOma.jtdb">>}]}},
[{mnesia,abort,1,[{file,"mnesia.erl"},{line,309}]},
{rabbit_exchange_type_lvc,add_binding,3,
[{file,"src/rabbit_exchange_type_lvc.erl"},
{line,66}]},
{rabbit_binding,x_callback,4,
[{file,"src/rabbit_binding.erl"},{line,561}]},
{rabbit_binding,'-add/3-fun-0-',3,
[{file,"src/rabbit_binding.erl"},{line,193}]},
{rabbit_channel,binding_action,9,
[{file,"src/rabbit_channel.erl"},{line,1471}]},
{rabbit_channel,handle_cast,2,
[{file,"src/rabbit_channel.erl"},{line,326}]},
{gen_server2,handle_msg,2,
[{file,"src/gen_server2.erl"},{line,1034}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}'
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
version is 3.5.0 and yes this happens immediately after the first message is published..
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
Thanks .
from the below conversion , looks like either LVC is not supported or has some issues ?
or only the latest version is supported for rabbitmq .
is this true ?
--
Thanks Alvaro , really appreciate your help on this one .
so my assumption and resolution looks fine to you if we hit this issue again ?
sure , I pasted the error in my first email .
adding the error again .
Some of the tests I did when we had this issue .
1. Declaring a new LVC exchange is not an issue .
2. Deleting a LVC exchange is a problem , it gives below error when I try deleting a LVC exchange .
Got response code 500 with body {"error":"Internal Server Error","reason":"{exit,\n {{{error,{no_exists,lvc}},\n [{rabbit_misc,execute_mnesia_transaction,1,\n [{file,\"src/rabbit_misc.erl\"},{line,540}]},\n {rabbit_misc,execute_mnesia_tx_with_tail,1,\n [{file,\"src/rabbit_misc.erl\"},{line,562}]},\n {rabbit_channel,handle_method,3,\n [{file,\"src/rabbit_channel.erl\"},{line,1093}]},\n {rabbit_channel,handle_cast,2,\n [{file,\"src/rabbit_channel.erl\"},{line,326}]},\n {gen_server2,handle_msg,2,[{file,\"src/gen_server2.erl\"},{line,1034}]},\n {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]},\n {gen_server,call,\n [<0.23460.100>,\n {call,{'exchange.delete',0,<<\"ddd\">>,false,false},none,<0.7589.100>},\n infinity]}},\n [{gen_server,call,3,[{file,\"gen_server.erl\"},{line,188}]},\n {rabbit_mgmt_util,'-amqp_request/5-fun-0-',4,\n [{file,\"rabbitmq-management/src/rabbit_mgmt_util.erl\"},{line,416}]},\n {rabbit_mgmt_util,with_channel,5,\n [{file,\"rabbitmq-management/src/rabbit_mgmt_util.erl\"},{line,435}]},\n {webmachine_resource,resource_call,3,\n [{file,\n \"webmachine-wrapper/webmachine-git/src/webmachine_resource.erl\"},\n {line,186}]},\n {webmachine_resource,do,3,\n [{file,\n \"webmachine-wrapper/webmachine-git/src/webmachine_resource.erl\"},\n {line,142}]},\n {webmachine_decision_core,resource_call,1,\n [{file,\n \"webmachine-wrapper/webmachine-git/src/webmachine_decision_core.erl\"},\n {line,48}]},\n {webmachine_decision_core,decision,1,\n [{file,\n \"webmachine-wrapper/webmachine-git/src/webmachine_decision_core.erl\"},\n {line,440}]},\n {webmachine_decision_core,handle_request,2,\n [{file,\n \"webmachine-wrapper/webmachine-git/src/webmachine_decision_core.erl\"},\n {line,33}]}]}\n"}
3. During this issue , publisher code always fails while consumers still can consumer from the queue which is bind to the LVC exchange .
4. In 3 node cluster if we shut down one node , then publisher fails to publish to LVC exchange . Consumers still works fine .
Is it possible to fix the LVC exchange for the bug you have mentioned ?
or is LVC exchange no more supported and users should move off LVC and use Recent History Exchange ?
We have LVC exchange deployed in production so wondering if the LVC can be fixed . Moving to Recent History Exchange will need time/effort/testing ..
Thanks Alvaro .
I have filed an issue here https://github.com/rabbitmq/rabbitmq-lvc-plugin/issues/2
let me know if you more details . We will look forward for this fix .
Thanks Alvaro .
One more thing about LVC exchange , sometimes HTTP management interface says “Exchange type not found” for LVC exchanges , however I see the LVC exchange is available and I can publish to it and subscribe to a queue bound to it ..
I have restarted all the brokers in the clusters but still the LVC exchanges are marked “Not Found” on management interface .
thought of informing if it saves some effort while you fix the previous bug .
UI Snapshot
all the nodes has this which I think it means LVC is running on nodes .