Re: MongoDB repair command failed

538 views
Skip to first unread message

Adam C

unread,
Dec 3, 2012, 7:31:15 AM12/3/12
to mongod...@googlegroups.com
I answered this over on Stack Overflow because I saw it there first.  Does this make sense:


Adam

On Monday, December 3, 2012 9:15:45 AM UTC, suvankar satpati wrote:
Previously i was running out of disk space, and mongodb stopped working. Then I have increased disk size but mongodb does not start working.

Though i have journaling enabled, i have execute following command  
sudo -u mongodb mongod --dbpath /var/lib/mongodb/  --repair

But this repair command got an exception and stop repairing and then exit.



        Fri Nov 30 13:29:36 [initandlisten] build index bd_production.news { _id: 1 }
        
        Fri Nov 30 13:29:36 [initandlisten]      fastBuildIndex dupsToDrop:0
        
        Fri Nov 30 13:29:36 [initandlisten] build index done.  scanned 2549 total
        records. 0.008 secs
        
        Fri Nov 30 13:29:36 [initandlisten]  bd_production.change_sets
        Assertion failure isOk() src/mongo/db/pdfile.h 360
    
      0x879d86a 0x85a9835 0x85e441e 0x84caa02 0x84c7d19 0x8229b5a 0x822bfd8
     0x875bd51 0x875f0c7 0x8760df4 0x83e6523 0x83b6c3b 0x8753b07 0x83b92bf
     0x8827ab7 0x882a53b 0x882d4bf 0x882d691 0x85ed280 0x81719dc
    
     mongod(_ZN5mongo15printStackTraceERSo+0x2a) [0x879d86a]
    
     mongod(_ZN5mongo10logContextEPKc+0xa5) [0x85a9835]
     ...
     ...
     ...
        ... some error msg 
        
        Fri Nov 30 13:29:36 [initandlisten] assertion 0 assertion
         src/mongo/db/pdfile.h:360 ns:bd_production.change_sets
        query:{}
        
         Fri Nov 30 13:29:36 [initandlisten] problem detected during query over
         bd_production.change_sets : { $err: "assertion
         src/mongo/db/pdfile.h:360" }
        
        Fri Nov 30 13:29:36 [initandlisten] query
        bd_production.change_sets ntoreturn:0 keyUpdates:0 exception:
        assertion src/mongo/db/pdfile.h:360  reslen:71 197ms
        
         Fri Nov 30 13:29:36 [initandlisten] exception in initAndListen: 13106
         nextSafe(): { $err: "assertion src/mongo/db/pdfile.h:360" }, terminating
        
         Fri Nov 30 13:29:36 dbexit:
        ...
        ...

news collection is repaired successfully but the 'change_set' does not repair successfully.

How can i repair that particular collection (change_set) or database ?

 

Reply all
Reply to author
Forward
0 new messages