Wednesday, 7 January 2015

Mongodb error -- Btree::insert: key too large to index


http://robert-reiz.com/2014/05/03/mongodb-could-not-restore-backup-because-of-key-too-large-to-index-error/

http://blog.58share.com/?p=363

to solve this:

relunch your mongo by:

 mongod --setParameter failIndexKeyTooLong=false --dbpath ./data/db

or :

modify config file by:

mongod --setParameter failIndexKeyTooLong=false -f /usr/local/etc/mongod.conf

No comments:

Post a comment