when using mongoimport and other tools to connect to remote mongodb server, the following error is often reported:
Failed: error connecting to db server: no reachable servers
this is due to the mongodb server restriction that only allows 127.0.0.1 access. There are three modification methods:
1. Add parameter –bind_ip_all
mongod –bind_ip_all
2. Add parameters –bind_ip 0.0.0.0
mongod – bind_ip 0.0.0.0 p>
3. Modify mongod. CFG
bindIp: 0.0.0.0 p>
p>
reference document
mongodb meet error: no reachable servers
Read More:
- Failed: error connecting to db server: server returned error on SASL authentication step: Authentica
- [Solved] org.mongodb.driver.cluster – Exception in monitor thread while connecting to server node1:27017
- Mongodb uses Mongo to report error: could’t connect to server 127.0.0.1:27017, connection attempt failed: socket
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- The mongoDB service failed to start (exception: connect failed)
- Error when connecting to database: DB2 SQL error: sqlcode = – 204, sqlstate = 42704, sqlerrmc= YXUAT.CUST_ BLK_ REL, DRIVER=4.25.13
- Mongodb failed to start: child process failed, exited with error number 100
- “503 Service Unavailable” error when connecting to vCenter Server using vSphere Web Client (2121043)
- [Solved] failed to req API:/nacos/v1/ns/instance after all servers
- 530 user cannot log in. Problem connecting to FTP server
- 【MongoDB】 Failed to connect to 127.0.0.1:27017, reason: Connection refused
- (Windows+xrdp+ubuntu16.04) Remote server error: “password failed error-problem connecting”
- [Solved] Servers Install matlab 2018a error: license checkout failed -8
- Top35: pychar reports an error when connecting to MySQL server returns invalid timezone. Need to set ‘servertimezone’ property
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- Mongodb start error: child process failed, exited with error number 1
- Failed to connect to Mir:Failed to connect to server socket:No such file or directory
- 【wget failed】Connecting to 127.0.0.1:7890… failed: Connection refused.
- Nginx reports 502 error, log connect() failed (111: Connection refused) while connecting to upstream. A personal effective solution
- error: \*1035 connect() failed (111: Connection refused) while connecting to upstream, client…..