Here is the full log :
Notif Obj function (cutoff) { if (process.env.NODE_ENV === 'development') { winston.info('[notifications.prune] Removing expired notifications from the database.'); } var today = new Date(), numPruned = 0; if (!cutoff) { cutoff = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 7); } var cutoffTime = cutoff.getTime(); async.parallel({ "inboxes": function(next) { db.getSortedSetRange('users:joindate', 0, -1, function(err, uids) { if(err) { return next(err); } uids = uids.map(function(uid) { return 'uid:' + uid + ':notifications:unread'; }); next(null, uids); }); }, "expiredNids": function(next) { db.getSetMembers('notifications', function(err,nids) { async.filter(nids, function(nid, next) { db.getObjectField('notifications:' + nid, 'datetime', function(err, datetime) { if (parseInt(datetime, 10) < cutoffTime) { next(true); } else { next(false); } }); }, function(expiredNids) { next(null, expiredNids); }); }); } }, function(err, results) { if(err) { if (process.env.NODE_ENV === 'development') { winston.error('[notifications.prune] Ran into trouble pruning expired notifications. Stack trace to follow.'); winston.error(err.stack); } return; } async.eachSeries(results.expiredNids, function(nid, next) { db.sortedSetsScore(results.inboxes, nid, function(err, results) { if(err) { return next(err); } // If the notification is not present in any inbox, delete it altogether var expired = results.every(function(present) { return present === null; }); if (expired) { destroy(nid); numPruned++; } next(); }); }, function(err) { if (process.env.NODE_ENV === 'development') { winston.info('[notifications.prune] Notification pruning completed. ' + numPruned + ' expired notification' + (numPruned !== 1 ? 's' : '') + ' removed.'); } }); }); } D:\nuitInfo2013\forum\node_modules\mongodb\lib\mongodb\connection\base.js:242 throw message; ^ TypeError: undefined is not a function at Object.Notifications.init (D:\nuitInfo2013\forum\src\notifications.js:16:38) at D:\nuitInfo2013\forum\app.js:126:21 at D:\nuitInfo2013\forum\src\upgrade.js:26:4 at D:\nuitInfo2013\forum\src\database\mongo.js:309:4 at D:\nuitInfo2013\forum\src\database\mongo.js:342:4 at D:\nuitInfo2013\forum\node_modules\mongodb\lib\mongodb\collection\query.js:147:5 at Cursor.nextObject (D:\nuitInfo2013\forum\node_modules\mongodb\lib\mongodb\cursor.js:733:5) at commandHandler (D:\nuitInfo2013\forum\node_modules\mongodb\lib\mongodb\cursor.js:713:14) at D:\nuitInfo2013\forum\node_modules\mongodb\lib\mongodb\db.js:1806:9 at Server.Base._callHandler (D:\nuitInfo2013\forum\node_modules\mongodb\lib\ mongodb\connection\base.js:442:41)NodeBB v1.0.4-auto.2 many crashes
-
NodeBB v1.0.4-auto.2
29/5 02:45 [782] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 29/5 02:45 [779] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. (node) warning: possible EventEmitter memory leak detected. 11 connect listeners added. Use emitter.setMaxListeners() to increase limit. 29/5 02:45 [774] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. Trace at Socket.addListener (events.js:252:17) at Socket.Readable.on (_stream_readable.js:673:33) 29/5 02:45 [779] - [32minfo[39m: [app] Database connection closed. 29/5 02:45 [774] - [32minfo[39m: [app] Database connection closed. at Socket.once (events.js:278:8) 29/5 02:45 [779] - [32minfo[39m: [app] Web server closed to connections. 29/5 02:45 [774] - [32minfo[39m: [app] Web server closed to connections. at Socket.unref (net.js:1013:10) 29/5 02:45 [779] - [32minfo[39m: [app] Shutdown complete. 29/5 02:45 [774] - [32minfo[39m: [app] Shutdown complete. at Connection.destroy (/home/wing/nodebb/node_modules/mongodb-core/lib/connection/connection.js:453:23) at /home/wing/nodebb/node_modules/mongodb-core/lib/connection/pool.js:189:7 at Array.forEach (native) at Pool.destroy (/home/wing/nodebb/node_modules/mongodb-core/lib/connection/pool.js:182:15) at Server.destroy (/home/wing/nodebb/node_modules/mongodb-core/lib/topologies/server.js:1072:31) at Server.close (/home/wing/nodebb/node_modules/mongodb/lib/server.js:417:17) 29/5 02:45 [782] - [32minfo[39m: [app] Database connection closed. 29/5 02:45 [782] - [32minfo[39m: [app] Web server closed to connections. 29/5 02:45 [782] - [32minfo[39m: [app] Shutdown complete. [cluster] Child Process (774) has exited (code: 0, signal: null) [cluster] Child Process (779) has exited (code: 0, signal: null) [cluster] Child Process (782) has exited (code: 0, signal: null)