Skip to content

RabbitMQ GUI Access Issue

RabbitMQ GUI Access Issue in RabbitMQ Issues.

3 min read Updated SS RS

RabbitMQ GUI Access Issue#

Unable to access the RabbitMQ User Interface (UI).

Solution:

  1. Nomad File Configuration: Change network_mode to "host " in the rabbitmq.nomad file.
  2. Configuration File Update: Copy the rabbitmq.conf file from the Docker container to a local configuration path.

    Edit rabbitmq.conf to update management.ssl.port=9203 . Reflect this change in the rabbitmq.nomad file's volume section.

  3. Permission Settings: Set read-only (ro) access to prevent updates to the existing port number.

  4. Hostname and Port Configuration: Add the hostname to the extra_hosts section.

    In port_map , configure https=9203.

  5. Firewall Settings: Add a rule for the RabbitMQ GUI port (9203) in the firewall.

  6. Service Restart: Restart the RabbitMQ service and verify access to the GUI.

RabbitMQ Getting Killed on RHEL8.2#

RabbitMQ fails to start, with errors indicating issues with the .erlang.cookie file and other startup exceptions.

Solution:

  1. Docker Entry point Script Modification: Edit the docker-entrypoint.sh script for RabbitMQ with the following changes:
    1. Update group and user IDs for RabbitMQ if necessary.
    2. Adjust ownership of RabbitMQ directories to rabbitmq:rabbitmq .
    3. Ensure the script runs the RabbitMQ server with the correct user permissions.
  2. Script Mounting in Nomad File: Mount the updated docker-entrypoint.sh in the Nomad file:

    "/HEAL/Appsone_Service/rabbitmq/docker-entrypoint.sh:/docker-entrypoint.sh:z"
    

Setting Queue Limit for Non-High Availability (HA)#

Follow the below steps to rectify the issue:

  1. Login to RabbitMQ UI.
  2. Navigate to Admin tab and click on "Admin " tab.
  3. On the right side, locate and click on "Policies ".
  4. Delete the Existing Policies.
  5. Execute the following curl command from the Heal server where RabbitMQ is running:

    curl -X PUT -k --user guest:guest -H 'content-type: application/json' --data '{"pattern": ".", "apply-to": "queues", "definition": {"max-length": 10000} }' https://<primaryiprabbitmq>:<rabbitmqwebport>/api/policies/%2f/ha-policy
    

    Note: Adjust the max-length value as per the specific requirement; the default is set to 10000.

  6. After applying the policy, purge all the queues to ensure the changes take effect.

    Note: Ensure to replace <primaryiprabbitmq> and <rabbitmqwebport> with the actual primary IP and RabbitMQ web port. The provided procedure helps set the queue limit for non-HA in RabbitMQ through the UI and curl command.

Windows KPI MQ Current Depth Data Collection Issue#

The Windows KPI collection stopped, and an error was encountered indicating that the service was unable to start due to an expected error.

screenshot
screenshot

Static Aggregated KPI Queues Got Unacknowledged (Unacked)#

Static Aggregated KPI queues got unacked in RabbitMQ, preventing anomalies from being generated regularly.

The error is as below:

ERROR c.h.e.d.core.ViolatedEventsProcess:634 - Validation of aggregated kpi data failed. Reason: OutOfOrder time ..., outOfOrderValue:... for KPI id ..., instance ... and account ....
Dropping the data point.

Solution :

Increase the following Consul key value from 10 to 50 and restart the event-detector module:

service/rabbitmq/eventdetector/aggregatedKpi/consumerSize

Unable to Start RabbitMQ#

After upgrading the RHEL Linux Server from version 8.9 to 8.10 , the RabbitMQ service is unable to start.

Symptoms : No logs are printed in the centralized_logs directory after restarting the systemctl services for Nomad , Consul , and Podman .

Solution:

  1. Check the file permissions for the below file:

    Appsone_Service/data/rabbitmq/.erlang.cookie
    
  2. Change the permissions from 755 to 400 .

  3. Start the RabbitMQ service.

    For Example:

    chmod 400 Appsone_Service/data/rabbitmq/.erlang.cookie