热搜词
发表于 2024-2-8 13:43:30 | 显示全部楼层 |阅读模式
ubuntu 22.04 系统,运行RabbitMQ启动命令"service rabbitmq-server start"时出错,提示如下:
  1. root@mq00b34:~# service rabbitmq-server start
  2. Job for rabbitmq-server.service failed because the control process exited with error code.
  3. See "systemctl status rabbitmq-server.service" and "journalctl -xeu rabbitmq-server.service" for details.
  4. root@mq00b34:~# ^C
复制代码

根据提示,执行了 journalctl -xe ,定位到详细的报错日志信息;
  1. journalctl -xe
复制代码

通过这个执行到命令行后,会打印出非常多的问题信息,让我们继续往下定位到ERROR处:
  1. Feb 08 13:51:47 mq00b34 rabbitmq-server[1329294]: Configuring logger redirection
  2. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.526 [error] Error parsing configuration:
  3. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.538 [error] File operation error: eacces. Target: /etc/rabbitmq/rabbitmq.conf. Function: get_file. Process: rabbit_prelau>
  4. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.543 [error]   - Could not open file (/etc/rabbitmq/rabbitmq.conf) for Reason undefined
  5. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.544 [error] Are these files using the Cuttlefish format?
  6. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.546 [error]
  7. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.546 [error] BOOT FAILED
  8. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: BOOT FAILED
  9. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.546 [error] ===========
  10. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: ===========
  11. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.546 [error] Error during startup: {error,failed_to_parse_configuration_file}
  12. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: Error during startup: {error,failed_to_parse_configuration_file}
  13. Feb 08 13:51:48 mq00b34 rabbitmq-server[1329294]: 13:51:48.546 [error]
  14. Feb 08 13:51:49 mq00b34 rabbitmq-server[1329294]: 13:51:49.548 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase()>
  15. Feb 08 13:51:49 mq00b34 rabbitmq-server[1329294]: 13:51:49.548 [error] CRASH REPORT Process <0.152.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelau>
  16. Feb 08 13:51:51 mq00b34 rabbitmq-server[1329294]: {"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,p>
  17. Feb 08 13:51:51 mq00b34 rabbitmq-server[1329294]: Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,pr>
  18. Feb 08 13:51:51 mq00b34 rabbitmq-server[1329294]:
  19. Feb 08 13:51:51 mq00b34 rabbitmq-server[1329294]: Crash dump is being written to: erl_crash.dump...done
  20. Feb 08 13:51:51 mq00b34 systemd[1]: rabbitmq-server.service: Main process exited, code=exited, status=1/FAILURE
复制代码
通过以上错误信息,检查 /etc/rabbitmq/rabbitmq.conf 配置文件有没有错误,发现abbitmq.conf文件权限为640,把权限改为644,再次启动服务,一切正常。

全部评论1
灰儿 发表于 2024-2-13 17:58:59 | 显示全部楼层
http://www.admin365.cn/thread-112671-1-1.html  RabbitMQ启动报错的常见原因和解决方法
http://www.admin365.cn/thread-112659-1-1.html  RabbitMQ启动报错,journalctl日志:Error parsing configuration
http://www.admin365.cn/thread-112670-1-1.html  RabbitMQ启动报错,journalctl日志:gen_server,init_it,6
回复

使用道具 举报

回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2024-12-27 01:24 , Processed in 0.183369 second(s), 23 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2024 Discuz! Team