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

Error repairing database

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.9, 2.6.4
    • Component/s: Storage
    • Labels:
      None

      Hi Team ,

      Could you advise how can I track on the issue ?

      I am doing an incremental backup on the database , but failed when fetching the oplogs , so I run the repair command and fails again.
      below is the error message.

      2014-12-23T13:53:44.007+0800 [FileAllocator] allocating new datafile /home/ISH/Data/_tmp_repairDatabase_0/local/local.41, filling with zeroes...
      2014-12-23T13:53:44.023+0800 [FileAllocator] done allocating datafile /home/ISH/Data/_tmp_repairDatabase_0/local/local.41, size: 2047MB, took 0.016 secs
      2014-12-23T13:53:44.024+0800 [FileAllocator] allocating new datafile /home/ISH/Data/_tmp_repairDatabase_0/local/local.42, filling with zeroes...
      2014-12-23T13:53:44.059+0800 [FileAllocator] done allocating datafile /home/ISH/Data/_tmp_repairDatabase_0/local/local.42, size: 2047MB, took 0.034 secs
      2014-12-23T13:53:44.108+0800 [initandlisten] warning Listener::getElapsedTimeMillis returning 0ms
      2014-12-23T13:53:44.174+0800 [initandlisten] warning Listener::getElapsedTimeMillis returning 0ms
      2014-12-23T13:53:44.245+0800 [initandlisten] Assertion: 10334:BSONObj size: 1634624622 (0x616E646E) is invalid. Size must be between 0 and 16793600(16MB) First element: e: ?type=109
      2014-12-23T13:53:44.332+0800 [initandlisten] local.oplog.rs 0x11e6111 0x1187e49 0x116c9f6 0x116cf4c 0x77329b 0x8b6d28 0xe016bf 0x767d4e 0x76aa0c 0x76c62f 0x76cedb 0x76d475 0x76d699 0x31dc81ed1d 0x764329
      mongod(_ZN5mongo15printStackTraceERSo+0x21) [0x11e6111]
      mongod(_ZN5mongo10logContextEPKc+0x159) [0x1187e49]
      mongod(_ZN5mongo11msgassertedEiPKc+0xe6) [0x116c9f6]
      mongod() [0x116cf4c]
      mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x41b) [0x77329b]
      mongod(_ZN5mongo10Collection6docForERKNS_7DiskLocE+0x68) [0x8b6d28]
      mongod(_ZN5mongo14repairDatabaseESsbb+0x24ef) [0xe016bf]
      mongod(_ZN5mongo11doDBUpgradeERKSsPNS_14DataFileHeaderE+0x5e) [0x767d4e]
      mongod() [0x76aa0c]
      mongod(_ZN5mongo14_initAndListenEi+0x5df) [0x76c62f]
      mongod(_ZN5mongo13initAndListenEi+0x1b) [0x76cedb]
      mongod() [0x76d475]
      mongod(main+0x9) [0x76d699]
      /lib64/libc.so.6(__libc_start_main+0xfd) [0x31dc81ed1d]
      mongod() [0x764329]
      2014-12-23T13:53:44.341+0800 [initandlisten] cleaning up failed repair db: local path: /home/ISH/Data/_tmp_repairDatabase_0
      2014-12-23T13:53:46.279+0800 [initandlisten] exception in initAndListen: 10334 BSONObj size: 1634624622 (0x616E646E) is invalid. Size must be between 0 and 16793600(16MB) First element: e: ?type=109, terminating
      2014-12-23T13:53:46.279+0800 [initandlisten] dbexit:

      Thanks in Advance

      Carl Dong

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            carl.dong@windfindtech.com carl dong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: