Error while restarting the forum after several plugin update
-
PArt 2:
function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) function Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Groups.existsBySlug (/home/nodebb/forum/nodebb/src/groups/index.js:284:6) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:66:19 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3880:24 at replenish (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1011:17) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1041:24) at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1046:16 at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at _parallel (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3879:5) undefined Error: test at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32) at Object.plugin.hasKey (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-2factor/library.js:107:35) at Object.plugin.checkSocket [as method] (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-2factor/library.js:196:19) at /home/nodebb/forum/nodebb/src/plugins/hooks.js:172:14 at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3110:16 at eachOfArrayLike (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1069:9) at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5) at Object.eachLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3172:5) at fireStaticHook (/home/nodebb/forum/nodebb/src/plugins/hooks.js:161:9) at Object.Plugins.fireHook (/home/nodebb/forum/nodebb/src/plugins/hooks.js:111:4) 2020-04-16T06:31:21.103Z [4567/3350] - error: uncaughtException: callback is not a function TypeError: callback is not a function at /home/nodebb/forum/nodebb/src/database/mongo/hash.js:158:3 at result (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:410:17) at session.endSession (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:398:11) at ClientSession.endSession (/home/nodebb/forum/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/sessions.js:134:41) at executeCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:395:17) at handleCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:128:55) at cursor.next (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/operations/collection_ops.js:598:5) at result (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:410:17) at executeCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:402:9) at handleCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:128:55) {"error":{},"stack":"TypeError: callback is not a function\n at /home/nodebb/forum/nodebb/src/database/mongo/hash.js:158:3\n at result (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:410:17)\n at session.endSession (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:398:11)\n at ClientSession.endSession (/home/nodebb/forum/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/sessions.js:134:41)\n at executeCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:395:17)\n at handleCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:128:55)\n at cursor.next (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/operations/collection_ops.js:598:5)\n at result (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:410:17)\n at executeCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:402:9)\n at handleCallback (/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js:128:55)","exception":true,"date":"Thu Apr 16 2020 06:31:21 GMT+0000 (Coordinated Universal Time)","process":{"pid":3350,"uid":1001,"gid":1001,"cwd":"/home/nodebb/forum/nodebb","execPath":"/usr/bin/node","version":"v10.20.1","argv":["/usr/bin/node","/home/nodebb/forum/nodebb/app.js"],"memoryUsage":{"rss":167919616,"heapTotal":130342912,"heapUsed":91175904,"external":18662046}},"os":{"loadavg":[0.42626953125,0.28564453125,0.37353515625],"uptime":1059},"trace":[{"column":3,"file":"/home/nodebb/forum/nodebb/src/database/mongo/hash.js","function":null,"line":158,"method":null,"native":false},{"column":17,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"result","line":410,"method":null,"native":false},{"column":11,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"session.endSession","line":398,"method":"endSession","native":false},{"column":41,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/sessions.js","function":"ClientSession.endSession","line":134,"method":"endSession","native":false},{"column":17,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"executeCallback","line":395,"method":null,"native":false},{"column":55,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"handleCallback","line":128,"method":null,"native":false},{"column":5,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/operations/collection_ops.js","function":"cursor.next","line":598,"method":"next","native":false},{"column":17,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"result","line":410,"method":null,"native":false},{"column":9,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"executeCallback","line":402,"method":null,"native":false},{"column":55,"file":"/home/nodebb/forum/nodebb/node_modules/mongodb/lib/utils.js","function":"handleCallback","line":128,"method":null,"native":false}]} 2020-04-16T06:31:21.105Z [4567/3350] - error: callback is not a function 2020-04-16T06:31:21.106Z [4567/3350] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2020-04-16T06:31:21.107Z [4567/3350] - info: [app] Web server closed to connections. 2020-04-16T06:31:21.108Z [4567/3350] - info: [app] Live analytics saved. 2020-04-16T06:31:21.112Z [4567/3350] - info: [app] Database connection closed. 2020-04-16T06:31:21.113Z [4567/3350] - info: [app] Shutdown complete. [cluster] Child Process (3350) has exited (code: 1, signal: null)
-
@crazycells said in Error while restarting the forum after several plugin update:
undefined Error: test
at Object.module.isObjectField (/home/nodebb/forum/nodebb/src/database/mongo/hash.js:156:32)
at Object.plugin.hasKey (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-2factor/library.js:107:35)
at Object.plugin.checkSocket [as method] (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-2factor/library.js:196:19)
at /home/nodebb/forum/nodebb/src/plugins/hooks.js:172:14
at /home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3110:16
at eachOfArrayLike (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1069:9)
at eachOf (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:1117:5)
at Object.eachLimit (/home/nodebb/forum/nodebb/node_modules/async/dist/async.js:3172:5)
at fireStaticHook (/home/nodebb/forum/nodebb/src/plugins/hooks.js:161:9)
at Object.Plugins.fireHook (/home/nodebb/forum/nodebb/src/plugins/hooks.js:111:4)OK, so the issue is in the plugin
nodebb-plugin-2factor
Downgrade it to 2.6.6 and it should work.https://github.com/julianlam/nodebb-plugin-2factor/issues/49
-
@crazycells fwiw, low tech trouble shooting if/when...
- Disable all those plugins.
- See if it works w/the default shipped stuff.
- Selectively add your extras back in one by one until you hit the pothole.
Apologies if overly simplistic, but maybe of use to others? Old greybeard sysadmins' creed is that sometimes low tech is the best tech. At least until you get production stuff back online and can triage at leisure.
-
@baris Thanks, it is possible. I believe we have deleted almost all of the plugins, but somehow got similar errors so decided to install 1.13.2 with a back up database from several hours back.
We have encountered very serious UI problems in our upgrade, all pages were blank and they were all coming when the page is refreshed but none of the buttons were clickable...
After installing 3 times and getting the same problem, we have found the solution here:
https://community.nodebb.org/topic/14672/fresh-installation-seems-broken
I think this needs to be fixed, so others don't have the same problems. We were worried that there was problem with our back up database. Currently, our forum is back on... and we have only lost several hours of posts, which was acceptable for us.
I will update the forum with bugs as we encounter them...
-
@baris We have some problems, but I do not know what... first of all, normally restarting and rebuilding the forum takes less than 30 seconds, however currently it is taking more than 1 minutes...
Forum looks ok, but customize plugin does not seem to be working, both changes in .tpl files and changes in translations are not appearing in the forum...
Here is the log:
[32m started[39m[0m [0m(node:11248) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:11248) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:11248) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 2020-04-16T23:28:46.299Z [4568/11248] - [32minfo[39m: [build] Building in series mode 2020-04-16T23:28:46.299Z [4568/11248] - [32minfo[39m: [build] plugin static dirs build started 2020-04-16T23:28:46.330Z [4568/11248] - [32minfo[39m: [build] plugin static dirs build completed in 0.031sec 2020-04-16T23:28:46.330Z [4568/11248] - [32minfo[39m: [build] requirejs modules build started 2020-04-16T23:28:53.815Z [4568/11248] - [32minfo[39m: [build] requirejs modules build completed in 7.485sec 2020-04-16T23:28:53.816Z [4568/11248] - [32minfo[39m: [build] client js bundle build started 2020-04-16T23:28:57.982Z [4568/11248] - [32minfo[39m: [build] client js bundle build completed in 4.166sec 2020-04-16T23:28:57.986Z [4568/11248] - [32minfo[39m: [build] admin js bundle build started 2020-04-16T23:29:01.630Z [4568/11248] - [32minfo[39m: [build] admin js bundle build completed in 3.644sec 2020-04-16T23:29:01.630Z [4568/11248] - [32minfo[39m: [build] client side styles build started 2020-04-16T23:29:12.275Z [4568/11248] - [32minfo[39m: [build] client side styles build completed in 10.645sec 2020-04-16T23:29:12.275Z [4568/11248] - [32minfo[39m: [build] admin control panel styles build started 2020-04-16T23:29:22.747Z [4568/11248] - [32minfo[39m: [build] admin control panel styles build completed in 10.472sec 2020-04-16T23:29:22.747Z [4568/11248] - [32minfo[39m: [build] templates build started 2020-04-16T23:29:32.754Z [4568/11248] - [32minfo[39m: [build] templates build completed in 10.007sec 2020-04-16T23:29:32.754Z [4568/11248] - [32minfo[39m: [build] languages build started 2020-04-16T23:29:46.563Z [4568/11248] - [32minfo[39m: [build] languages build completed in 13.809sec 2020-04-16T23:29:46.563Z [4568/11248] - [32minfo[39m: [build] sounds build started 2020-04-16T23:29:46.569Z [4568/11248] - [32minfo[39m: [build] sounds build completed in 0.006sec 2020-04-16T23:29:46.570Z [4568/11248] - [32minfo[39m: [build] Asset compilation successful. Completed in 60.27sec. [cluster] Restarting... 2020-04-16T23:29:46.602Z [4567/11247] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2020-04-16T23:29:46.607Z [4569/11249] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2020-04-16T23:29:46.613Z [4568/11248] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. Clustering enabled: Spinning up 3 process(es). 2020-04-16T23:29:46.685Z [4568/11248] - [32minfo[39m: [app] Web server closed to connections. 2020-04-16T23:29:46.684Z [4569/11249] - [32minfo[39m: [app] Web server closed to connections. 2020-04-16T23:29:46.711Z [4568/11248] - [32minfo[39m: [app] Live analytics saved. 2020-04-16T23:29:46.720Z [4569/11249] - [32minfo[39m: [app] Live analytics saved. 2020-04-16T23:29:46.742Z [4567/11247] - [32minfo[39m: [app] Web server closed to connections. 2020-04-16T23:29:46.786Z [4568/11248] - [32minfo[39m: [app] Database connection closed. 2020-04-16T23:29:46.784Z [4567/11247] - [32minfo[39m: [app] Live analytics saved. 2020-04-16T23:29:46.788Z [4568/11248] - [32minfo[39m: [app] Shutdown complete. 2020-04-16T23:29:46.876Z [4569/11249] - [32minfo[39m: [app] Database connection closed. 2020-04-16T23:29:46.876Z [4569/11249] - [32minfo[39m: [app] Shutdown complete. 2020-04-16T23:29:46.945Z [4567/11247] - [32minfo[39m: [app] Database connection closed. 2020-04-16T23:29:46.947Z [4567/11247] - [32minfo[39m: [app] Shutdown complete. [cluster] Child Process (11247) has exited (code: 0, signal: null) [cluster] Child Process (11248) has exited (code: 0, signal: null) [cluster] Child Process (11249) has exited (code: 0, signal: null) 2020-04-16T23:29:48.511Z [4567/13902] - [32minfo[39m: Initializing NodeBB v1.13.2 https://XXXXXX (node:13902) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13903) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13902) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13904) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13902) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13904) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13904) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13903) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 (node:13903) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6 2020-04-16T23:29:54.126Z [4568/13903] - [32minfo[39m: [socket.io] Restricting access to origin: https://XXXXX 2020-04-16T23:29:54.132Z [4569/13904] - [32minfo[39m: [socket.io] Restricting access to origin: https://XXXXX 2020-04-16T23:29:54.198Z [4567/13902] - [32minfo[39m: [socket.io] Restricting access to origin: https://XXXXX 2020-04-16T23:29:55.380Z [4567/13902] - [33mwarn[39m: [deprecated] requiring core modules with `module.parent.require('./database' Require stack: - /home/nodebb/forum/nodebb/src/plugins/index.js - /home/nodebb/forum/nodebb/src/groups/index.js - /home/nodebb/forum/nodebb/src/user/index.js - /home/nodebb/forum/nodebb/src/events.js - /home/nodebb/forum/nodebb/src/meta/themes.js - /home/nodebb/forum/nodebb/src/meta/index.js - /home/nodebb/forum/nodebb/src/start.js - /home/nodebb/forum/nodebb/require-main.js - /home/nodebb/forum/nodebb/app.js)` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24) 2020-04-16T23:29:55.387Z [4569/13904] - [33mwarn[39m: [deprecated] requiring core modules with `module.parent.require('./database' Require stack: - /home/nodebb/forum/nodebb/src/plugins/index.js - /home/nodebb/forum/nodebb/src/groups/index.js - /home/nodebb/forum/nodebb/src/user/index.js - /home/nodebb/forum/nodebb/src/events.js - /home/nodebb/forum/nodebb/src/meta/themes.js - /home/nodebb/forum/nodebb/src/meta/index.js - /home/nodebb/forum/nodebb/src/start.js - /home/nodebb/forum/nodebb/require-main.js - /home/nodebb/forum/nodebb/app.js)` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24) 2020-04-16T23:29:55.388Z [4568/13903] - [33mwarn[39m: [deprecated] requiring core modules with `module.parent.require('./database' Require stack: - /home/nodebb/forum/nodebb/src/plugins/index.js - /home/nodebb/forum/nodebb/src/groups/index.js - /home/nodebb/forum/nodebb/src/user/index.js - /home/nodebb/forum/nodebb/src/events.js - /home/nodebb/forum/nodebb/src/meta/themes.js - /home/nodebb/forum/nodebb/src/meta/index.js - /home/nodebb/forum/nodebb/src/start.js - /home/nodebb/forum/nodebb/require-main.js - /home/nodebb/forum/nodebb/app.js)` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24) 2020-04-16T23:29:56.918Z [4568/13903] - [32minfo[39m: [plugins/spam-be-gone] Settings loaded 2020-04-16T23:29:56.921Z [4569/13904] - [32minfo[39m: [plugins/spam-be-gone] Settings loaded 2020-04-16T23:29:57.029Z [4568/13903] - [32minfo[39m: Routes added 2020-04-16T23:29:57.030Z [4567/13902] - [32minfo[39m: [plugins/spam-be-gone] Settings loaded 2020-04-16T23:29:57.036Z [4569/13904] - [32minfo[39m: Routes added 2020-04-16T23:29:57.043Z [4568/13903] - [32minfo[39m: NodeBB Ready 2020-04-16T23:29:57.051Z [4569/13904] - [32minfo[39m: NodeBB Ready 2020-04-16T23:29:57.059Z [4568/13903] - [32minfo[39m: Enabling 'trust proxy' 2020-04-16T23:29:57.064Z [4568/13903] - [32minfo[39m: NodeBB is now listening on: 0.0.0.0:4568 2020-04-16T23:29:57.066Z [4569/13904] - [32minfo[39m: Enabling 'trust proxy' 2020-04-16T23:29:57.068Z [4569/13904] - [32minfo[39m: NodeBB is now listening on: 0.0.0.0:4569 2020-04-16T23:30:01.733Z [4567/13902] - [33mwarn[39m: [plugins] Callback timed out, hook 'static:app.load' in plugin 'nodebb-plugin-emoji' 2020-04-16T23:30:02.233Z [4567/13902] - [32minfo[39m: Routes added 2020-04-16T23:30:02.417Z [4567/13902] - [32minfo[39m: NodeBB Ready 2020-04-16T23:30:02.420Z [4567/13902] - [32minfo[39m: Enabling 'trust proxy' 2020-04-16T23:30:02.426Z [4567/13902] - [32minfo[39m: NodeBB is now listening on: 0.0.0.0:4567
-
this is the plugin list with order:
nodebb-theme-persona nodebb-plugin-composer-default nodebb-plugin-markdown nodebb-plugin-mentions nodebb-widget-essentials nodebb-rewards-essentials nodebb-plugin-soundpack-default nodebb-plugin-emoji nodebb-plugin-dbsearch nodebb-plugin-btn-spoilers-yesilkart nodebb-plugin-audio-embed nodebb-plugin-calendar nodebb-plugin-canned-responses nodebb-plugin-emoji-one nodebb-plugin-extended-markdown nodebb-plugin-google-analytics nodebb-plugin-ns-embed nodebb-plugin-spam-be-gone nodebb-plugin-osm-map nodebb-plugin-poll nodebb-plugin-recent-cards nodebb-plugin-sso-google nodebb-plugin-browsing-users nodebb-plugin-sso-twitter nodebb-plugin-mega-colors nodebb-plugin-sso-facebook nodebb-plugin-custom-pages nodebb-plugin-tenor-gif nodebb-plugin-night-mode nodebb-plugin-2factor nodebb-plugin-dwnvtr nodebb-plugin-customize
-
@crazycells said in Error while restarting the forum after several plugin update:
therefore we decided to re-install the forum with an automatic back up from several hours back.
How can you do this automaticly? I am using redis and I have to copy dump.rdb manually.
-
@sharonyue said in Error while restarting the forum after several plugin update:
@crazycells said in Error while restarting the forum after several plugin update:
therefore we decided to re-install the forum with an automatic back up from several hours back.
How can you do this automaticly? I am using redis and I have to copy dump.rdb manually.
I think @FreeWorLD should answer this, since he is the main person/coder behind all of our work... As far as I can tell, he wrote some code , so server itself backs up database automatically every 6 hours and deletes oldest ones (we use digital ocean)... As database we use mongodb (I am not sure if it makes difference)...
-
@sharonyue I use mongodb and only use redis for sessions. Backup the mongodb via cron'd mongodump.
This guy uses rdiff and a cron job to automate backups of their redis stuff. I've not used this personally.
-
@sharonyue said in Error while restarting the forum after several plugin update:
@crazycells said in Error while restarting the forum after several plugin update:
therefore we decided to re-install the forum with an automatic back up from several hours back.
How can you do this automaticly? I am using redis and I have to copy dump.rdb manually.
As just mentioned, mongodb is backed up and the archive is compressed via cron, then sent to an external volume. The older ones also deleted periodically again via cron. Redis is used for sessions.
I am looking into the option of taking multiple snapshots in a day via digitalocean API's to replace this system though. I did this succesfully for the data volumes however I have yet to come up with a way to do the same for the droplet itself as i don't see any digitalocean API for that.
-
@crazycells said in Error while restarting the forum after several plugin update:
I think @FreeWorLD should answer this, since he is the main person/coder behind all of our work... As far as I can tell, he wrote some code , so server itself backs up database automatically every 6 hours and deletes oldest ones (we use digital ocean)... As database we use mongodb (I am not sure if it makes difference)...
I explored database options a fair bit. Even looked at PostgreSQL option. From my experimenting I would stick with MongoDB for the main stuff, maybe complimented by an Redis instance for session management (cuz that's what Redis excels at).
-
@FreeWorLD said in Error while restarting the forum after several plugin update:
I am looking into the option of taking multiple snapshots in a day via digitalocean API's to replace this system though.
Interesting. I host my stuff on zfs backed filesystems so incremental snapshots are easy. So is mongodump, at least for the size db I am dealing with - hence never bothered with the snaps. Just an image snap every once in a while. Is mongodump taking a long time and killing performance while it does it's thing?