While adding a mongoDB server, it fails with message "Unable to connect to the host / port".
Solution:
Check if the mongod / mongos instance is running in the host name specified.
Check if the port number is given correctly.
If mongod / mongos is running in authenticated mode, then enable "Is Authentication required" and give correct username and password. The user must have clusterMonitor role.
Applications Manager directly connects to admin database using the provided credentials. So, verify whether the user have necessary permissions to access the admin database.
Check for error messages in the mongod server host machine. If the connections are fully utilized, the mongod server rejects any further client connections. In this case, check the value of "maxConn" in mongod / mongos arguments or in the mongodb.conf file in the mongoDB server machine.
If MongoDB is started as a service using the mongod.cfg file and any modifications are made to that configuration file, make sure to restart the MongoDB service for the changes to take effect.
New to ADSelfService Plus?
Related Articles
Discovery of Redis server fails with the message: "Unable to connect to host: <hostname> port: <port number>"
1. Check Host and Port Accessibility Ensure that the Redis host and port are accessible from the server where Applications Manager is installed. Make sure there are no network restrictions or firewall rules blocking access to the Redis server. To ...
Unable to connect to the host
Follow the below steps to troubleshoot the error Check if the given Host Name / IP Address is correct. Run the below command in Applications Manger installed server to ensure Host / IP Address is reachable. ping <Host Name/IP Address> Eg: ping ...
Mail Server Monitor - Troubleshooting
Common Mail Server Monitor Errors and Troubleshooting Guide 1. Unknown Host Error Description: This error occurs when the mail client cannot resolve the hostname of the mail server to an IP address. The issue typically arises from DNS resolution ...
UDP Port Monitor - Troubleshooting
How do we monitor UDP Port? UDP is a connectionless protocol which doesn't send any acknowledgement on connecting to the UDP port like TCP. When UDP port is not open system will send ICMP port unreachable message. The Issue is when the UDP port is ...
Unable to connect to the host / port
Follow the below steps to troubleshoot the error Make sure the service you're trying to connect to is actually running on the designated Host/IP and Port. Ensure the service is accessible by performing the below steps from the Applications Manager ...