From 74144e50b728bf2d685cbcc40776ea08c8bd38c0 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 22 May 2016 13:58:29 -0700 Subject: [PATCH] Note --batchSize=100 option for database restore on certain Mongo versions --- Dev-Setup:-Issues.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dev-Setup:-Issues.md b/Dev-Setup:-Issues.md index 2615f56..023b8f3 100644 --- a/Dev-Setup:-Issues.md +++ b/Dev-Setup:-Issues.md @@ -2,6 +2,16 @@ If you are having a problem not listed here, jump into [our dev chat](https://coco-slack-invite.herokuapp.com/) and let's get it fixed and then documented here. You might want to check your versions of node, npm, MongoDB, and Python, and also make sure your GitHub copy of CodeCombat is [up-to-date](https://help.github.com/articles/syncing-a-fork/). +### Database + +If you get an error like this: + +> Failed: restore error: coco.media.chunks: error restoring from /root/data/dump/coco/media.chunks.bson: insertion error: EOF + +Then try using the `--batchSize=100` option: + +> mongorestore --drop --batchSize=100 /root/data/dump + ### Bower If you get errors with bower not being able to clone git repositories, try [cloning over https](http://stackoverflow.com/questions/1722807/git-convert-git-urls-to-http-urls/11383587#11383587).