Failed to initialize MongoDB: MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at Topology.selectServer (/app/applet/node_modules/mongodb/src/sdam/topology.ts:638:30) at async Topology._connect (/app/applet/node_modules/mongodb/src/sdam/topology.ts:466:22) at async Topology.connect (/app/applet/node_modules/mongodb/src/sdam/topology.ts:402:7) at async topologyConnect (/app/applet/node_modules/mongodb/src/mongo_client.ts:684:9) at async MongoClient._connect (/app/applet/node_modules/mongodb/src/mongo_client.ts:696:7) at async MongoClient.connect (/app/applet/node_modules/mongodb/src/mongo_client.ts:608:7) at async initDb (file:///app/applet/server/db-mongodb.js:27:5) at async startServer (/app/applet/server.ts:9:5) { errorLabelSet: Set(0) {}, reason: TopologyDescription { type: 'Unknown', servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, heartbeatFrequencyMS: 10000, localThresholdMS: 15, setName: null, maxElectionId: null, maxSetVersion: null, commonWireVersion: 0, logicalSessionTimeoutMinutes: null }, code: undefined, [cause]: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 at Socket. (/app/applet/node_modules/mongodb/src/cmap/connect.ts:430:16) at Object.onceWrapper (node:events:634:26) at Socket.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:89:21) { errorLabelSet: Set(3) { 'SystemOverloadedError', 'RetryableError', 'ResetPool' }, beforeHandshake: false, [cause]: Error: connect ECONNREFUSED 127.0.0.1:27017 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1638:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 27017 } } } Failed to initialize MongoDB: MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at Topology.selectServer (/app/applet/node_modules/mongodb/src/sdam/topology.ts:638:30) at async Topology._connect (/app/applet/node_modules/mongodb/src/sdam/topology.ts:466:22) at async Topology.connect (/app/applet/node_modules/mongodb/src/sdam/topology.ts:402:7) at async topologyConnect (/app/applet/node_modules/mongodb/src/mongo_client.ts:684:9) at async MongoClient._connect (/app/applet/node_modules/mongodb/src/mongo_client.ts:696:7) at async MongoClient.connect (/app/applet/node_modules/mongodb/src/mongo_client.ts:608:7) at async initDb (file:///app/applet/server/db-mongodb.js:27:5) at async startServer (/app/applet/server.ts:9:5) { errorLabelSet: Set(0) {}, reason: TopologyDescription { type: 'Unknown', servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, heartbeatFrequencyMS: 10000, localThresholdMS: 15, setName: null, maxElectionId: null, maxSetVersion: null, commonWireVersion: 0, logicalSessionTimeoutMinutes: null }, code: undefined, [cause]: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 at Socket. (/app/applet/node_modules/mongodb/src/cmap/connect.ts:430:16) at Object.onceWrapper (node:events:634:26) at Socket.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:89:21) { errorLabelSet: Set(3) { 'SystemOverloadedError', 'RetryableError', 'ResetPool' }, beforeHandshake: false, [cause]: Error: connect ECONNREFUSED 127.0.0.1:27017 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1638:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 27017 } } } Continuing in development mode without database connection. WebSocket server error: Port 24678 is already in use node:events:497 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE: address already in use 0.0.0.0:3000 at Server.setupListenHandle [as _listen2] (node:net:1941:16) at listenInCluster (node:net:1998:12) at node:net:2207:7 at process.processTicksAndRejections (node:internal/process/task_queues:89:21) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1977:8) at process.processTicksAndRejections (node:internal/process/task_queues:89:21) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '0.0.0.0', port: 3000 } Node.js v22.23.1