node.js - Starting KeystoneJS fail -
i try set first project using keystonejs when try use "node keystone" receive following error. can explain me why that?
mongo error: [error: failed connect [localhost:27017]] /users/marius/desktop/doner/node_modules/keystone/lib/core/mount.js:606 throw new error('keystonejs (' + keystone.get('name') + ') failed start' ^ error: keystonejs (doner) failed start @ nativeconnection.<anonymous> (/users/marius/desktop/doner/node_modules/keystone/lib/core/mount.js:606:10) @ nativeconnection.emit (events.js:107:17) @ nativeconnection.connection.error (/users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/lib/connection.js:389:8) @ /users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/lib/connection.js:416:14 @ /users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:57:21 @ /users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:286:18 @ /users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:364:18 @ server.close (/users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:192:38) @ db.close (/users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:360:21) @ /users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:284:21 @ null.<anonymous> (/users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:565:7) @ emit (events.js:118:17) @ null.<anonymous> (/users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15) @ emit (events.js:110:17) @ socket.<anonymous> (/users/marius/desktop/doner/node_modules/keystone/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10) @ socket.emit (events.js:107:17)
keystone not connect mongodb. keystone doesn't manage mongodb you. make sure mongodb running before "node keystone".
Comments
Post a Comment