mongodb repair cannot repair database when the server stop due to low storage

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 6.0.21
    • Component/s: None
    • ALL
    • Hide

      we are using Ubuntu 22.04.5 LTS jammy , to create this issue fill up the storage while the mongodb server is running . (we had multiple databases in our server). once the storage is full , mongoserver will be automatically stoped due to low storage.

      now clear storage and restart mongodb it will restart and show active when we type "sudo service mongod status"
      now attempt to connect to mongosh it will fail any attempt to connect and access db will also fail because data is corrupted and cant be recovered from this point using repair command too

      Show
      we are using Ubuntu 22.04.5 LTS jammy , to create this issue fill up the storage while the mongodb server is running . (we had multiple databases in our server). once the storage is full , mongoserver will be automatically stoped due to low storage. now clear storage and restart mongodb it will restart and show active when we type "sudo service mongod status" now attempt to connect to mongosh it will fail any attempt to connect and access db will also fail because data is corrupted and cant be recovered from this point using repair command too
    • 🟡 Potential Risk
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      as mentioned in the description we are facing this issue and are really scared. we are using mongodb 6.0.21 and when the servers storage space run out the mongodb server is stoped automatically. thsi is fine but there is no way to start the mongodb server again.when i try to connect to mongodb using mongosh it wont work either. i tried repair command and it also wont repair the db. luckily we only faced this issue in our local server and not in our production server only solution to the problem is to delete the folder containing data and start fresh. we faced this issue atleast 4 times and had to wipe data to use it again so i believe this is a very serious bug.

            Assignee:
            Chris Kelly
            Reporter:
            Joby N/A
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: