美文网首页
[error] ERROR: epmd error for ho

[error] ERROR: epmd error for ho

作者: CoderInsight | 来源:发表于2023-03-29 21:53 被阅读0次

    原始日志

    Mar 30 21:44:54 dev.java110.com rabbitmq-server[5793]: 21:44:54.459 [error] ERROR: epmd error for host dev: address (cannot connect to host/port)
    Mar 30 21:44:54 dev.java110.com rabbitmq-server[5793]: ERROR: epmd error for host dev: address (cannot connect to host/port)
    Mar 30 21:44:54 dev.java110.com rabbitmq-server[5793]: 21:44:54.459 [error]
    Mar 30 21:44:55 dev.java110.com rabbitmq-server[5793]: 21:44:55.460 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch
    Mar 30 21:44:55 dev.java110.com rabbitmq-server[5793]: 21:44:55.460 [error] CRASH REPORT Process <0.143.0> with 0 neighbours exited with reason: {{shutdown,{
    Mar 30 21:44:56 dev.java110.com rabbitmq-server[5793]: {"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutd
    Mar 30 21:44:56 dev.java110.com rabbitmq-server[5793]: Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdo
    Mar 30 21:44:57 dev.java110.com rabbitmq-server[5793]: Crash dump is being written to: erl_crash.dump...done
    Mar 30 21:44:57 dev.java110.com systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: Error: unable to perform an operation on node 'rabbit@dev'. Please see diagnostics information and suggest
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: Most common reasons for this are:
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that o
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * Target node is not running
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: In addition to the diagnostics info below:
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * Consult server logs on node rabbit@dev
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * If target node is configured to use long node names, don't forget to use --longnames with CLI tools
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: DIAGNOSTICS
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: ===========
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: attempted to contact: [rabbit@dev]
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: rabbit@dev:
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * connected to epmd (port 4369) on dev
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * epmd reports: node 'rabbit' not running at all
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: no other nodes on dev
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * suggestion: start the node
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: Current node details:
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * node name: 'rabbitmqcli-5977-rabbit@dev'
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * effective user's home directory: /var/lib/rabbitmq
    Mar 30 21:44:57 dev.java110.com rabbitmqctl[5977]: * Erlang cookie hash: KAdeue0Pp4g5hNm2ckjGZg==
    Mar 30 21:44:57 dev.java110.com systemd[1]: Failed to start RabbitMQ broker.
    -- Subject: Unit rabbitmq-server.service has failed
    

    日志分析

    核心点:[error] ERROR: epmd error for host dev: address (cannot connect to host/port)

    分析:日志中明显表示是与host映射有关,根据提示信息为【dev】,故本机的主机名被设置为了dev,但是dev在hosts中又没有添加对应的映射;

    解决方案
    1,修改本机的主机名为localhost;
    2,在原始的hosts文件中添加dev的映射

    [root@dev soft]# cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 dev
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    

    问题扩展:每个人遇到的场景可能是不同的,但是要注意查看是否报错中给出的域名不是dev,而是rabbit,如果则对应的添加rabbit的hosts映射即可。

    相关文章

      网友评论

          本文标题:[error] ERROR: epmd error for ho

          本文链接:https://www.haomeiwen.com/subject/yecqddtx.html