Upgrading from v1.7.x

Technical Support
  • Ran in to an issue during an upgrade. What should I be running to get upgraded? I'm on v1.7.5 according to the Dashboard.

    nodebb@clyde:~/nodebb$ git merge origin/v1.10.x
    Already up to date.
    
    nodebb@clyde:~/nodebb$ git fetch
    remote: Counting objects: 8548, done.
    remote: Compressing objects: 100% (7/7), done.
    remote: Total 8548 (delta 4321), reused 4327 (delta 4321), pack-reused 4220
    Receiving objects: 100% (8548/8548), 2.12 MiB | 11.62 MiB/s, done.
    Resolving deltas: 100% (7066/7066), completed with 1360 local objects.
    From https://github.com/NodeBB/NodeBB
     * [new branch]          acp-alert-fix                           -> origin/acp-alert-fix
     * [new branch]          acp-quick-actions                       -> origin/acp-quick-actions
     * [new branch]          blocks                                  -> origin/blocks
     * [new branch]          chat-kick-support                       -> origin/chat-kick-support
       4d9e2b116..bc18b489e  develop                                 -> origin/develop
     * [new branch]          fix-6404                                -> origin/fix-6404
     * [new branch]          hsts-configuration                      -> origin/hsts-configuration
     * [new branch]          interstitial-fileupload                 -> origin/interstitial-fileupload
       52ab0a00d..3cccbbc1f  master                                  -> origin/master
     + 143fd924d...04d31fe1d patch-pitaj                             -> origin/patch-pitaj  (forced update)
     * [new branch]          renovate/eslint-5.x                     -> origin/renovate/eslint-5.x
     * [new branch]          renovate/eslint-config-airbnb-base-13.x -> origin/renovate/eslint-config-airbnb-base-13.x
     * [new branch]          renovate/jimp-0.x                       -> origin/renovate/jimp-0.x
     * [new branch]          renovate/jsdom-11.x                     -> origin/renovate/jsdom-11.x
     * [new branch]          renovate/mocha-5.x                      -> origin/renovate/mocha-5.x
     * [new branch]          renovate/mongodb-3.x                    -> origin/renovate/mongodb-3.x
     * [new branch]          renovate/nyc-12.x                       -> origin/renovate/nyc-12.x
     * [new branch]          renovate/winston-3.x                    -> origin/renovate/winston-3.x
     * [new branch]          service-workers                         -> origin/service-workers
     * [new branch]          spa-authentication                      -> origin/spa-authentication
     * [new branch]          travis-ci-yarn                          -> origin/travis-ci-yarn
     * [new branch]          uglify-es                               -> origin/uglify-es
     * [new branch]          user-blocking                           -> origin/user-blocking
     * [new branch]          v1.10.x                                 -> origin/v1.10.x
     * [new branch]          v1.8.x                                  -> origin/v1.8.x
     * [new branch]          v1.9.x                                  -> origin/v1.9.x
     * [new branch]          withScores-batch                        -> origin/withScores-batch
     * [new branch]          yariplus-patch-1                        -> origin/yariplus-patch-1
     * [new tag]             v1.10.1                                 -> v1.10.1
     * [new tag]             v1.9.3                                  -> v1.9.3
     * [new tag]             v1.10.0                                 -> v1.10.0
     * [new tag]             v1.8.0                                  -> v1.8.0
     * [new tag]             v1.8.1                                  -> v1.8.1
     * [new tag]             v1.9.0                                  -> v1.9.0
     * [new tag]             v1.9.1                                  -> v1.9.1
     * [new tag]             v1.9.2                                  -> v1.9.2
    nodebb@clyde:~/nodebb$ git checkout v1.10.x
    Branch 'v1.10.x' set up to track remote branch 'v1.10.x' from 'origin'.
    Switched to a new branch 'v1.10.x'
    nodebb@clyde:~/nodebb$ git merge origin/v1.10.x
    Already up to date.
    nodebb@clyde:~/nodebb$ git rev-parse --abbrev-ref HEAD
    v1.10.x
    nodebb@clyde:~/nodebb$ ./nodebb upgrade
    Dependencies outdated or not yet installed.
    Installing them now...
    
    /bin/sh: 1: npm: not found
    Error installing dependencies!
    message: Command failed: npm install --production
    stdout: null
    stderr: null
    /home/nodebb/nodebb/src/cli/package-install.js:54
                    throw e;
                    ^
    
    Error: Command failed: npm install --production
        at checkExecSyncError (child_process.js:601:13)
        at Object.execSync (child_process.js:641:13)
        at Object.installAll (/home/nodebb/nodebb/src/cli/package-install.js:45:9)
        at Object.<anonymous> (/home/nodebb/nodebb/src/cli/index.js:58:18)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
    nodebb@clyde:~/nodebb$
    

    I had taken a snapshot of this VM and was able to revert, so I'm back up and running on v1.7.x

  • Do you not have npm installed? What version of node?


Suggested Topics


  • 0 Votes
    2 Posts
    121 Views

    @arizona Ubuntu 18.04 is now out of support, best recommendation now is to upgrade your OS.

  • 0 Votes
    7 Posts
    5k Views

    @pitaj

    The plugin was indeed in the dependencies section even though it was not installed on my nodeBB instance, weird.

    Removing it has fixed the error. Thank you so much for your help 🙂

    Here's how the package.json file looked like:

    { "name": "nodebb", "license": "GPL-3.0", "description": "NodeBB Forum", "version": "1.16.1", "homepage": "http://www.nodebb.org", "repository": { "type": "git", "url": "https://github.com/NodeBB/NodeBB/" }, "main": "app.js", "scripts": { "start": "node loader.js", "lint": "npx eslint --cache ./nodebb .", "test": "npx nyc --reporter=html --reporter=text-summary npx mocha", "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info", "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage" }, "husky": { "hooks": { "pre-commit": "npx lint-staged", "commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS" } }, "lint-staged": { "*.js": [ "eslint --fix", "git add" ] }, "dependencies": { "@adactive/bootstrap-tagsinput": "^0.8.2", "@nodebb/bootswatch": "3.4.2", "ace-builds": "^1.4.9", "archiver": "^5.0.0", "async": "^3.2.0", "autoprefixer": "10.2.0", "bcryptjs": "2.4.3", "benchpressjs": "2.4.0", "body-parser": "^1.19.0", "bootbox": "4.4.0", "bootstrap": "^3.4.1", "chart.js": "^2.9.3", "cli-graph": "^3.2.2", "clipboard": "^2.0.6", "colors": "^1.4.0", "commander": "^6.0.0", "compare-versions": "3.6.0", "compression": "^1.7.4", "connect-ensure-login": "^0.1.1", "connect-flash": "^0.1.1", "connect-mongo": "3.2.0", "connect-multiparty": "^2.2.0", "connect-pg-simple": "^6.1.0", "connect-redis": "5.0.0", "cookie-parser": "^1.4.5", "cron": "^1.8.2", "cropperjs": "^1.5.6", "csurf": "^1.11.0", "daemon": "^1.1.0", "diff": "^5.0.0", "express": "^4.17.1", "express-session": "^1.17.0", "express-useragent": "^1.0.13", "graceful-fs": "^4.2.3", "helmet": "^4.0.0", "html-to-text": "6.0.0", "ipaddr.js": "^2.0.0", "jquery": "3.5.1", "jquery-deserialize": "2.0.0-rc1", "jquery-form": "4.3.0", "jquery-serializeobject": "1.0.0", "jquery-ui": "1.12.1", "jsesc": "3.0.2", "json2csv": "5.0.5", "jsonwebtoken": "^8.5.1", "less": "^3.11.1", "lodash": "^4.17.15", "logrotate-stream": "^0.2.6", "lru-cache": "6.0.0", "material-design-lite": "^1.3.0", "mime": "^2.4.4", "mkdirp": "^1.0.4", "mongodb": "3.6.3", "morgan": "^1.10.0", "mousetrap": "^1.6.5", "nconf": "^0.11.0", "nodebb-plugin-composer-default": "6.5.5", "nodebb-plugin-dbsearch": "4.1.2", "nodebb-plugin-emoji": "^3.3.0", "nodebb-plugin-emoji-android": "2.0.0", "nodebb-plugin-gamification": "^1.0.1", "nodebb-plugin-markdown": "8.12.4", "nodebb-plugin-mentions": "2.13.6", "nodebb-plugin-question-and-answer": "^0.7.7", "nodebb-plugin-require": "0.0.6", "nodebb-plugin-seo": "^1.0.0", "nodebb-plugin-seo-slug-friendly": "0.0.8", "nodebb-plugin-seo-thread": "^0.1.10", "nodebb-plugin-soundpack-default": "1.0.0", "nodebb-plugin-spam-be-gone": "0.7.7", "nodebb-rewards-essentials": "0.1.4", "nodebb-theme-lavender": "5.0.17", "nodebb-theme-persona": "10.3.17", "nodebb-theme-slick": "1.3.7", "nodebb-theme-vanilla": "11.3.10", "nodebb-widget-essentials": "5.0.2", "nodemailer": "^6.4.6", "nprogress": "0.2.0", "passport": "^0.4.1", "passport-http-bearer": "^1.0.1", "passport-local": "1.0.0", "pg": "^8.0.2", "pg-cursor": "^2.1.9", "postcss": "8.1.10", "postcss-clean": "1.1.0", "promise-polyfill": "^8.1.3", "prompt": "^1.0.0", "redis": "3.0.2", "request": "2.88.2", "request-promise-native": "^1.0.8", "requirejs": "2.3.6", "rimraf": "3.0.2", "rss": "^1.2.2", "sanitize-html": "^2.0.0", "semver": "^7.2.1", "serve-favicon": "^2.5.0", "sharp": "0.27.0", "sitemap": "^6.1.0", "slideout": "1.0.1", "socket.io": "3.0.5", "socket.io-adapter-cluster": "^1.0.1", "socket.io-client": "3.0.5", "socket.io-redis": "6.0.1", "sortablejs": "1.10.2", "spdx-license-list": "^6.1.0", "spider-detector": "2.0.0", "textcomplete": "^0.17.1", "textcomplete.contenteditable": "^0.1.1", "timeago": "^1.6.7", "tinycon": "0.6.8", "toobusy-js": "^0.5.1", "uglify-es": "^3.3.9", "validator": "13.5.2", "visibilityjs": "2.0.2", "winston": "3.3.3", "xml": "^1.0.1", "xregexp": "^4.3.0", "zxcvbn": "^4.4.2" }, "devDependencies": { "@apidevtools/swagger-parser": "10.0.2", "@commitlint/cli": "11.0.0", "@commitlint/config-angular": "11.0.0", "coveralls": "3.1.0", "eslint": "7.17.0", "eslint-config-airbnb-base": "14.2.1", "eslint-plugin-import": "2.22.1", "grunt": "1.3.0", "grunt-contrib-watch": "1.1.0", "husky": "4.3.6", "jsdom": "16.4.0", "lint-staged": "10.5.3", "mocha": "8.2.1", "mocha-lcov-reporter": "1.3.0", "nyc": "15.1.0", "smtp-server": "3.8.0" }, "bugs": { "url": "https://github.com/NodeBB/NodeBB/issues" }, "engines": { "node": ">=10" }, "maintainers": [ { "name": "Andrew Rodrigues", "email": "[email protected]", "url": "https://github.com/psychobunny" }, { "name": "Julian Lam", "email": "[email protected]", "url": "https://github.com/julianlam" }, { "name": "Barış Soner UÅŸaklı", "email": "[email protected]", "url": "https://github.com/barisusakli" } ], "nyc": { "exclude": [ "src/upgrades/*", "test/*" ] } }
  • Help upgrading

    Technical Support
    6
    0 Votes
    6 Posts
    484 Views

    You have managed to mess up the file permissions in the NodeBB directory. You should always execute ./nodebb, npm, and git commands under the same unprivileged user, which means no sudo.

    You will need to recursively chown the nodebb directory back over to whatever unprivileged user should own it.

    What upgrade instructions are you trying to follow?

  • 0 Votes
    8 Posts
    2k Views

    @teh_g after running npm i following error comes on console

    npm WARN deprecated [email protected]: connect 2.x series is deprecated
    npm WARN deprecated [email protected]: Use uuid module instead
    npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
    npm ERR! Linux 3.10.0-693.11.1.el7.x86_64
    npm ERR! argv "/usr/bin/node" "/bin/npm" "i"
    npm ERR! node v6.12.0
    npm ERR! npm v3.10.10
    npm ERR! code ETARGET

    npm ERR! notarget No compatible version found: [email protected]
    npm ERR! notarget Valid install targets:
    npm ERR! notarget 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.1, 0.3.0, 0.2.0
    npm ERR! notarget
    npm ERR! notarget This is most likely not a problem with npm itself.
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.

    npm ERR! Please include the following file with any support request:
    npm ERR! /home/pawan/Discussion forum/nodebb/npm-debug.log

    @julien

  • Unable to login after upgrade

    Solved Technical Support
    11
    0 Votes
    11 Posts
    5k Views

    Glad to hear it is resolved 🙂