Buy Percona ServicesBuy Now!

Config ReplicaSet in Mongo 4.0.4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Config ReplicaSet in Mongo 4.0.4

    Hello all
    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.

  • #2
    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/rele...r-replica-sets

    Comment

    Working...
    X