Error: Server is unavailable
See original GitHub issueI am getting error while try to start run-rs. When I check data folder, folder 27017 contain some files, but 27018 and 27019 are empty. MongoDB is running at 27017, but it looks like that it wont start servers at 27018 and 27019.
OS: archlinux 5.10.83-1-lts Node: v17.1.0. npm: 8.1.3
Purging database... Running '/usr/lib/node_modules/run-rs/4.0.12/mongod' [ 27017, 27018, 27019 ] Starting replica set... Error: Server is unavailable at /usr/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/utils.js:79:40 at Socket.<anonymous> (/usr/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/utils.js:43:5) at Socket.emit (node:events:390:28) at emitErrorNT (node:internal/streams/destroy:164:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:83:21)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:6

Top Related StackOverflow Question
I created a docker image to run mongodb 5.0.9 with run-rs https://github.com/giant-connect/docker-mongodb-rs
Same issue here, with node
v17.5.0