Upgrading from an old version (v1.0)

Technical Support
  • Following the docs, the "git checkout v1.x.x" doesn't work because it slams me all the way from v1.0.0 to v1.4.<something>. Trying to do an upgrade says stuff like "your database is too far out of date, did you skip a major version"?

    And unfortunatly, I have to start with 1.0 because if the importer not supporting anything beyond 1.0.

    I read somewhere that you should jump from terminal patches of the previous branch.

    So.. like '1.0.0 -> 1.0.4 -> 1.1.0 -> 1.1.x etc..

    Is that true? Trying that, though, had a all kinds of problems with version not found issues in Git.

    Any guidance would be appreciated.

  • You can checkout individual versions since they're all tagged.

    git checkout v1.0.0
    ./nodebb upgrade
    git checkout v1.1.0
    ./nodebb upgrade
    

    etc etc

  • That worked well. Thanks!

    Follow up question, though. Does that update the plugins along with NodeBB, or is there a separate process for that?

  • @Eric-Ladner No, it doesn't upgrade the plugins... or I should say, it didn't used to.

    More recent versions of NodeBB call ./nodebb upgradePlugins as part of the upgrade process, and that will upgrade plugins (to whatever version nbbpm says they should be upgraded to)...

    However, those plugins that aren't registered with nbbpm won't be touched by ./nodebb upgradePlugins.


Suggested Topics


  • 0 Votes
    9 Posts
    382 Views

    @julian said in Admin Dashboard Becomes Unresponsive After Upgrading to v2.2.4:

    @Teemberland compare plugin.json in your custom theme to the original one in the slick plugin.

    Likely your theme is not updated for v2 compatibility.

    Right. That is my guess. I'll report back in a few.

  • 0 Votes
    2 Posts
    137 Views

    Most likely there weren't any major breaking changes for plugins between those two versions. You should be okay to upgrade, although I'd back up your database just to be safe.

  • 0 Votes
    5 Posts
    2k Views

    @pichalite said in v1.x.x installs mongodb 2.1.22 and requires 2.1.3:

    @exodo try the install without the ~

    npm i [email protected]

    that's the latest in that minor version.

    seems to work now after a few error commands 🌝

    npm i [email protected] - > [email protected] install /var/foroexodo/nodebb/node_modules/mongodb/node_module s/kerberos > (node-gyp rebuild) || (exit 0) make: Entering directory `/var/foroexodo/nodebb/node_modules/mongodb/node_module s/kerberos/build' CXX(target) Release/obj.target/kerberos/lib/kerberos.o In file included from ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory compilation terminated. make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory `/var/foroexodo/nodebb/node_modules/mongodb/node_modules /kerberos/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module s/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820: 12) gyp ERR! System Linux 3.5.0-54-generic gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/nod e-gyp.js" "rebuild" gyp ERR! cwd /var/foroexodo/nodebb/node_modules/mongodb/node_modules/kerberos gyp ERR! node -v v0.10.37 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok [email protected] node_modules/mongodb ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected] 1, [email protected]) ├── [email protected] ([email protected]) └── [email protected] ([email protected]) root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb [email protected] /var/foroexodo/nodebb └── [email protected] invalid npm ERR! invalid: [email protected] /var/foroexodo/nodebb/node_modules/mongodb npm ERR! not ok code 0 root@w1-exodo:/var/foroexodo/nodebb# npm install root@w1-exodo:/var/foroexodo/nodebb# ./nodebb upgrade 1. Bringing base dependencies up to date... OK 2. Checking installed plugins for updates... OK 3. Updating NodeBB data store schema... 15/8 11:14 [5763] - info: [database] Checking database indices. 15/8 11:14 [5763] - info: Beginning database schema update 15/8 11:14 [5763] - info: [2015/12/15] Chats upgrade skipped! 15/8 11:14 [5763] - info: [2015/12/23] Chats room hashes upgrade skipped! 15/8 11:14 [5763] - info: [2015/12/23] Adding theme to active plugins sorted set skipped! 15/8 11:14 [5763] - info: [2016/01/14] Creating user best post sorted sets skipped! 15/8 11:14 [5763] - info: [2016/01/20] Creating users:notvalidated skipped! 15/8 11:14 [5763] - info: [2016/01/23] Creating Global moderators group skipped! 15/8 11:14 [5763] - info: [2016/02/25] Social: Post Sharing skipped! 15/8 11:14 [5763] - info: [2016/04/14] Group title from settings to user profile skipped! 15/8 11:14 [5763] - info: [2016/04/19] Users post count per tid skipped! 15/8 11:14 [5763] - info: [2016/04/29] Dismiss flags from deleted topics skipped! 15/8 11:14 [5763] - info: [2016/05/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category - skipped! 15/8 11:14 [5763] - info: [2016/06/13] Store upvotes/downvotes separately skipped! 15/8 11:14 [5763] - info: [2016/07/12] Upload privileges skipped! 15/8 11:14 [5763] - info: [2016/08/05] Removing best posts with negative scores skipped! 15/8 11:14 [5763] - info: [upgrade] Schema already up to date! OK NodeBB Upgrade Complete! root@w1-exodo:/var/foroexodo/nodebb# npm ls redis [email protected] /var/foroexodo/nodebb ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├── [email protected] └─┬ [email protected] └── [email protected] root@w1-exodo:/var/foroexodo/nodebb# npm ls mongodb [email protected] /var/foroexodo/nodebb └── [email protected]
  • 0 Votes
    1 Posts
    1k Views

    just installed dev version 0.7, in console log that buildin plugins can cause err -)
    installed sso steam in 0.7, plugin unstable, sometime working, sometime not working
    is there compabality list for plugins? or compabality tests for plugins?

  • 0 Votes
    5 Posts
    2k Views

    Perfect thanks