在 RabbitMQ 中创建队列时出错

克里希纳

我在我们公司有一个托管 RabbitMQ 3.6.1 和 Erlang 19.3 的环境。当我尝试使用 RabbitMQ 管理 UI 创建队列时,出现以下错误。我可以创建 Exchange 和 VHost。只有当我尝试创建队列时才会出现错误。我尝试编写一个实用程序来使用 HTTP api 创建队列,但即使这样也失败了。

经过更多的研究,我偶然发现了这篇文章https://groups.google.com/d/msg/rabbitmq-users/pa1UtLbbvOE/3OlgKgMBAgAJ,其中说 Erlang 19 与 RabbitMQ 3.6.3 及更低版本不兼容。有人可以确认我的发现吗?

我得到的错误是 Got response code 500 with body {"error":"Internal Server Error","re​​ason":"{error,\n {exit,\n {{function_clause,\n [{rabbit_queue_location_validator,module, \n [\"random\"],\n [{file,\"src/rabbit_queue_location_validator.erl\"},\n {line,50}]},\n {rabbit_queue_location_validator,validate_strategy,1,\n [{文件,\"src/rabbit_queue_location_validator.erl\"},\n {line,38}]},\n {rabbit_queue_master_location_misc,get_location_mod_by_config,\n 1,\n [{file,\"src/rabbit_queue_master_location_misc.erl\"} ,\n {line,88}]},\n {rabbit_queue_master_location_misc,get_location,1,\n [{file,\"src/rabbit_queue_master_location_misc.erl\"},\n {line,51}]},\n { rabbit_amqqueue,declare,6,\n [{file,\"src/rabbit_amqqueue.erl\"},{line,300}]},\n {rabbit_channel,handle_method,3,\n [{file,\"src/rabbit_channel.erl\"},{line,1331}]},\n {rabbit_channel,handle_cast,2,\n [{file,\"src/rabbit_channel. erl\"},{line,455}]},\n {gen_server2,handle_msg,2,\n [{file,\"src/gen_server2.erl\"},{line,1049}]}]},\ n {gen_server,call,\n [<0.27627.105>,\n {call,\n {'queue.declare',0,<<\"Test\">>,false,true,false,false,false ,\n []},\n 无,<0.15368.105>},\n 无穷大]}},\n [{gen_server,call,3,[{file,\"gen_server.erl\"},{line ,212}]},\n {rabbit_mgmt_util,'-amqp_request/5-fun-0-',4,\n [{file,\"src/rabbit_mgmt_util.erl\"},{line,579}]}, \n {rabbit_mgmt_util,with_channel,5,\n [{file,\"src/rabbit_mgmt_util.erl\"},{line,598}]},\n {rabbit_mgmt_util,http_to_amqp,5,\n [{file,\ "src/rabbit_mgmt_util.erl\"},{line,526}]},\n {webmachine_resource,resource_call,3,\n [{file,\"src/webmachine_resource.erl\"},{line,186}]},\n {webmachine_resource,do,3,\n [{file,\ "src/webmachine_resource.erl\"},{line,142}]},\n {webmachine_decision_core,resource_call,1,\n [{file,\"src/webmachine_decision_core.erl\"},{line,48}] },\n {webmachine_decision_core,accept_helper,1,\n [{file,\"src/webmachine_decision_core.erl\"},{line,612}]}]}}\n"}612}]}]}}\n"}612}]}]}}\n"}

克里希纳

感谢 @Luke Bakken 将我指向 RabbitMQ 邮件列表。

我设法通过将队列主位置策略的配置更改为 <<"random">> 来解决该问题

请参阅此链接了解更多信息

https://groups.google.com/d/msg/rabbitmq-users/XUbtu4UxbHQ/3y-PvO0oBAAJ

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章