Upgrading from v0.6.1 to v0.9.0


  • Got it

    maximur1@server.maximumtrainer.com [nodebb]# sudo node app --upgrade
    13/11 18:11 [9409] - info: NodeBB v0.9.0 Copyright (C) 2013-2014 NodeBB Inc.
    13/11 18:11 [9409] - info: This program comes with ABSOLUTELY NO WARRANTY.
    13/11 18:11 [9409] - info: This is free software, and you are welcome to redistribute it under certain conditions.
    13/11 18:11 [9409] - info:
    13/11 18:11 [9409] - info: Beginning database schema update
    13/11 18:11 [9409] - info: [2015/02/08] Clearing reset tokens skipped
    13/11 18:11 [9409] - info: [2015/02/17] renaming home.tpl to categories.tpl skipped
    13/11 18:11 [9409] - info: [2015/2/23] Activating NodeBB Essential Rewards - skipped
    13/11 18:11 [9409] - info: [2015/02/24] Upgrading plugins:active to sorted set skipped
    13/11 18:11 [9409] - info: [2015/02/24] Upgrading privilege groups to system groups skipped
    13/11 18:11 [9409] - info: [2015/02/25] Upgrading menu items to dynamic navigation system skipped
    13/11 18:11 [9409] - info: [2015/05/07] Upgrading uid mappings to sorted set skipped
    13/11 18:11 [9409] - info: [2015/05/08] Fixing emails skipped
    13/11 18:11 [9409] - info: [2015/05/11] Updating widgets to tjs 0.2x skipped
    13/11 18:11 [9409] - info: [2015/05/20] Adding username:sorted and email:sorted skipped
    13/11 18:11 [9409] - info: [2015/06/02] Creating group sorted sets skipped
    13/11 18:11 [9409] - info: [2015/07/03] Enabling default composer plugin skipped
    13/11 18:11 [9409] - info: [2015/08/18] Creating children category sorted sets skipped
    13/11 18:11 [9409] - info: [2015/09/30] Converting default Gravatar image to default User Avatar
    13/11 18:11 [9409] - info: [2015/09/30] Converting default Gravatar image to default User Avatar done
    13/11 18:11 [9409] - info: [2015/11/06] Removing gravatar
    13/11 18:11 [9409] - info: [2015/11/06] Gravatar pictures removed!
    13/11 18:11 [9409] - info: [upgrade] Schema update complete!

    Solution
    I had to add redis since it's not installed by default:
    npm install
    npm install redis
    npm install connect-redis
    npm install redis-server
    ls -d node_modules/nodebb* | xargs -n1 basename | xargs npm update
    node app --upgrade


  • Crash on nodebb Start up, investigating..

    NodeBB v0.9.0 Copyright (C) 2013-2014 NodeBB Inc.
    This program comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to redistribute it under certain conditions.
    For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

    Clustering enabled: Spinning up 1 process(es).

    13/11 18:16 [9762] - info: Time: Fri Nov 13 2015 18:16:13 GMT+0000 (UTC)
    13/11 18:16 [9762] - info: Initializing NodeBB v0.9.0

    13/11 18:16 [9762] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.

    • nodebb-plugin-soundpack-default
    • nodebb-plugin-dbsearch
    • nodebb-rewards-essentials
    • nodebb-plugin-markdown
    • nodebb-widget-essentials
    • nodebb-plugin-spam-be-gone
    • nodebb-plugin-mentions
    • nodebb-plugin-composer-default

    13/11 18:16 [9762] - info: [plugins/spam-be-gone] Settings loaded
    13/11 18:16 [9762] - info: NodeBB Ready
    13/11 18:16 [9762] - info: NodeBB is now listening on: 0.0.0.0:4567
    13/11 18:16 [9762] - error: TypeError: Object socket.io#TBk9hC has no method 'split'
    at Redis.onmessage (/home/maximur1/nodebb/node_modules/socket.io-redis/index.js:92:26)
    at RedisClient.emit (events.js:106:17)
    at RedisClient.return_reply (/home/maximur1/nodebb/node_modules/redis/index.js:656:22)
    at /home/maximur1/nodebb/node_modules/redis/index.js:307:18
    at process._tickDomainCallback (node.js:486:13)
    TypeError: Object socket.io#TBk9hC has no method 'split'
    at Redis.onmessage (/home/maximur1/nodebb/node_modules/socket.io-redis/index.js:92:26)
    at RedisClient.emit (events.js:106:17)
    at RedisClient.return_reply (/home/maximur1/nodebb/node_modules/redis/index.js:656:22)
    at /home/maximur1/nodebb/node_modules/redis/index.js:307:18
    at process._tickDomainCallback (node.js:486:13)
    13/11 18:16 [9762] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    13/11 18:16 [9762] - info: [app] Database connection closed.
    13/11 18:16 [9762] - info: [app] Web server closed to connections.
    13/11 18:16 [9762] - info: [app] Shutdown complete.
    [cluster] Child Process (9762) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    13/11 18:16 [9785] - info: Time: Fri Nov 13 2015 18:16:21 GMT+0000 (UTC)
    13/11 18:16 [9785] - info: Initializing NodeBB v0.9.0

    3 restarts in 10 seconds, most likely an error on startup. Halting.

  • Anime Lovers

    @maximus123 said:

    Object socket.io#TBk9hC has no method 'split'

    Hmm, it sounds like something is calling out to a method that doesn't exist in the version of Socket.IO that Nodebb uses. My guess would be one of those incompatible plugins it listed. I'd start one by one turning them off and see if that fixes it. No guarantees though that is problem, its just what I would try next, so you can wait for someone who knows more about the error to respond if you want.


  • Working now! I did not have the good version of redis or connect-redis

    With this:
    npm install redis@~0.10.1 connect-redis@~2.0.0

    Working ATM!
    http://forum.maximumtrainer.com:4567/

    Gonna test that stuff, really cool that it worked so fast


  • I think I found a bug with 0.9.0

    If you click a post in the list:
    http://forum.maximumtrainer.com:4567/category/24/power-curve
    and hit the BACK button in the browser, you go back to the list of topic but nothing is shown with NAN


  • Should have checked,
    Seems like the emailer plugin I was using is not compatible with 0.9.0?
    https://github.com/julianlam/nodebb-plugin-emailer-postmark

    Looking for a solution...

  • GNU/Linux Admin

    Standby...

  • GNU/Linux Admin

    Please try 1.0.0 of the postmark plugin and report back if it works.


  • Edited: Need to leave local login ON or the login page does not show

    Will try postmark plugin now


  • Updated to the new persona theme fixed the issue with NAN and BACK button not reloading forum post.
    Will stick to persona


  • Found a bug with the website in PROFILE section;

    The website address seems to be converted to HTML code and result in a bad link, example with my profile:
    WEBSITE HTTPS://MAXIMUMTRAINER.COM/
    For some reason it works here but on the forum it shows '&X2F; code

    Weird it's okay now after I edited it back, maybe the dump.rdb correctly saved it now


  • PostMark working as expected!

  • GNU/Linux Admin

    Excellent, thank you @maximus123 😄


  • Thanks a lot for your help Julian, would have not been so smooth without you 🙂

    If a plugin is not listed in the plugin interface, can you still install it with command line?
    I liked this one, to save space and backing up image profile pictures:
    https://github.com/barisusakli/nodebb-plugin-imgur
    But can't seem to find it with search plugin page

  • GNU/Linux Admin

    Yes, that plugin should be compatible with v0.9.0. You can install it via npm.


  • Great everything is working and I'm happy with the changes!

    Up and running:
    http://forum.maximumtrainer.com:4567/

    Have a great day!

  • GNU/Linux Admin

    Make sure to keep regular backups and secure your database 😄


  • I have a backup every day of dump.rdb
    About security, I haven't done much since the database and the forum are on the same server, in a non public area. Should be enough? Thanks!

  • GNU/Linux Admin

    As long as the database is only accessible via localhost, and you can only log into your server via ssh key (or a very strong password), that should be adequate.


  • Exactly! Learned a lot today with your help. I was afraid to upgrade but once you know how it works it's pretty easy.
    Keep up the good work, nodebb rocks 👍

Suggested Topics

  • 2
  • 8
  • 2
  • 6
  • 30
| |