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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6.0-rc1
    • 2.6.0-rc2
    • 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 >

    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

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

            Dates

              Created:
              Updated:
              Resolved: