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

db.upgradeCheckAllDbs() reports "Collection Error: lack of _id index on collection: local.startup_log" on a freshly installed 2.4.9 standalone mongod instance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.0-rc1
    • Fix Version/s: 2.6.0-rc2
    • Component/s: Shell
    • Labels:
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Run a 2.4.9 standalone mongod:

      mongod --dbpath SOME_EMPTY_DIRECTORY

      Run a 2.6.0-rc1 mongo shell and run the db.upgradeCheckAllDbs() command on the admin database:

      /tmp/mongodb-osx-x86_64-2.6.0-rc1/bin/mongo 
      MongoDB shell version: 2.6.0-rc1
      connecting to: localhost:27017/test
      > use admin
      switched to db admin
      > db.upgradeCheckAllDbs()
       
      Checking database local
       
      Checking collection local.startup_log
      Collection Error: lack of _id index on collection: local.startup_log
      To fix the problems above please consult http://dochub.mongodb.org/core/upgrade_checker_help
      false
      > 

      Show
      Run a 2.4.9 standalone mongod: mongod --dbpath SOME_EMPTY_DIRECTORY Run a 2.6.0-rc1 mongo shell and run the db.upgradeCheckAllDbs() command on the admin database: /tmp/mongodb-osx-x86_64-2.6.0-rc1/bin/mongo MongoDB shell version: 2.6.0-rc1 connecting to: localhost:27017/test > use admin switched to db admin > db.upgradeCheckAllDbs()   Checking database local   Checking collection local.startup_log Collection Error: lack of _id index on collection: local.startup_log To fix the problems above please consult http://dochub.mongodb.org/core/upgrade_checker_help false >

      Description

      From a 2.6.0-rc1 mongo shell, db.upgradeCheckAllDbs() reports "Collection Error: lack of _id index on collection: local.startup_log" on a freshly installed 2.4.9 standalone mongod instance.

      This also happens with a freshly installed 2.4.9 3-node replica set.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: