在 Mac 上安装 RabbitMQ -brew installrabbitmq 后,尝试在前台运行它 -rabbitmq-server,但出现以下错误:
2023-12-24 14:16:55.673611+02:00 [error] <0.234.0> Feature flags: `stream_single_active_consumer`: required feature flag not enabled! It must be enabled before upgrading RabbitMQ.
2023-12-24 14:16:55.677879+02:00 [error] <0.234.0> Failed to initialize feature flags registry: {disabled_required_feature_flag,
2023-12-24 14:16:55.677879+02:00 [error] <0.234.0> stream_single_active_consumer}
BOOT FAILED
===========
Error during startup: {error,failed_to_initialize_feature_flags_registry}
2023-12-24 14:16:55.681441+02:00 [error] <0.234.0>
2023-12-24 14:16:55.681441+02:00 [error] <0.234.0> BOOT FAILED
2023-12-24 14:16:55.681441+02:00 [error] <0.234.0> ===========
2023-12-24 14:16:55.681441+02:00 [error] <0.234.0> Error during startup: {error,failed_to_initialize_feature_flags_registry}
2023-12-24 14:16:55.681441+02:00 [error] <0.234.0>
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> crasher:
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> initial call: application_master:init/4
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> pid: <0.233.0>
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> registered_name: []
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> exception exit: {failed_to_initialize_feature_flags_registry,
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> {rabbit,start,[normal,[]]}}
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> in function application_master:init/4 (application_master.erl, line 142)
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> ancestors: [<0.232.0>]
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> message_queue_len: 1
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> messages: [{'EXIT',<0.234.0>,normal}]
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> links: [<0.232.0>,<0.44.0>]
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> dictionary: []
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> trap_exit: true
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> status: running
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> heap_size: 376
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> stack_size: 28
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> reductions: 173
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0> neighbours:
2023-12-24 14:16:56.682103+02:00 [error] <0.233.0>
2023-12-24 14:16:56.694773+02: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,[]]}}}")
Crash dump is being written to: erl_crash.dump...done
我尝试了
brew uninstall rabbitmq
并在再次安装之前删除了/opt/homebrew/etc/rabbitmq
(我过去可能安装了旧版本),以及重新启动机器 - 但仍然没有运气。
安装的版本是3.12.11。
您需要启用功能标志:
rabbitmqctl enable_feature_flag stream_single_active_consumer
请参阅此处了解更多详细信息https://www.rabbitmq.com/feature-flags.html