[Solved] Error on startup
-
Hi guys,
Been playing around with nodeBB and I ran into this error. Please help me resolve it since the app is not starting at allinfo: Initializing NodeBB v0.4.2
info: * using configuration stored in: /home/nodechat/nodebb/config.json
info: * using redis store at 127.0.0.1:6379
info: * using themes stored in: /home/nodechat/nodebb/node_modules
info: You have no redis password setup!
info: [user.startJobs] Registering User Jobs
info: Enabling 'trust proxy'
info: [plugins/nodebb-widget-essentials] staticDir is deprecated, use staticDirs instead
info: [plugins/nodebb-plugin-cash] staticDir is deprecated, use staticDirs instead
info: [plugins/nodebb-plugin-rps-battle-rpg] staticDir is deprecated, use staticDirs instead
info: [meta/css] Minifying LESS/CSS
adding twitter routes!
info: [sounds] Sounds OK
TypeError: Cannot read property 'value' of undefined
at Object.tree.Anonymous (/home/nodechat/nodebb/node_modules/less/lib/less/tree/anonymous.js:4:24)
at Object.tree.Import.eval (/home/nodechat/nodebb/node_modules/less/lib/less/tree/import.js28)
at Object.tree.Ruleset.evalImports (/home/nodechat/nodebb/node_modules/less/lib/less/tree/ruleset.js:139:40)
at Object.tree.Ruleset.eval (/home/nodechat/nodebb/node_modules/less/lib/less/tree/ruleset.js:62:21)
at Object.toCSS (/home/nodechat/nodebb/node_modules/less/lib/less/parser.js:575:46)
at /home/nodechat/nodebb/src/meta.js:367:27
at Object.finish [as _finish] (/home/nodechat/nodebb/node_modules/less/lib/less/parser.js:669:28)
at Object.subFinish [as _finish] (/home/nodechat/nodebb/node_modules/less/lib/less/import-visitor.js:63:47)
at Object.subFinish [as _finish] (/home/nodechat/nodebb/node_modules/less/lib/less/import-visitor.js:63:47)
at Object.subFinish [as _finish] (/home/nodechat/nodebb/node_modules/less/lib/less/import-visitor.js:63:47)
info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
info: [app] Database connection closed.
info: [app] Shutdown complete.[loader] Experienced three start attempts in 10 seconds, most likely an error on startup. Halting.
` -
@kevgathuku Try going into
/home/nodechat/nodebb/
folder and run./nodebb reset plugins
This will disable all active plugins, if this brings your site back, one of the plugins you've installed isn't compatible with 0.4.2 of NodeBB.
If that fails, try
git pull
followed by./nodebb upgrade
in the same folder as above to make sure you're up to date. -
@kevgathuku Good stuff, if you work out which one it is by turning them on one at a time and it breaks again, you can run
npm rm nodebb-plugin-<plugin>
to remove it without disabling all other mods.