LockerProject/Locker — Issue #870: forever.js is masking errors, not helping
Author: othiym23
Created: 2012-02-25 20:12:22+00:00
State: open

If something is wrong with the underlying mongod, forever will just spin in an eternal loop, adding load to the host system and not successfully starting up:

```
5 Feb 19:15:10 - info: process id:7401
25 Feb 19:15:11 - info: Starting locker with build info:{ "build" : "604", "gitrev" : "53718d9" }
25 Feb 19:15:11 - info: [mongo] note: noprealloc may hurt performance in many applications
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] MongoDB starting : pid=7404 port=27018 dbpath=/home/Me/mongodata 64-bit host=locker_d+singly_at_waferbaby_com
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] db version v2.0.2, pdfile version 4.5
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] git version: 514b122d308928517f5841888ceaa4246a7f18e3
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] options: { dbpath: "/home/Me/mongodata", nohttpinterface: true, nojournal: true, noprealloc: true, port: 27018 }
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] exception in initAndListen: 10310 Unable to acquire lock for lockfilepath: /home/Me/mongodata/mongod.lock, terminating
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 dbexit:
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] shutdown: going to close listening sockets...
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] shutdown: going to flush diaglog...
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] shutdown: going to close sockets...
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] shutdown: waiting for fs preallocator...
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] shutdown: closing all files...
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 [initandlisten] closeAllFiles() finished
25 Feb 19:15:11 - info: [mongo] Sat Feb 25 19:15:11 dbexit: really exiting now
25 Feb 19:15:11 - error: mongod exited unexpectedly with code 100, signal null
warn: Forever detected script exited with code: 0
warn: Forever restarting script for 1041 time
The "sys" module is now called "util". It should have a similar interface.
25 Feb 19:15:43 - info: process id:7408
25 Feb 19:15:46 - info: Starting locker with build info:{ "build" : "604", "gitrev" : "53718d9" }

25 Feb 19:15:46 - info: [mongo] note: noprealloc may hurt performance in many applications
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] MongoDB starting : pid=7411 port=27018 dbpath=/home/Me/mongodata 64-bit host=locker_d+singly_at_waferbaby_com
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] db version v2.0.2, pdfile version 4.5
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] git version: 514b122d308928517f5841888ceaa4246a7f18e3
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] options: { dbpath: "/home/Me/mongodata", nohttpinterface: true, nojournal: true, noprealloc: true, port: 27018 }
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] exception in initAndListen: 10310 Unable to acquire lock for lockfilepath: /home/Me/mongodata/mongod.lock, terminating
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 dbexit:
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] shutdown: going to close listening sockets...
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] shutdown: going to flush diaglog...
25 Feb 19:15:46 - error: mongod exited unexpectedly with code 100, signal null
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] shutdown: going to close sockets...
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] shutdown: waiting for fs preallocator...
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] shutdown: closing all files...
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 [initandlisten] closeAllFiles() finished
25 Feb 19:15:46 - info: [mongo] Sat Feb 25 19:15:46 dbexit: really exiting now
warn: Forever detected script exited with code: 0
warn: Forever restarting script for 1042 time
```