@baris said in Error while restarting the forum after several plugin update:
@crazycells said in Error while restarting the forum after several plugin update:
at /home/nodebb/forum/nodebb/src/database/mongo/hash.js:157:4
Put a console.log(typeof callback, new Error('test').stack)
just before this line and restart nodebb. Then post the output again, hopefully it should show where the error is coming from.
Thanks for the help... here is the current log:
Clustering enabled: Spinning up 3 process(es).
2020-04-16T06:18:51.460Z [4567/2646] - info: Initializing NodeBB v1.12.2 https://XXXXX
2020-04-16T06:18:56.173Z [4568/2647] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-important`. Skipping.
2020-04-16T06:18:56.179Z [4568/2647] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-poll`. Skipping.
2020-04-16T06:18:56.182Z [4568/2647] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-ns-embed`. Skipping.
2020-04-16T06:18:56.183Z [4568/2647] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-audio-embed`. Skipping.
2020-04-16T06:18:56.185Z [4567/2646] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-important`. Skipping.
2020-04-16T06:18:56.187Z [4568/2647] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-youtube-embed`. Skipping.
2020-04-16T06:18:56.189Z [4569/2649] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-important`. Skipping.
2020-04-16T06:18:56.189Z [4567/2646] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-poll`. Skipping.
2020-04-16T06:18:56.192Z [4569/2649] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-poll`. Skipping.
2020-04-16T06:18:56.193Z [4567/2646] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-ns-embed`. Skipping.
2020-04-16T06:18:56.194Z [4569/2649] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-ns-embed`. Skipping.
2020-04-16T06:18:56.194Z [4567/2646] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-audio-embed`. Skipping.
2020-04-16T06:18:56.195Z [4567/2646] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-youtube-embed`. Skipping.
2020-04-16T06:18:56.196Z [4569/2649] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-audio-embed`. Skipping.
2020-04-16T06:18:56.201Z [4569/2649] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-youtube-embed`. Skipping.
2020-04-16T06:18:57.043Z [4568/2647] - info: [socket.io] Restricting access to origin: https://XXXX
2020-04-16T06:18:57.049Z [4567/2646] - info: [socket.io] Restricting access to origin: https://XXXX
2020-04-16T06:18:57.060Z [4569/2649] - info: [socket.io] Restricting access to origin: https://XXXX
Thu, 16 Apr 2020 06:18:57 GMT hsts deprecated The "includeSubdomains" parameter is deprecated. Use "includeSubDomains" (with a capital D) instead. at node_modules/helmet/index.js:33:28
Thu, 16 Apr 2020 06:18:57 GMT hsts deprecated The "setIf" parameter is deprecated. Refer to the documentation to see how to set the header conditionally. at node_modules/helmet/index.js:33:28
Thu, 16 Apr 2020 06:18:57 GMT hsts deprecated The "includeSubdomains" parameter is deprecated. Use "includeSubDomains" (with a capital D) instead. at node_modules/helmet/index.js:33:28
Thu, 16 Apr 2020 06:18:57 GMT hsts deprecated The "includeSubdomains" parameter is deprecated. Use "includeSubDomains" (with a capital D) instead. at node_modules/helmet/index.js:33:28
Thu, 16 Apr 2020 06:18:57 GMT hsts deprecated The "setIf" parameter is deprecated. Refer to the documentation to see how to set the header conditionally. at node_modules/helmet/index.js:33:28
Thu, 16 Apr 2020 06:18:57 GMT hsts deprecated The "setIf" parameter is deprecated. Refer to the documentation to see how to set the header conditionally. at node_modules/helmet/index.js:33:28
2020-04-16T06:18:59.618Z [4568/2647] - info: [plugins/spam-be-gone] Settings loaded
2020-04-16T06:18:59.636Z [4569/2649] - info: [plugins/spam-be-gone] Settings loaded
2020-04-16T06:18:59.654Z [4567/2646] - info: [plugins/spam-be-gone] Settings loaded
2020-04-16T06:18:59.729Z [4568/2647] - info: Routes added
2020-04-16T06:18:59.745Z [4568/2647] - info: NodeBB Ready
2020-04-16T06:18:59.753Z [4569/2649] - info: Routes added
2020-04-16T06:18:59.755Z [4568/2647] - info: Enabling 'trust proxy'
2020-04-16T06:18:59.758Z [4568/2647] - info: NodeBB is now listening on: 0.0.0.0:4568
2020-04-16T06:18:59.769Z [4569/2649] - info: NodeBB Ready
2020-04-16T06:18:59.775Z [4569/2649] - info: Enabling 'trust proxy'
2020-04-16T06:18:59.778Z [4569/2649] - info: NodeBB is now listening on: 0.0.0.0:4569
2020-04-16T06:18:59.801Z [4567/2646] - info: Routes added
2020-04-16T06:18:59.808Z [4567/2646] - info: NodeBB Ready
2020-04-16T06:18:59.811Z [4567/2646] - info: Enabling 'trust proxy'
2020-04-16T06:18:59.814Z [4567/2646] - info: NodeBB is now listening on: 0.0.0.0:4567
undefined Error: test
at /home/nodebb/forum/nodebb/src/database/mongo/hash.js:157:32
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)
2020-04-16T06:19:05.390Z [4568/2647] - 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:19:05 GMT+0000 (Coordinated Universal Time)","process":{"pid":2647,"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":167682048,"heapTotal":129294336,"heapUsed":92444720,"external":18641115}},"os":{"loadavg":[1.3291015625,1.04541015625,0.4765625],"uptime":324},"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:19:05.396Z [4568/2647] - error: callback is not a function
2020-04-16T06:19:05.396Z [4568/2647] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
2020-04-16T06:19:05.399Z [4568/2647] - info: [app] Web server closed to connections.
2020-04-16T06:19:05.401Z [4568/2647] - info: [app] Live analytics saved.
2020-04-16T06:19:05.409Z [4568/2647] - info: [app] Database connection closed.
2020-04-16T06:19:05.409Z [4568/2647] - info: [app] Shutdown complete.
[cluster] Child Process (2647) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
what do you think?