In some cases, the mongod service has been down and you get this error through the shell or GUI.
General Error:
Error: No suitable servers found (serverSelectionTryOnce set): [connection refused calling ismaster on 'localhost:27217']
We also found cases where JetMongo fails to start due to this error which can be caused by having localhost set to ipv6 instead of ipv4 in the /etc/hosts
file.
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Please try setting the localhost to the default ipv4 IP (127.0.0.1)
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
and then restarting the jetbackup5d service:systemctl restart jetbackup5d
It is important to also ensure that your server is not blocking localhost traffic over port 27217. You can use the Ncat command to verify that traffic is allowed:
nc -v localhost 27217
Ncat: Connected to 127.0.0.1:27217.
If instead you get the output nc: connect to localhost (127.0.0.1) port 27217 (tcp) failed: Connection refused
, you will need to work with your qualified systems administrator to resolve this.