DanWahlin/CustomerManager

Can not load the seed files.

PureDeveloper opened this issue · 2 comments

I have mongo running, but can't load the seed files.

Using mac OSX, my terminal output is:


curtiss-mbp:CustomerManager curtiss$ mongo
MongoDB shell version: 2.7.4
connecting to: test
Server has startup warnings:
2014-08-16T18:28:54.115-0400 [initandlisten]
2014-08-16T18:28:54.115-0400 [initandlisten] ** NOTE: This is a development version (2.7.4) of MongoDB.
2014-08-16T18:28:54.115-0400 [initandlisten] ** Not recommended for production.
2014-08-16T18:28:54.115-0400 [initandlisten]
2014-08-16T18:28:54.115-0400 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2014-08-16T18:28:54.115-0400 [initandlisten]

use custmgr
switched to db custmgr
load("initMongoCustData.js")
2014-08-16T18:40:33.956-0400 Error: remove needs a query
at Error ()
at DBCollection.remove (src/mongo/shell/collection.js:299:31)
at initMongoCustData.js:65:14
at (shell):1:1 at src/mongo/shell/collection.js:299
2014-08-16T18:40:33.956-0400 Error: error loading js file: initMongoCustData.js
at (shell):1:1

Wondering if I'm missing something here?

I was able to resolve this by using the answer here:
http://stackoverflow.com/questions/25344834/cant-load-js-into-mongodb

Glad you got it going! I'm updating this comment since I just realized you're in the CustomerManager project and not the CustomerManagerStandard one. The CustomerManagerStandard has the latest version of the code base (including updated load scripts) although it doesn't use require.js. If you're just looking for an AngularJS sample I'd go with that project. If you're specifically looking for require.js integration & dynamic script loading then I'd stick with this project (CustomerManager) although I don't really update it much now. I'll get the load scripts updated though in case anyone else runs into that.