I’ve managed to get nearly everything up and running in my local dev environment but whenever I perform mongorestore to get the local version running it hits an error creating index coco.levels: “Index with name: version index already exists with different options”. I tried deleting all local database data and attempting again but that didn’t help. Any help would be greatly appreciated.
Thanks but those are the ones I removed previously (stored under cocodb/ since I’m on windows). Maybe it’s related to this warning I see further up?
WARNING: collection coco.levels exists with different options than are in the metadata.json file and not using --drop. Options in the metadata file will be ignored.
I’ll keep playing and see if I can find something that works for me.
I’m no expert on the windows setup, but it does sound like it might be related to the database having been created before the import. When you removed the files, was Mongo still running? Perhaps dropDatabase would work better. What version of MongoDB do you have installed?
Mongo was off while I deleted the files (I went back to try it while it was on just in case but it locks the files while its running). I tried it with dropDatabase but unfortunately I still get the same error. It’s version 2.6 that was downloaded via the automated windows installer, should I be using an older version?