[rabbitmq-discuss] Reading a message from sys.log
Simon MacMullen
simon at rabbitmq.com
Wed Oct 23 14:19:36 BST 2013
Try:
$ rabbitmqctl eval 'rabbit_exchange:declare(rabbit_misc:r(<<"/">>,
exchange, <<"amq.rabbitmq.trace">>), topic, true, false, false, []).'
Cheers, Simon
On 23/10/13 13:02, Tomasz Szymkowiak wrote:
> Yes, actually I do not have exchange amq.rabbitmq.trace, I probably
> removed it.
>
> What is the easiest way to re-create it ? When I'm trying to do this via
> rabbitmq_management I'm getting this error:
> ACCESS_REFUSED - exchange name 'amq.rabbitmq.trace' contains reserved
> prefix 'amq.*'
>
> What comes to my mind is to download broker definition file, reset node
> (rabbitmqctl reset) and upload definition againg but i hope there is an
> easier way.
>
> Thank you in advance
> Regards,
> T.
>
>
> 2013/10/23 Simon MacMullen <simon at rabbitmq.com <mailto:simon at rabbitmq.com>>
>
> Have you by any chance deleted the exchange amq.rabbitmq.trace?
>
> Admittedly that's not exactly a clear error message.
>
> Cheers, Simon
>
> On 23/10/13 07:58, Tomasz Szymkowiak wrote:
>
> I forgot to mention, that sys.log is durable queue which has two
> bindings with amq.rabbitmq.log exchange: one with binding key
> error and
> the other one with warning.
> Regards,
> T.
>
> W dniu wtorek, 22 października 2013 17:12:37 UTC+2 użytkownik Tomasz
> Szymkowiak napisał:
>
> Hi,
> when i'm trying to get a message from sys.log queue via
> rabbitmq_management plugin i'm getting:
>
>
> Got response code 500 with body
> Internal Server Error
>
> The server encountered an error while processing this request:
> {error,
> {exit,
> {{{badmatch,
> {badrpc,
> {'EXIT',
> {{badmatch,
> {error,
> {'EXIT',
> {{badmatch,
> {error,
> {{{badmatch,{error,not_found}}__,
> [{rabbit_trace,init,1},
> {rabbit_channel,init,1},
> {gen_server2,init_it,6},
> {proc_lib,init_p_do_apply,3}]}__,
> {child,undefined,channel,
> {rabbit_channel,start_link,
> [1,<0.12001.10>,<0.12001.10>,<__0.11994.10>,
> <<"<'rabbit at host'.2.11994.10>"__>>,
> rabbit_framing_amqp_0_9_1,
> {user,<<"user">>,
> [administrator],
> rabbit_auth_backend_internal,
> {internal_user,<<"user">>,
>
> <<103,27,123,114,70,159,120,__205,173,29,114,226,83,153,225,
> 33,146,220,255,20>>,
> [administrator]}},
> <<"/">>,
> [{<<"publisher_confirms">>,__bool,true},
>
> {<<"exchange_exchange___bindings">>,bool,true},
> {<<"basic.nack">>,bool,true},
>
> {<<"consumer_cancel_notify">>,__bool,true}],
> <0.11998.10>,<0.12003.10>]},
> intrinsic,4294967295,worker,
> [rabbit_channel]}}}},
> [{rabbit_channel_sup,start___link,1},
> {supervisor2,do_start_child_i,__3},
> {supervisor2,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,3}]}__}}},
> [{rabbit_direct,start_channel,__9},
> {rpc,local_call,3},
> {amqp_channel_sup,'-start___writer_fun/4-fun-0-',7},
> {amqp_channel,start_writer,1},
> {amqp_channel,do_rpc,1},
> {amqp_channel,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,3}]}__}}},
> [{amqp_channel_sup,'-start___writer_fun/4-fun-0-',7},
> {amqp_channel,start_writer,1},
> {amqp_channel,do_rpc,1},
> {amqp_channel,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,3}]}__,
> {gen_server,call,[<0.12001.10>__,open,infinity]}},
> [{gen_server,call,3},
> {amqp_gen_connection,open___channel,3},
> {rabbit_mgmt_util,with___channel,5},
> {rabbit_mgmt_util,with_decode,__5},
> {rabbit_mgmt_wm_queue_get,__process_post,2},
> {webmachine_resource,resource___call,3},
> {webmachine_resource,do,3},
> {webmachine_decision_core,__resource_call,1}]}}
>
>
> it happens only, when the tracing is on (vhost "/")
> when i turn it off - the message is read properly
> what am i doing wrong ?
>
> rabbitmqctl status:
>
> Status of node 'rabbit at host' ...
> [{pid,3510},
> {running_applications,
> [{rabbitmq_management___visualiser,"RabbitMQ
> Visualiser","3.1.5"},
> {rabbitmq_tracing,"RabbitMQ message logging /
> tracing","3.1.5"},
> {rabbitmq_management,"RabbitMQ Management
> Console","3.1.5"},
> {rabbitmq_management_agent,"__RabbitMQ Management
> Agent","3.1.5"},
> {rabbit,"RabbitMQ","3.1.5"},
> {os_mon,"CPO CXC 138 46","2.2.7"},
> {rabbitmq_web_dispatch,"__RabbitMQ Web
> Dispatcher","3.1.5"},
>
> {webmachine,"webmachine","1.__10.3-rmq3.1.5-gite9359c7"},
> {mochiweb,"MochiMedia Web
> Server","2.7.0-rmq3.1.5-__git680dba8"},
> {xmerl,"XML parser","1.2.10"},
> {inets,"INETS CXC 138 49","5.7.1"},
> {mnesia,"MNESIA CXC 138 12","4.5"},
> {amqp_client,"RabbitMQ AMQP Client","3.1.5"},
> {sasl,"SASL CXC 138 11","2.1.10"},
> {stdlib,"ERTS CXC 138 10","1.17.5"},
> {kernel,"ERTS CXC 138 10","2.14.5"}]},
> {os,{unix,linux}},
> {erlang_version,
> "Erlang R14B04 (erts-5.8.5) [source] [64-bit]
> [smp:8:8] [rq:8]
> [async-threads:30] [kernel-poll:true]\n"},
> {memory,
> [{total,50383256},
> {connection_procs,605416},
> {queue_procs,560056},
> {plugins,702048},
> {other_proc,11365416},
> {mnesia,229240},
> {mgmt_db,541664},
> {msg_index,99296},
> {other_ets,1374104},
> {binary,13453984},
> {code,17552765},
> {atom,1601817},
> {other_system,2297450}]},
> {vm_memory_high_watermark,0.4}__,
> {vm_memory_limit,3150484275},
> {disk_free_limit,1000000000},
> {disk_free,11425714176},
> {file_descriptors,
>
>
> [{total_limit,924},{total___used,25},{sockets_limit,829},{__sockets_used,9}]},
> {processes,[{limit,1048576},{__used,351}]},
> {run_queue,0},
> {uptime,1052426}]
>
>
> Regards,
> T.
>
>
>
> _________________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.__rabbitmq.com
> <mailto:rabbitmq-discuss at lists.rabbitmq.com>
> https://lists.rabbitmq.com/__cgi-bin/mailman/listinfo/__rabbitmq-discuss
> <https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>
>
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>
>
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list