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

解决办法:

  1. 重新启用 IPV6 并确保 vrapid 正常运行,以 管理员 身份连接到 vProxy,然后 su 到root:

    sudo su -
  2. 创建 rabbitmq.conf 的拷贝:

    cp -P /etc/rabbitmq/rabbitmq.config /etc/rabbitmq/rabbitmq.config.orig
  3. 检查当前侦听器:

    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
  4. 修改 rabbitmq.config 文件以删除 ipv6 listner:

    vi /etc/rabbitmq/rabbitmq.config

    从:

    ######################################
    
    [
    {rabbit,
    [{tcp_listeners,
    [{"127.0.0.1", 5672}, {"::1", 5672}]}]
    }
    ].
    
    ######################################
    ######################################

    修改至

    ######################################
    
    
    
    [
    {rabbit,
    [{tcp_listeners,
    [{"127.0.0.1", 5672}]}]
    }
    ].
    
    
    ######################################
    ######################################
  5. Reboot vProxy:

    reboot
  6. 确认 rabbit 和 vrapid 服务已启动并运行:

    systemctl status rabbitmq-server.service
    systemctl status vrapid.service
  7. 使用 curl 命令检查端口 9090 上的连接:

    curl -v localhost:9090

 

Products

Data Protection
Article 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.