Introduction If you have ever installed Mongo 3.* version and worrying as to how to upgrade it to Mongo 4.x. Then this story is for you, Mongo has made the upgrades comparatively easy. This story is a brief overview as to how to upgrade Mongo and it is divided into three segments Identification While Migrating Databases from one node to another using mongodump --host sourcehost:27017 --db client_c_n --archive | mongorestore --host targethost:27017 --archive We landed into Unrecognized field 'snapshot'. mongo this error. Debugging We saw that there is a version mismatch as in source host being 4.2.x and target being 3.6.17 between both the mongo servers. Now we have to take an immediate step to upgrade mongo and maintain the same version of mongo across the nodes. So that the dumps can be transferred between nodes. Solution Please note that you can update mongo DB only on Stepwise. For instance, To upgrade from a version earlier than the 3.6-series, yo...
Comments
Post a Comment