MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connection 0 to localhost:27017 timed out
at Socket.<anonymous> (D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\connection.js:355:7)
at Object.onceWrapper (events.js:427:28)
at Socket.emit (events.js:321:20)
at Socket._onTimeout (net.js:478:8)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) {
name: 'MongoNetworkError'
}]
at Pool.<anonymous> (D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\topologies\server.js:438:11)
at Pool.emit (events.js:321:20)
at D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\pool.js:562:14
at D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\pool.js:995:11
at callback (D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\connect.js:97:5)
at D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\connect.js:124:7
at _callback (D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\connect.js:349:5)
at Connection.errorHandler (D:\Desktop\node\mongodblearn\07_student_list\node_modules\mongodb\lib\core\connection\connect.js:365:5)
at Object.onceWrapper (events.js:428:26)
at Connection.emit (events.js:321:20) {
name: 'MongoNetworkError'
}
The above error indicates that Mongodb is not started
Read More:
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect EC
- CentOS Liunx 7 uses rdesktop to remotely connect to the Alibaba Cloud server and it appears Failed to connect, CredSSP required by server.
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- Failed to connect to Mir:Failed to connect to server socket:No such file or directory
- Mongodb uses Mongo to report error: could’t connect to server 127.0.0.1:27017, connection attempt failed: socket
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- Error: could’t connect to server 127.0.0.1:27017, connection attempt failed
- [Solved] failed to connect to server, reason: Unable to establish connection
- JRebel: ERROR Failed to obtain seat. Unable to connect to license server. Check
- EBS R12 login error—R12.1 FRM-92050: FAILED TO CONNECT TO SERVER: /FORMS/LSERVLET
- 【Synergy】Error:failed to connect to server:Connection was refused
- Problem solving: PDF cannot be opened, and acrobat failed to connect to a DDE server appears
- [Bug] Solve the problem that Acrobat cannot be opened: failed to connect to a DDE server
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- The server just without updating PID file and can’t connect to local MySQL server through socket are solved
- MYSQL login error: mysqladmin: connect to server at’localhost’ failed
- RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
- Host is not allowed to connect to this MySQL server
- Can’t connect to MySQL server on ‘192.168.64.132‘
- Can’t connect to MySQL server error 111