RabbitMq sasl日志中的关机错误

时间:2016-07-06 14:33:40

标签: erlang rabbitmq windows-server-2008 sasl

我们在Windows Server 2008上运行带有Erlang 17.4的RabbitMq 3.6.2。 我们在sasl日志中反复看到以下记录。它正在发生(每隔几个小时)没有特定的模式。

=SUPERVISOR REPORT==== 05-Jul-2016::09:52:42 === 
    Supervisor: {<0.835.211>,amqp_channel_sup_sup} 
    Context: shutdown_error 
    Reason: shutdown 
    Offender: [ {nb_children,1},
                {name,channel_sup}, 
                {mfargs, 
                    {amqp_channel_sup,start_link, 
                        [direct,<0.864.211>, <<"">>]}},
                {restart_type,temporary}, 
                {shutdown,brutal_kill}, 
                {child_type,supervisor}]

我读了here,通过管理插件的HTTP API可能与活动测试有关。我们还使用负载均衡器中的活动性测试来定义哪些节点应该接收流量。

任何有关理解日志实际含义以及如何防止日志(如果需要)的帮助都将非常感激。我在服务器故障上也发布了这个问题here

2 个答案:

答案 0 :(得分:0)

我不知道你对Erlang / OTP有多了解,但是:

Context: shutdown_error表示在进程关闭过程中出现了错误(例如抛出异常)

Reason: shutdown表示此过程正常完成,并且在崩溃之前尝试正常关闭

Offender是child(start)规范,其中包含shutdown_error,它位于Supervisor指定的主管下。

结合你提到的活力测试。我的第一个猜测是某种程度上,活着测试代码为RabbitMQ集群创建了一些amqp通道,但未能正常关闭。在rabbitmq-management代码中进行了一些挖掘,但还没有找到任何东西。

此外,这似乎是一个非常古老的问题,不确定它是否仍会影响您或其他人。

答案 1 :(得分:0)

如何修复关机错误

  

2019-08-28 10:16:26 = SUPERVISOR REPORT ====        主管:{<0.1782.0>,rabbit_channel_sup}        上下文:shutdown_error        原因:noproc        犯罪者:[{pid,<0.1785.0>},{name,channel},{mfargs,{rabbit_channel,start_link,[1,<0.1776.0>,<0.1783.0>,<0.1776.0>,<< “ 127.0.0.1:46101-> 127.0.0.1:5672” >>,rabbit_framing_amqp_0_9_1,{user,<<“ snc” >>,[administrator],[{rabbit_auth_backend_internal,none}]},<<“ /” >> ,[{<<“ publisher_confirms” >>,bool,true},{<<“ exchange_exchange_bindings” >>,bool,true},{<<“ basic.nack” >>,bool,true},{<<“ Consumer_cancel_notify“ >>,bool,true},{<<” connection.blocked“ >>,bool,true},{<<” authentication_failure_close“ >>,bool,true}],<0.1777.0>,<0.1784。 0>]}},{restart_type,intrinsic},{shutdown,70000},{child_type,worker}]