无法启动 RabbitMq redentials_obfuscation

无法启动 RabbitMq redentials_obfuscation

有人碰到过这个问题吗?

RabbitMQ:3.8.14

运行时:

$ sudo systemctl start rabbitmq-server

遇到了这个凭证混淆问题:

{"Kernel pid terminated",application_controller,"{application_start_failure,cr A nel pid terminated",application_controller,"{application_start_failure,credentials_obfuscation,{{shutdown,{failed_to_start_child,credentials_obfu l redentials_obfuscation,{{shutdown,{failed_to_start_child,credentials_obfuscaton_svc,{undef,[{crypto,cipher_info,[aes_128_cbc],[]},{credentials_ob ede uscaton_svc,{undef,[{crypto,cipher_info,[aes_128_cbc],[]},{credentials_obfuscation_pbe,iv_length,1,[{file,"src/credentials_obfuscation_pbe.erl" sca bfuscation_pbe,iv_length,1,[{file,"src/credentials_obfuscation_pbe.erl"},{line,125}]},{credentials_obfuscation_pbe,encrypt,5,[{file,"src/crede "},{line,125}]},{credentials_obfuscation_pbe,encrypt,5,[{file,"src/credentials_obfuscation_pbe.erl"},{line,75}]},{credentials_obfuscation_svc,c entials_obfuscation_pbe.erl"},{line,75}]},{credentials_obfuscation_svc,check,3,[{file,"src/credentials_obfuscation_svc.erl"},{line,163}]},{cre check,3,[{file,"src/credentials_obfuscation_svc.erl"},{line,163}]},{credentials_obfuscation_svc,init_state,0,[{file,"src/credentials_obfuscati edentials_obfuscation_svc,init_state,0,[{file,"src/credentials_obfuscation_svc.erl"},{line,133}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,249}]}]}}},{credentials_obfuscation_app,start,[normal,[]]}}}"}

{"内核 pid 终止",application_controller,"{application_start_failure,cr A nel pid 终止",application_controller,"{application_start_failure,credentials_obfuscation,{{shutdown,{failed_to_start_child,credentials_obfuscation,{{shutdown,{failed_to_start_child,credentials_obfuscaton_svc,{undef,[{crypto,cipher_info,[aes_128_cbc],[]},{credentials_obfuscation_pbe,iv_length,1,[{file,"src/credentials_obfuscation_pbe.erl" sca bfuscation_pbe,iv_length,1,[{file,"src/credentials_obfuscation_pbe.erl"},{line,125}]},{credentials_obfuscation_pbe,加密,5,[{file,"src/crede "},{line,125}]},{credentials_obfuscation_pbe,加密,5,[{file,"src/credentials_obfuscation_pbe.erl"},{line,75}]},{credentials_obfuscation_svc,c entials_obfuscation_pbe.erl"},{line,75}]},{credentials_obfuscation_svc,check,3,[{file,"src/credentials_obfuscation_svc.erl"},{line,163}]},{cre检查,3,[{文件,“src/credentials_obfuscation_svc.erl”},{line,163}]},{credentials_obfuscation_svc,init_state,0,[{文件,“src/credentials_obfuscati edentials_obfuscation_svc,init_state,0,[{文件,“src/credentials_obfuscation_svc.erl”},{line,133}]},{gen_server,init_it,2,[{文件,“gen_server.erl”},{line,249}]}]}}},{credentials_obfuscation_app,启动,[正常,[]]}}}”}

答案1

花了几个小时后,发现 Erlang 太旧了。将其升级到最新版本 Erlang/OTP 23,问题解决了!

RabbitMQ 与 Erlang/OTP 不兼容导致的问题:Ubuntu 18.04 提供了 Erlang 20.2 和RabbitMQ 3.8.14 需要 22.3 或 23.x。 看RabbitMQ 和 Erlang/OTP 兼容性矩阵

安装最新的 Erlang 版本应该可以解决问题。

$sudo apt-get install erlang

该问题通常发生在仅升级 rabbitMq 而不升级 Erlang 时。(以我的情况为例:rabbitMq 3.8.0 -> 3.8.14)

相关内容