NodeBB updated : cannot read proprety 'handle' of undefined

Bug Reports
  • I have the following error

    PS C:\wamp\www\github\NodeBB> node app
    info: NodeBB v0.4.3 Copyright (C) 2013-2014 NodeBB Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    info: Time: Thu Jul 03 2014 22:41:22 GMT+0200 (Paris, Madrid (heure d'été))
    info: Initializing NodeBB v0.4.3
    info: * using configuration stored in: C:\wamp\www\github\NodeBB\config.json
    info: * using redis store at 127.0.0.1:6379
    info: * using themes stored in: C:\wamp\www\github\NodeBB\node_modules
    warn: You have no redis password setup!
    info: [user.startJobs] Registering User Jobs
    info: Enabling 'trust proxy'
    error: Cannot read property 'handle' of undefined
    TypeError: Cannot read property 'handle' of undefined
        at Function.app.use (C:\wamp\www\github\NodeBB\node_modules\express\lib\application.js:112:9)
        at module.exports (C:\wamp\www\github\NodeBB\src\routes\index.js:159:6)
        at require.exec.cwd (C:\wamp\www\github\NodeBB\src\webserver.js:58:3)
        at C:\wamp\www\github\NodeBB\node_modules\async\lib\async.js:533:17
        at C:\wamp\www\github\NodeBB\node_modules\async\lib\async.js:119:25
        at C:\wamp\www\github\NodeBB\node_modules\async\lib\async.js:24:16
        at C:\wamp\www\github\NodeBB\node_modules\async\lib\async.js:530:21
        at C:\wamp\www\github\NodeBB\src\meta.js:125:7
        at C:\wamp\www\github\NodeBB\node_modules\async\lib\async.js:232:13
        at C:\wamp\www\github\NodeBB\node_modules\async\lib\async.js:119:25
    info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    info: [app] Database connection closed.
    info: [app] Shutdown complete.
    

    Still using node app since sh ./nodebb start produce the following :

    PS C:\wamp\www\github\NodeBB> sh ./nodebb start
    ./nodebb: which: command not found
    ./nodebb: syntax error near unexpected token `<<<'
    ./nodebb: ./nodebb: line 117: `         column -s '     ' -t <<< ''
    
  • If you updated to latest. Try the following and see what happens

    npm install
    node app --setup
    
  • @baris This works thanks, seems like upgrading manually each modul with npm command wasn't the good solution.

  • npm install installs everything in package.json but we have different dependencies based on what database you pick during node app --setup (redis, mongo, level). Usually just running npm install is enough but in this case there were changes to the database dependencies.


Suggested Topics