rabbitmq-server timeout错误解决方法

By | 2022年4月26日

错误1:

# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/rabbitmq-server.service.d
           └─limits.conf
   Active: failed (Result: exit-code) since Tue 2016-03-15 13:17:04 EDT; 34s ago
  Process: 1510 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=2)
  Process: 1352 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 1352 (code=exited, status=1/FAILURE)

Mar 15 13:15:57 openstack_l systemd[1]: rabbitmq-server.service: Got notification message from PID 1366, but reception only permitted for main PID 1352
Mar 15 13:15:57 openstack_l systemd[1]: rabbitmq-server.service: Got notification message from PID 1367, but reception only permitted for main PID 1352
Mar 15 13:16:27 openstack_l rabbitmq-server[1352]: ERROR: epmd error for host openstack_l: timeout (timed out)
Mar 15 13:16:27 openstack_l systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
Mar 15 13:16:27 openstack_l rabbitmqctl[1510]: Stopping and halting node rabbit@openstack_l ...
Mar 15 13:16:34 openstack_l rabbitmqctl[1510]: Error: unable to connect to node rabbit@openstack_l: nodedown
Mar 15 13:17:04 openstack_l systemd[1]: rabbitmq-server.service: control process exited, code=exited status=2
Mar 15 13:17:04 openstack_l systemd[1]: Failed to start RabbitMQ broker.
Mar 15 13:17:04 openstack_l systemd[1]: Unit rabbitmq-server.service entered failed state.
Mar 15 13:17:04 openstack_l systemd[1]: rabbitmq-server.service failed.

错误2:

# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/rabbitmq-server.service.d
           └─limits.conf
   Active: failed (Result: exit-code) since Tue 2016-03-15 13:26:09 EDT; 25s ago
  Process: 3554 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=2)
  Process: 3398 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 3398 (code=exited, status=1/FAILURE)

Mar 15 13:26:09 openstack_l rabbitmqctl[3554]: rabbit@openstack_l:
Mar 15 13:26:09 openstack_l rabbitmqctl[3554]: * unable to connect to epmd (port 4369) on openstack_l: timeout (timed out)
Mar 15 13:26:09 openstack_l rabbitmqctl[3554]: current node details:
Mar 15 13:26:09 openstack_l rabbitmqctl[3554]: - node name: rabbitmqctl3554@openstack_l
Mar 15 13:26:09 openstack_l rabbitmqctl[3554]: - home dir: /var/lib/rabbitmq
Mar 15 13:26:09 openstack_l rabbitmqctl[3554]: - cookie hash: 5XMm4zW95F5D4zJ397UPcQ==
Mar 15 13:26:09 openstack_l systemd[1]: rabbitmq-server.service: control process exited, code=exited status=2
Mar 15 13:26:09 openstack_l systemd[1]: Failed to start RabbitMQ broker.
Mar 15 13:26:09 openstack_l systemd[1]: Unit rabbitmq-server.service entered failed state.
Mar 15 13:26:09 openstack_l systemd[1]: rabbitmq-server.service failed.

原因:hostname没有追加到/etc/hosts文件中,所以通过hostname访问服务发生timeout。
解决:追加到/etc/hosts

127.0.0.1       [hostname]
Category: 未分类 标签:

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注