mongos
is not running in the beginning. When tried to start the mongos
I see the following log:
Fri Mar 22 17:43:13.383 [mongosMain] ERROR: error upgrading config database to v4 :: caused by :: newer version 4 of mongo config metadata is required, current version is 3, need to run mongos with --upgrade
But with --upgrade
parameter, I see the following log:
Fri Mar 22 17:43:39.273 [mongosMain] ERROR: error upgrading config database to v4 :: caused by :: balancer must be stopped for config upgrade
Now the problem is: I cannot stop the balancer by sh.stopBalancer()
because I cannot start mongos. It's a deadlock to me now. Please help.
I found the the problem. I should connect to port 27019
for a configsrv
. In this way I don't need to start mongos
. Instead the sh.stopBalancer()
could be executed simply in mongo
interpreter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With