NodeBB keeps crashing!



  • I'm all up to date on versions and plugins, and it suddenly started producing this message:

    {"error":"Cannot read property '_csrf' of undefined"}
    

    I can't predict when this will happen. It'll work for a while, then blammo it's down. The site is at http://nutritionask.com.


  • Admin

    Can you reproduce this? Take a look at the log file in logs/output.log and let us know the full stack trace before the Cannot read property '_csrf' of undefined error.

    Related to gh#1554, but the error is just a side effect.



  • @julian I restarted NodeBB so there's nothing strange in the log.


  • Admin

    Right, that's fine. When it does crash, please inspect the log before restarting the process.



  • @julian Okey dokey. Any idea if this would be a plugin-related thing or something else?

    EDIT: Different question: is there a way to get notified when the site goes down? (so I don't have to click click click and try things to see if it breaks)



  • @julian

    Crashed again, here's the log:

    ^[[32minfo^[[39m: * using configuration stored in: /home/zenkamal/mynodebb/conf$
    ^[[32minfo^[[39m: * using redis store at 127.0.0.1:6379
    ^[[32minfo^[[39m: * using themes stored in: /home/zenkamal/mynodebb/node_modules
    ^[[33mwarn^[[39m: You have no redis password setup!
    ^[[32minfo^[[39m: [user.startJobs] Registering User Jobs
    ^[[32minfo^[[39m: Enabling 'trust proxy'
    ^[[32minfo^[[39m: [meta/css] Minifying LESS/CSS
    adding twitter routes!
    ^[[32minfo^[[39m: [sounds] Sounds OK
    ^[[32minfo^[[39m: [meta/css] Done.
    ^[[32minfo^[[39m: [themes] Compiling templates
    ^[[32minfo^[[39m: [themes] Successfully compiled templates.
    ^[[32minfo^[[39m: NodeBB attempting to listen on: 0.0.0.0:4567
    ^[[32minfo^[[39m: NodeBB Ready
    ^[[32minfo^[[39m: [meta/js] Compilation complete
    ^[[32minfo^[[39m: [Auth] Session SFlAewOkfR_GdRWuEJon1c-7 logout (uid: 12)


  • @julian

    New error: The "New Topic" button isn't working -- if you type a question, it won't let you submit it, and often it won't let you click on the button at all.



  • And another error:

    No matter what page you click, it stays on the current page (recent topics), but when the error shows up it's on the tags page. Something is really breaking down, not sure what.



  • ^[[32minfo^[[39m: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    ^[[32minfo^[[39m: This program comes with ABSOLUTELY NO WARRANTY.
    ^[[32minfo^[[39m: This is free software, and you are welcome to redistribute it under ce$
    ^[[32minfo^[[39m:
    ^[[32minfo^[[39m: Time: Wed May 28 2014 19:45:12 GMT-0400 (EDT)
    ^[[32minfo^[[39m: Initializing NodeBB v0.4.3
    ^[[32minfo^[[39m: * using configuration stored in: /home/zenkamal/mynodebb/config.json
    ^[[32minfo^[[39m: * using redis store at 127.0.0.1:6379
    ^[[32minfo^[[39m: * using themes stored in: /home/zenkamal/mynodebb/node_modules
    ^[[33mwarn^[[39m: You have no redis password setup!
    ^[[32minfo^[[39m: [user.startJobs] Registering User Jobs
    ^[[32minfo^[[39m: Enabling 'trust proxy'
    ^[[32minfo^[[39m: [meta/css] Minifying LESS/CSS
    adding twitter routes!
    ^[[32minfo^[[39m: [sounds] Sounds OK
    ^[[32minfo^[[39m: [meta/css] Done.
    ^[[32minfo^[[39m: [themes] Compiling templates
    ^[[32minfo^[[39m: [themes] Successfully compiled templates.
    ^[[32minfo^[[39m: NodeBB attempting to listen on: 0.0.0.0:4567
    ^[[32minfo^[[39m: NodeBB Ready
    ^[[32minfo^[[39m: [meta/js] Compilation complete
    ^[[32minfo^[[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    ^[[32minfo^[[39m: [app] Database connection closed.
    ^[[32minfo^[[39m: [app] Shutdown complete.
    ^[[32minfo^[[39m: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    ^[[32minfo^[[39m: This program comes with ABSOLUTELY NO WARRANTY.
    ^[[32minfo^[[39m: This is free software, and you are welcome to redistribute it under ce$
    ^[[32minfo^[[39m:
    ^[[32minfo^[[39m: Time: Wed May 28 2014 19:47:25 GMT-0400 (EDT)
    ^[[32minfo^[[39m: Initializing NodeBB v0.4.3
    ^[[32minfo^[[39m: * using configuration stored in: /home/zenkamal/mynodebb/config.json
    ^[[32minfo^[[39m: * using redis store at 127.0.0.1:6379
    ^[[32minfo^[[39m: * using themes stored in: /home/zenkamal/mynodebb/node_modules
    ^[[33mwarn^[[39m: You have no redis password setup!
    ^[[32minfo^[[39m: [user.startJobs] Registering User Jobs
    ^[[32minfo^[[39m: Enabling 'trust proxy'
    ^[[32minfo^[[39m: [meta/css] Minifying LESS/CSS
    adding twitter routes!
    ^[[32minfo^[[39m: [sounds] Sounds OK
    ^[[32minfo^[[39m: [meta/css] Done.
    


  • Disabled all nonessential plugins, took out "ask new question" button from sidebar. Will see if it crashes again.



  • @julian It's still crashing every couple hours. Here's the latest output log. Help!

    ^[[32minfo^[[39m: [themes] Compiling templates
    ^[[32minfo^[[39m: [themes] Successfully compiled templates.
    ^[[32minfo^[[39m: NodeBB attempting to listen on: 0.0.0.0:4567
    ^[[32minfo^[[39m: NodeBB Ready
    ^[[32minfo^[[39m: [meta/js] Compilation complete
    ^[[32minfo^[[39m: [Auth] Session SFlAewOkfR_GdRWuEJon1c-7 logout (uid: 1)
    ^[[32minfo^[[39m: [Auth] Session SFlAewOkfR_GdRWuEJon1c-7 logout (uid: 12)
    ^[[32minfo^[[39m: [Auth] Session SFlAewOkfR_GdRWuEJon1c-7 logout (uid: 1)
    ^[[32minfo^[[39m: Saving file 18-profileimg.jpg to : /home/zenkamal/mynodebb/public/uploads/18-$
    ^[[32minfo^[[39m: [Auth] Session SFlAewOkfR_GdRWuEJon1c-7 logout (uid: 1)
    

    It seems to have something to do with people logging in and out.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.