qwizkool / QwizKoolNode

QwizKool Node.js based implementation
0 stars 0 forks source link

Mongo db is very unstable #42

Closed kgvinod closed 11 years ago

kgvinod commented 11 years ago

Mongodb fails to work very frequently. Very often it gets into a state where mongodb service appears be start, mongo doesn't work. And db connection does not get established. The ONLY thing that recovers from the problem is "sudo rm -rf /var/lib/mongodb/* - which deletes the database.

vinod@neptune:~/work/git/QwizKoolNode$ node app.js Qwizkool REST server listening on port 3000

events.js:71 throw arguments[1]; // Unhandled 'error' event ^ Error: failed to connect to [localhost:27017] at Server.connect.connectionPool.on.server._serverState (/home/vinod/work/git/QwizKoolNode/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:482:73) at EventEmitter.emit (events.js:126:20) at connection.on._self._poolState (/home/vinod/work/git/QwizKoolNode/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:96:15) at EventEmitter.emit (events.js:99:17) at Socket.errorHandler (/home/vinod/work/git/QwizKoolNode/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:411:10) at Socket.EventEmitter.emit (events.js:96:17) at Socket._destroy.self.errorEmitted (net.js:329:14) at process.startup.processNextTick.process._tickCallback (node.js:244:9)

vinod@neptune:~/work/git/QwizKoolNode$ mongo MongoDB shell version: 2.4.0 connecting to: test Sat Mar 23 08:24:30.803 JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112 exception: connect failed

sudo service mongodb restart [sudo] password for vinod: stop: Unknown instance: mongodb start/running, process 1313 vinod@neptune:~/work/git/QwizKoolNode$ mongo MongoDB shell version: 2.4.0 connecting to: test Sat Mar 23 08:24:59.224 JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112 exception: connect failed

vinod@neptune:~/work/git/QwizKoolNode$ sudo rm -rf /var/lib/mongodb/* vinod@neptune:~/work/git/QwizKoolNode$ sudo service mongodb restart stop: Unknown instance: mongodb start/running, process 1388

vinod@neptune:~/work/git/QwizKoolNode$ mongo MongoDB shell version: 2.4.0 connecting to: test Welcome to the MongoDB shell. For interactive help, type "help". For more comprehensive documentation, see http://docs.mongodb.org/ Questions? Try the support group http://groups.google.com/group/mongodb-user Server has startup warnings: Sat Mar 23 08:33:31.914 [initandlisten] Sat Mar 23 08:33:31.914 [initandlisten] * NOTE: This is a 32 bit MongoDB binary. Sat Mar 23 08:33:31.914 [initandlisten] * 32 bit builds are limited to less than 2GB of data (or less with --journal). Sat Mar 23 08:33:31.914 [initandlisten] * Note that journaling defaults to off for 32 bit and is currently off. Sat Mar 23 08:33:31.914 [initandlisten] * See http://dochub.mongodb.org/core/32bit Sat Mar 23 08:33:31.914 [initandlisten]

q

kgvinod commented 11 years ago

Cannot reproduce