vkarpov15 / run-rs

Zero-config MongoDB runner. Starts a replica set with no non-Node dependencies, not even MongoDB.
Apache License 2.0
265 stars 36 forks source link

Unable to start or create replica set with mongodb 4.4.1 #57

Open wjarvis-verb opened 3 years ago

wjarvis-verb commented 3 years ago

Recently I had to brew update && brew upgrade for something, which bumped mongodb-community from 4.2 to 4.4.1. When trying to use run-rs to restart a replica set, I was never able to restart my previous replica set or start a new one (using the command run-rs -k -m -p 27018)

Looking at the source in index.js, I got logs as far as https://github.com/vkarpov15/run-rs/blob/master/index.js#L127, but never made it out of that if block to e.g. https://github.com/vkarpov15/run-rs/blob/master/index.js#L151. Best guess is that the mongodb-topology-manager hasn't been updated since 2019 and something is out of date.

For the time being I was able to resolve this by reverting back to 4.2.

vorticalbox commented 3 years ago

this is because mongo is no longer (after 4.2) echoing a message to stdout that mongodb-topology-manager requires

'db version v4.1.1\ngit version: 9184a03574c398b087b929fda8ed428f0c64d28c\nallocator: tcmalloc\nmodules: none\nbuild environment:\n distarch: x86_64\n target_arch: x86_64\n'

I think at this point it is probably worth just taking the code from that repo and having it in here so it can be worked.