While adding a mongoDB server, it fails with message "Unable to connect to the host / port".

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 message "Unable to connect to host: <hostname> port: <port number>".

                      Solution: Confirm that the Redis host and port are accessible from the server on which the Applications Manager product is installed. Ensure that there are no network restrictions or firewall rules preventing access to the Redis server. To verify the ...
                    • 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. Confirm the port number is correct. If the monitor supports SSL, try enabling or disabling the SSL is ...
                    • 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 ...
                    • 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 ...
                    • I get the error message "Unable to connect to the host / port" when adding a new monitor.

                      Check if the host name is correct. Check if the port number given is the JMX port number. We need JMX port number and not HBase DB port number for monitoring. The JMX port number will be available in hbase-env.sh file. if hbase is running in ...