NVP vProxy:在為 vproxy 停用 IPV6 後,「rabbitmq」停止
Summary: 停用 IPV6 後 rabbitmq 服務中斷,且由於此原因,連接埠 5672 上的連線遭到拒絕
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
- vProxy 裝置上的 IPv6 已停用。
- vProxy 的
/data01/runtime/logs/vrapid/vrapid-engine.log記錄包含以下內容:
2021-02-03T08:47:55Z ERROR: Engines IPC: Connection 1: Cannot connect to message bus 'amqp://guest:guest@localhost:5672/': dial tcp 127.0.0.1:5672: connect: connection refused 2021-02-03T08:48:10Z TRACE: Engines IPC: Connection 1: Connecting to the message bus... 2021-02-03T08:48:10Z ERROR: Engines IPC: Connection 1: Cannot connect to message bus 'amqp://guest:guest@localhost:5672/': dial tcp 127.0.0.1:5672: connect: connection refused 2021-02-03T08:48:25Z TRACE: Engines IPC: Connection 1: Connecting to the message bus... 2021-02-03T08:48:25Z ERROR: Engines IPC: Connection 1: Cannot connect to message bus 'amqp://guest:guest@localhost:5672/': dial tcp 127.0.0.1:5672: connect: connection refused
Cause
rabbitmq 停用 IPv6 並因此 VRAPID 關閉時無法啟動
Resolution
因應措施:
-
重新啟用 IPV6,確定 vrapid 已啟動,以 系統管理員 身分連線至 vProxy,然後
su至 root:sudo su -
-
建立 rabbitmq.conf 的複本:
cp -P /etc/rabbitmq/rabbitmq.config /etc/rabbitmq/rabbitmq.config.orig
-
查看目前的接聽程式:
rabbitmq-diagnostics listeners
範例:
Interface: 127.0.0.1, port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0 Interface: [::1], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
-
修改 rabbitmq.config 檔案以移除 ipv6 listner:
vi /etc/rabbitmq/rabbitmq.config
從:
###################################### [ {rabbit, [{tcp_listeners, [{"127.0.0.1", 5672}, {"::1", 5672}]}] } ]. ###################################### ######################################TB
###################################### [ {rabbit, [{tcp_listeners, [{"127.0.0.1", 5672}]}] } ]. ###################################### ###################################### -
重新開機 vProxy:
reboot
-
確認 rabbit 和 vrapid 服務已啟動並正在執行中:
systemctl status rabbitmq-server.service systemctl status vrapid.service
-
使用 curl 命令檢查連接埠 9090 上的連線能力:
curl -v localhost:9090
Products
Data ProtectionArticle Properties
Article Number: 000182732
Article Type: Solution
Last Modified: 11 Nov 2024
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.