NVP vProxy: "rabbitmq" вниз після вимкнення IPV6 для vproxy

Summary: Сервіс rabbitmq не працює після відключення IPV6 і через це відмовляється в підключенні на порту 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

  • IPv6 було вимкнено на пристрої vProxy.
  • Сервери 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 Для кореня:

    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:

    vi /etc/rabbitmq/rabbitmq.config

    Від:

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

    До

    ######################################
    
    
    
    [
    {rabbit,
    [{tcp_listeners,
    [{"127.0.0.1", 5672}]}]
    }
    ].
    
    
    ######################################
    ######################################
  5. Перезавантаження vProxy:

    reboot
  6. Підтвердьте, що сервіси rabbit та vrapid запущені та працюють:

    systemctl status rabbitmq-server.service
    systemctl status vrapid.service
  7. Перевірте підключення на порту 9090 за допомогою команди curl:

    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.