RabbitMQ enagle 功能标志在运行服务器之前

问题描述 投票:0回答:1

我尝试在更新后启动rabbitmq-server并收到此错误。

2023-07-18 14:47:49.621801+03:00 [error] <0.234.0> Feature flags: `classic_mirrored_queue_version`: required feature flag not enabled! It must be enabled before upgrading RabbitMQ.
2023-07-18 14:47:49.627876+03:00 [error] <0.234.0> Failed to initialize feature flags registry: {disabled_required_feature_flag,
2023-07-18 14:47:49.627876+03:00 [error] <0.234.0>                                               classic_mirrored_queue_version}

BOOT FAILED
===========
Error during startup: {error,failed_to_initialize_feature_flags_registry}
2023-07-18 14:47:49.633989+03:00 [error] <0.234.0>
2023-07-18 14:47:49.633989+03:00 [error] <0.234.0> BOOT FAILED
2023-07-18 14:47:49.633989+03:00 [error] <0.234.0> ===========
2023-07-18 14:47:49.633989+03:00 [error] <0.234.0> Error during startup: {error,failed_to_initialize_feature_flags_registry}
2023-07-18 14:47:49.633989+03:00 [error] <0.234.0>

2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>   crasher:
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     initial call: application_master:init/4
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     pid: <0.233.0>
CONFIG_FILE=/opt/homebrew/etc/rabbitmq/rabbitmq
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     registered_name: []
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     exception exit: {failed_to_initialize_feature_flags_registry,
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>                         {rabbit,start,[normal,[]]}}
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>       in function  application_master:init/4 (application_master.erl, line 142)
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     ancestors: [<0.232.0>]
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     message_queue_len: 1
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     messages: [{'EXIT',<0.234.0>,normal}]
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     links: [<0.232.0>,<0.44.0>]
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     dictionary: []
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     trap_exit: true
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     status: running
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     heap_size: 376
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     stack_size: 28
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>     reductions: 173
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>   neighbours:
2023-07-18 14:47:50.635088+03:00 [error] <0.233.0>
2023-07-18 14:47:50.646529+03:00 [notice] <0.44.0> Application rabbit exited with reason: {failed_to_initialize_feature_flags_registry,{rabbit,start,[normal,[]]}}
Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{failed_to_initialize_feature_flags_registry,{rabbit,start,[normal,[]]}}})

我在官方文档中找到的解决方案是使用rabbitmqctl或web插件。

我在尝试使用rabbitmqctl 时遇到错误。据我了解,它无法连接到服务器,并且在找到添加必要功能标志的方法之前我无法启动服务器

$ rabbitmqctl list_feature_flags
Error: {:badrpc, :nodedown}
rabbitmq
1个回答
0
投票

您必须在升级之前启用所有功能标志。要解决您的情况:

  • 降级到您正在使用的 RabbitMQ 版本
  • 启用所有功能标志
  • 重新进行升级过程

我们正在努力使功能标志启用自动发生 - https://github.com/rabbitmq/rabbitmq-server/issues/5212

© www.soinside.com 2019 - 2024. All rights reserved.