[Solved] Error on startup

Bug Reports
  • 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 all

    info: Initializing NodeBB v0.4.2
    info: * using configuration stored in: /home/nodechat/nodebb/config.json
    info: * using redis store at
    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.js:99:28)
    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.

  • @a_5mith That's exactly what I was going to suggest. You're getting good at this 😄

  • @a_5mith Thanks. This worked.
    It seems one of the plugins wasn't playing nice

  • @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.

  • @a_5mith Cool. Thanks for your help

Suggested Topics

  • error on new topic

    Unsolved Bug Reports
    0 Votes
    1 Posts
  • 0 Votes
    1 Posts
  • 0 Votes
    15 Posts
  • [Solved] Schema out of date

    Bug Reports
    0 Votes
    2 Posts
  • [Solved] Like button bug.

    Bug Reports
    1 Votes
    11 Posts