RabbitMQ_MQTT无法启动

时间:2018-01-28 09:54:57

标签: rabbitmq mqtt

我正在尝试在rabbitmq中启用mqtt。插件已成功启用但是当我在rabbitmq_mqtt的配置中进行更改时,它无法启动该服务。即使经过谷歌搜索,我也无法看到同样的问题被提出。 即使端口可用,RabbitMQ_MQTT也无法加载。

              Starting broker...


BOOT FAILED
===========

Error description:
   {could_not_start,rabbitmq_mqtt,
       {{function_clause,
            [{rabbit_networking,tcp_listener_addresses,
                 [{1993}],
                 [{file,"src/rabbit_networking.erl"},{line,176}]},
             {rabbit_mqtt_sup,'-listener_specs/3-lc$^0/1-0-',3,
                 [{file,"src/rabbit_mqtt_sup.erl"},{line,55}]},
             {rabbit_mqtt_sup,init,1,
                 [{file,"src/rabbit_mqtt_sup.erl"},{line,47}]},
             {supervisor2,init,1,[{file,"src/supervisor2.erl"},{line,305}]},
             {gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]},
             {gen_server,init_it,6,[{file,"gen_server.erl"},{line,333}]},
             {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},
        {rabbit_mqtt,start,[normal,[]]}}}

Log files (may contain more information):
   /var/log/rabbitmq/rabbit.log
   /var/log/rabbitmq/rabbit-sasl.log

{"init terminating in do_boot",{could_not_start,rabbitmq_mqtt,{{function_clause,[{rabbit_networking,tcp_listener_addresses,[{1993}],[{file,"src/rabbit_networking.erl"},{line,176}]},{rabbit_mqtt_sup,'-listener_specs/3-lc$^0/1-0-',3,[{file,"src/rabbit_mqtt_sup.erl"},{line,55}]},{rabbit_mqtt_sup,init,1,[{file,"src/rabbit_mqtt_sup.erl"},{line,47}]},{supervisor2,init,1,[{file,"src/supervisor2.erl"},{line,305}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,333}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},{rabbit_mqtt,start,[normal,[]]}}}}

1 个答案:

答案 0 :(得分:0)

您需要查看/var/log/rabbitmq/startup_log/var/log/rabbitmq/startup_err中的登录信息。您对配置文件的更改很可能导致问题。通常,它是导致问题的配置文件的语法。如果您使用的是经典格式,它的数组类似于语法,有额外的逗号或缺少逗号也可能会阻止您启动该服务。