I’ve tried to config replica set with MongoDB 4.0.4 and got an error “Support for replication protocol version 0 was removed in MongoDB 4.0. Downgrade to MongoDB version 3.6 and upgrade your protocol version to 1 before upgrading your MongoDB version”. I tried the same on version 3.6 and it works like a charm.
How could I set up a replica set on version 4? Is it possible now?
Thanks for any help.
Hi, Please provide the output of rs.conf(). if you are upgrading from version 3.6 it is required to change protocolVersion from 0 to 1. https://docs.mongodb.com/manual/release-notes/4.0-upgrade-replica-set/#remove-pv0-for-replica-sets