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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc2
    • Affects Version/s: 2.6.0-rc1
    • Component/s: Shell
    • ALL
    • 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 >

      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.

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            tim.olsen@mongodb.com Timothy Olsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: