Troubleshoot the Error 404 and Error 99 for RabbitMQ
When installing the RabbitMQ plugin, you may encounter the following errors:
HTTP Error 404: Not Found: This error usually occurs when Site24x7's RabbitMQ monitoring plugin attempts to access the /api/overview page of RabbitMQ, but the resource cannot be found. urlopen error [Errno 99] Cannot assign requested address: This error occurs when trying to access the /api/overview page of RabbitMQ and typically indicates a network-related issue. This issue is frequently linked to the IP address or port that you are attempting to utilize or connect to on the server where you have installed the Site24x7 server agent.
Here are some steps to troubleshoot the issues.
- Verify RabbitMQ Management Plugin: Ensure that the RabbitMQ Management Plugin is enabled as it provides the /api/overview endpoint. You can enable it with the following command:
rabbitmq-plugins enable rabbitmq_management
- Check URL: Ensure that you're using the correct URL. The default URL for the RabbitMQ management interface is http://localhost:15672/. If you're accessing the API, the URL should be http://localhost:15672/api/overview.
- Verify RabbitMQ version: Confirm that your RabbitMQ version supports the management plugin and the specific API endpoint you're trying to access.
- Check firewall/security groups: If you're running RabbitMQ on a remote server, ensure that the port 15672 (default for the management interface) is open and accessible from the server where Site24x7 server agent is installed.
- Review RabbitMQ logs: Review the RabbitMQ logs for any errors or warnings that indicate potential issues. The default log location is typically /var/log/rabbitmq/, but this can vary depending on your setup.
- Verify RabbitMQ configuration: Ensure that there's no custom configuration in your RabbitMQ setup that may cause the management interface to behave unexpectedly. Check the RabbitMQ configuration file for any settings related to the management plugin.
- Restart RabbitMQ: In some cases, simply restarting the RabbitMQ service can resolve transient issues. To restart, execute the following code:
sudo service rabbitmq-server restart
- Check the URL: Double-check the URL in your web browser to ensure that it matches the expected path:
http://localhost:15672/api/overview
- Reinstall the management plugin: As a last resort, you can try disabling and then re-enabling the management plugin:
rabbitmq-plugins disable rabbitmq_management
rabbitmq-plugins enable rabbitmq_management
Once you've made changes based on the checks above, restart the Site24x7 server monitoring agent or re-register the plugin. Within five minutes, you should be able to view performance metrics in Site24x7.
Related Articles
Troubleshoot Error 401 (Unauthorized error) for RabbitMQ
When installing the RabbitMQ monitoring plugins, you may encounter the following error: HTTP Error 401: Unauthorized: This error occurs when the user attempts to access the /api/overview endpoint of RabbitMQ server, which requires authentication, but ...
Troubleshoot "[Errno 111] Connection refused" error for RabbitMQ plugins
When installing the RabbitMQ plugin, you may encounter the following error: urlopen error [Errno 111] Connection refused: This error usually occurs when the plugin tries to connect with the RabbitMQ server but is unable to establish a connection. ...
Troubleshoot Error 404, Error 111, and "no host given" error when installing the Apache plugin
When installing the Apache monitoring plugin, you may encounter the following errors: Error_code : URL Error no host given: The "no host given" error message typically indicates an issue with a URL or request that lacks a hostname. If you encounter ...
Troubleshoot connection errors in the MySQL plugin
When configuring the MySQL plugin, you may encounter the following errors: Error : Connection Error - This error typically indicates that there is a problem establishing a connection to the database. Sometimes, this message is supplemented with an ...
Troubleshoot the HTTP Error 403 (Forbidden) for Jenkins
When installing the Jenkins monitoring plugins, you may encounter the following error: HTTP Error 403: Forbidden: This error usually indicates that you don't have the necessary permissions to access a particular resource or perform a specific action ...