Node bb getting shutdown due to markdown plugin and 2 services try to restart it but it fails.
-
2018-04-18T05:20:30.818Z [21020] - [32minfo[39m: [app] Database connection closed. 2018-04-18T05:20:30.819Z [21020] - [32minfo[39m: [app] Web server closed to connections. 2018-04-18T05:20:30.819Z [21020] - [32minfo[39m: [app] Shutdown complete. 2018-04-18T05:20:31.772Z [4660] - [32minfo[39m: Initializing NodeBB v1.8.1 https://chatrooms.talkwithstranger.com 2018-04-18T05:20:33.908Z [4660] - [33mwarn[39m: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-save-plugins`. Skipping. 2018-04-18T05:20:33.925Z [4660] - [33mwarn[39m: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-tws`. Skipping. 2018-04-18T05:20:34.457Z [4660] - [32minfo[39m: [socket.io] Restricting access to origin: https://chatrooms.talkwithstranger.com:* 2018-04-18T05:20:35.438Z [4660] - [32minfo[39m: [plugins/Giphy] Initializing with API key: dc6zaTOxFJmzC 2018-04-18T05:20:35.438Z [4660] - [33mwarn[39m: [plugins/Giphy] API key is still set to the public beta key 2018-04-18T05:20:35.530Z [4660] - [32minfo[39m: Routes added 2018-04-18T05:20:35.538Z [4660] - [32minfo[39m: NodeBB Ready 2018-04-18T05:20:35.546Z [4660] - [32minfo[39m: Enabling 'trust proxy' 2018-04-18T05:20:35.551Z [4660] - [32minfo[39m: NodeBB is now listening on: 0.0.0.0:4567 2018-04-18T05:20:40.686Z [4660] - [31merror[39m: TypeError: Cannot read property 'hasOwnProperty' of null at postParse (/var/www/nodebb/node_modules/nodebb-plugin-markdown/index.js:181:14) at /var/www/nodebb/node_modules/async/dist/async.js:66:19 at nextTask (/var/www/nodebb/node_modules/async/dist/async.js:5310:14) at next (/var/www/nodebb/node_modules/async/dist/async.js:5317:9) at /var/www/nodebb/node_modules/async/dist/async.js:958:16 at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) 2018-04-18T05:20:40.687Z [4660] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2018-04-18T05:20:40.688Z [4660] - [32minfo[39m: [app] Database connection closed. 2018-04-18T05:20:40.688Z [4660] - [32minfo[39m: [app] Web server closed to connections. 2018-04-18T05:20:40.688Z [4660] - [32minfo[39m: [app] Shutdown complete. 2018-04-18T05:20:41.342Z [4701] - [32minfo[39m: Initializing NodeBB v1.8.1 https://chatrooms.talkwithstranger.com 2018-04-18T05:20:42.803Z [4701] - [33mwarn[39m: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-save-plugins`. Skipping. 2018-04-18T05:20:42.807Z [4701] - [33mwarn[39m: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-tws`. Skipping. 2018-04-18T05:20:43.109Z [4701] - [32minfo[39m: [socket.io] Restricting access to origin: https://chatrooms.talkwithstranger.com:* 2018-04-18T05:20:43.824Z [4701] - [32minfo[39m: [plugins/Giphy] Initializing with API key: dc6zaTOxFJmzC 2018-04-18T05:20:43.824Z [4701] - [33mwarn[39m: [plugins/Giphy] API key is still set to the public beta key 2018-04-18T05:20:43.901Z [4701] - [32minfo[39m: Routes added 2018-04-18T05:20:43.909Z [4701] - [32minfo[39m: NodeBB Ready 2018-04-18T05:20:43.919Z [4701] - [32minfo[39m: Enabling 'trust proxy' 2018-04-18T05:20:43.924Z [4701] - [32minfo[39m: NodeBB is now listening on: 0.0.0.0:4567 2018-04-18T05:20:44.328Z [4701] - [33mwarn[39m: [widgets.render] passing a string is deprecated!, filter:widget.render:shoutbox. Please set hookData.html in your plugin. 2018-04-18T05:20:47.391Z [4701] - [31merror[39m: TypeError: Cannot read property 'hasOwnProperty' of null at postParse (/var/www/nodebb/node_modules/nodebb-plugin-markdown/index.js:181:14) at /var/www/nodebb/node_modules/async/dist/async.js:66:19 at nextTask (/var/www/nodebb/node_modules/async/dist/async.js:5310:14) at next (/var/www/nodebb/node_modules/async/dist/async.js:5317:9) at /var/www/nodebb/node_modules/async/dist/async.js:958:16 at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) 2018-04-18T05:20:47.393Z [4701] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2018-04-18T05:20:47.395Z [4701] - [32minfo[39m: [app] Database connection closed. 2018-04-18T05:20:47.395Z [4701] - [32minfo[39m: [app] Web server closed to connections. 2018-04-18T05:20:47.396Z [4701] - [32minfo[39m: [app] Shutdown complete. 2018-04-18T05:20:48.161Z [4744] - [32minfo[39m: Initializing NodeBB v1.8.1 https://chatrooms.talkwithstranger.com 2018-04-18T05:20:49.697Z [4744] - [33mwarn[39m: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-save-plugins`. Skipping. 2018-04-18T05:20:49.702Z [4744] - [33mwarn[39m: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-tws`. Skipping. 2018-04-18T05:20:50.005Z [4744] - [32minfo[39m: [socket.io] Restricting access to origin: https://chatrooms.talkwithstranger.com:* 2018-04-18T05:20:50.790Z [4744] - [32minfo[39m: [plugins/Giphy] Initializing with API key: dc6zaTOxFJmzC 2018-04-18T05:20:50.790Z [4744] - [33mwarn[39m: [plugins/Giphy] API key is still set to the public beta key 2018-04-18T05:20:50.886Z [4744] - [32minfo[39m: Routes added 2018-04-18T05:20:50.893Z [4744] - [32minfo[39m: NodeBB Ready 2018-04-18T05:20:50.906Z [4744] - [32minfo[39m: Enabling 'trust proxy' 2018-04-18T05:20:50.913Z [4744] - [32minfo[39m: NodeBB is now listening on: 0.0.0.0:4567 2018-04-18T05:20:51.913Z [4744] - [33mwarn[39m: [widgets.render] passing a string is deprecated!, filter:widget.render:shoutbox. Please set hookData.html in your plugin. 2018-04-18T05:20:52.434Z [4744] - [31merror[39m: TypeError: Cannot read property 'hasOwnProperty' of null at postParse (/var/www/nodebb/node_modules/nodebb-plugin-markdown/index.js:181:14) at /var/www/nodebb/node_modules/async/dist/async.js:66:19 at nextTask (/var/www/nodebb/node_modules/async/dist/async.js:5310:14) at next (/var/www/nodebb/node_modules/async/dist/async.js:5317:9) at /var/www/nodebb/node_modules/async/dist/async.js:958:16 at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) 2018-04-18T05:20:52.435Z [4744] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2018-04-18T05:20:52.436Z [4744] - [32minfo[39m: [app] Database connection closed. 2018-04-18T05:20:52.436Z [4744] - [32minfo[39m: [app] Web server closed to connections. 2018-04-18T05:20:52.436Z [4744] - [32minfo[39m: [app] Shutdown complete. Looks like the mark-down plugin caused some error which caused the site to shutdown, but 2 services tried to restart node bb, but it failed. This caused our site to go down and didn't restart on its own. we had to do it manually. How can we fix this?
Copyright © 2024 NodeBB | Contributors