Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

365
Views
WriteConcern detected an error cased by assertion in btree.cpp:390

When I am saving documents in monogdb, getting the following error:

WriteConcern detected an error 'insertDocument :: caused by :: 
0 assertion src\mongo\db\structure\btree\btree.cpp:390'. 

(Response was { 
    "ok" : 1, "code" : 8, "err" : "insertDocument :: caused by :: 0 
    assertion src\\mongo\\db\\structure\\btree\\btree.cpp:390", "n" : NumberLong(0) 
})

Any help please?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It seems like the code is failing during verify() assertion call while adding a key into a bucket. This error should come with extra details in the log file such as:

btree bucket corrupt? consider reindexing or running validate command klast: X key: Y

which suggets that your btree bucket could be corrupted.

So consider repairing your database by:

mongod --repair --dbpath /path/to/data/db

then reindex if necessary.

Also make sure you've enough free space on your device and got the right read and write permissions. If this happens often, either it's a bug or fault of your storage device.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!