Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14248

ERROR: error upgrading config database to v5::caused by:: newer version 5 of mongo config metadata is required, current version is 4, need to run mongos with --upgrade

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None

    Description

      I have deployed a sharded cluster following the steps given in the mongodb documentation.
      Currently, I have deployed one shard (i.e. single replica set ) in the cluster for dev purpose.

      My configuration for the sharded cluster is as follows :

      1) Server 1 ( IP = x.x.x.1 ): -
      1 mongos, 1 config server, 1 repl node ( lets say Primary )
      2) Server 2 ( IP = x.x.x.2 ): -
      1 mongos, 1 config server, 1 repl node ( lets say Secondary )
      3) Server 3 ( IP = x.x.x.3 ): -
      1 mongos, 1 config server, 1 repl node ( lets say Arbiter )

      All the three servers are of mongo version 2.4.9 and deployment is over three different servers

      Accidentally on Server 3 machine got rebooted and I updated the yum repository due to which mongo version got updated to 2.6.1.

      Now, when I try to restart the services, all the other services gets restarted properly except mongos service on server 3( as this is the only node which got updated, other nodes are on 2.4.9 )

      Mongos service result in to an error as follows :

      ERROR: error upgrading config database to v5::caused by:: newer version 5 of mongo config metadata is required, current version is 4, need to run mongos with --upgrade

      Please let me know how can I overcome this problem

      ( Note : All of my shard elements are working on different ports i.e. mongos is on 27022, config servers is on 27021 and the replica set elements is on 27020 )

      Thanks,
      Pratik

      Attachments

        Activity

          People

            Unassigned Unassigned
            Pratik Pratik Gadiya [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: