Skip to content

NodeBB - Update auf 1.13.3

NodeBB
  • NodeBB ist nichts, für jemanden der keine Konsole mag 🙂

    Gestern gab es ein neues Update, das ich heute Morgen mal wieder installiert habe. Wie immer, erst auf meinem kleinen Forum, nennen wir es meine Testplattform 😉

    Da waren wieder so einige Hürden im Weg, die man aber mit aufmerksamen lesen immer überspringen kann. Also, los.
    Als erstes stoppt man Nodebb. Bei mir mittels des systemd Dienstes.

    systemctl stop nodebb.service
    

    Danach wechseln wir in das Verzeichnis.

    cd nodebb/
    

    Alles holen

    git pull
    

    Sieht dann so aus

    remote: Enumerating objects: 3437, done.
    remote: Counting objects: 100% (3437/3437), done.
    remote: Compressing objects: 100% (25/25), done.
    remote: Total 6316 (delta 3415), reused 3426 (delta 3412), pack-reused 2879
    Receiving objects: 100% (6316/6316), 2.48 MiB | 4.66 MiB/s, done.
    Resolving deltas: 100% (4957/4957), completed with 861 local objects.
    From https://github.com/NodeBB/NodeBB
       71f4607db..5db31e7e9  v1.13.x                   -> origin/v1.13.x
       d6e3f3f05..aad0880f7  master                    -> origin/master
     * [new branch]          redocs                    -> origin/redocs
     * [new branch]          renovate/eslint-7.x       -> origin/renovate/eslint-7.x
     * [new branch]          renovate/lint-staged-10.x -> origin/renovate/lint-staged-10.x
     + 74b9e58c9...aba62457f renovate/postcss-7.x      -> origin/renovate/postcss-7.x  (forced update)
     * [new branch]          webpack                   -> origin/webpack
     * [new tag]             v1.13.3                   -> v1.13.3
    Updating 71f4607db..5db31e7e9
    [..gekürzt..]
    623 files changed, 14733 insertions(+), 3549 deletions(-)
    

    Update Vorgang

       ~/nodebb$ ./nodebb upgrade
       Dependencies outdated or not yet installed.
       Installing them now...
       
       npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
       npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/chokidar/node_modules/fsevents):
       npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
       npm WARN nodebb-plugin-emoji-android@2.0.0 requires a peer of nodebb-plugin-emoji@^2.0.0 but none is installed. You must install peer dependencies yourself.
       npm WARN textcomplete.contenteditable@0.1.1 requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.
       
       npm ERR! code EEXIST
       npm ERR! path /home/user_nodebb/nodebb/node_modules/.bin/uuid
       npm ERR! Refusing to delete /home/user_nodebb/nodebb/node_modules/.bin/uuid: is outside /home/user_nodebb/nodebb/node_modules/uuid and not a link
       npm ERR! File exists: /home/user_nodebb/nodebb/node_modules/.bin/uuid
       npm ERR! Remove the existing file and try again, or run npm
       npm ERR! with --force to overwrite files recklessly.
       
       npm ERR! A complete log of this run can be found in:
       npm ERR!     /home/user_nodebb/.npm/_logs/2020-05-09T07_31_50_384Z-debug.log
       Error installing dependencies!
       message: Command failed: npm install --production
       stdout: null
       stderr: null
       /home/user_nodebb/nodebb/src/cli/package-install.js:72
       		throw e;
       		^
       
       Error: Command failed: npm install --production
           at checkExecSyncError (child_process.js:629:11)
           at Object.execSync (child_process.js:666:13)
           at Object.installAll (/home/user_nodebb/nodebb/src/cli/package-install.js:63:9)
           at Object.<anonymous> (/home/user_nodebb/nodebb/src/cli/index.js:60:18)
           at Module._compile (internal/modules/cjs/loader.js:778:30)
           at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
           at Module.load (internal/modules/cjs/loader.js:653:32)
           at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
           at Function.Module._load (internal/modules/cjs/loader.js:585:3)
           at Module.require (internal/modules/cjs/loader.js:692:17)
    

    Hmm 🤔

    Er meckert über ein File.

    npm ERR! File exists: /home/user_nodebb/nodebb/node_modules/.bin/uuid
    

    Da ich nicht weiß, ob ich das brauche, verschiebe ich das immer erstmal wo hin, so als Sicherung.

    /home/user_nodebb/nodebb/node_modules/.bin/uuid /home/user_nodebb/
    

    Das File gesichert. Danach meckert er aber noch über andere Files. Denkt dran, ich nutze zwei Foren. Deshalb habe ich jetzt hier etwas mehr Erfahrung als beim Ersten. Wir verschieben noch folgende Dateien.

    mv /home/user_nodebb/nodebb/node_modules/.bin/sshpk-* /home/user_nodebb/
    

    Danach läuft die Installation durch.

    Was noch auffällt?

       ╭────────────────────────────────────────────────────────────────╮
       │                                                                │
       │      New patch version of npm available! 6.14.4 → 6.14.5       │
       │   Changelog: https://github.com/npm/cli/releases/tag/v6.14.5   │
       │               Run npm install -g npm to update!                │
       │                                                                │
       ╰────────────────────────────────────────────────────────────────╯
    

    Eine neue Version des Packetmanagers. Ok, das ist easy 😉

    npm install -g npm
    

    Noch was fällt einem öfter auf.

    found 13 vulnerabilities (11 low, 1 moderate, 1 high) in 4096 scanned packages
      run `npm audit fix` to fix 11 of them.
      2 vulnerabilities require manual review. See the full report for details.
    

    Gut, da sind ein paar Pakete um die man sich mal kümmern sollte.

    ~/nodebb$ npm audit fix
    
    > husky@4.2.1 preuninstall /home/user_nodebb/nodebb/node_modules/husky
    > node husky uninstall
    
    husky > Uninstalling git hooks
    husky > Done
    npm WARN nodebb-plugin-emoji-android@2.0.0 requires a peer of nodebb-plugin-emoji@^2.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN textcomplete.contenteditable@0.1.1 requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.
    
    npm ERR! code EEXIST
    npm ERR! path /home/user_nodebb/nodebb/node_modules/.bin/acorn
    npm ERR! Refusing to delete /home/user_nodebb/nodebb/node_modules/.bin/acorn: is outside /home/user_nodebb/nodebb/node_modules/acorn and not a link
    npm ERR! File exists: /home/user_nodebb/nodebb/node_modules/.bin/acorn
    npm ERR! Remove the existing file and try again, or run npm
    npm ERR! with --force to overwrite files recklessly.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/user_nodebb/.npm/_logs/2020-05-09T10_26_37_332Z-debug.log
    user_nodebb@debian-4gb-nbg1-1-webserver2:~/nodebb$ mv /home/user_nodebb/nodebb/node_modules/.bin/acorn /home/user_nodebb/
    user_nodebb@debian-4gb-nbg1-1-webserver2:~/nodebb$ npm audit fix
    
    > husky@4.2.1 preuninstall /home/user_nodebb/nodebb/node_modules/husky
    > node husky uninstall
    
    husky > Uninstalling git hooks
    ENOENT: no such file or directory, unlink '/home/user_nodebb/nodebb/.git/hooks/husky.local.sh'
    husky > Failed to uninstall
    
    > husky@4.2.5 install /home/user_nodebb/nodebb/node_modules/husky
    > node husky install
    
    husky > Setting up git hooks
    husky > Done
    
    > nodemailer@6.4.5 postinstall /home/user_nodebb/nodebb/node_modules/smtp-server/node_modules/nodemailer
    > node -e "try{require('./postinstall')}catch(e){}"
    
    
    > husky@4.2.5 postinstall /home/user_nodebb/nodebb/node_modules/husky
    > opencollective-postinstall || exit 0
    
    Thank you for using husky!
    If you rely on this package, please consider supporting our open collective:
    > https://opencollective.com/husky/donate
    
    npm WARN nodebb-plugin-emoji-android@2.0.0 requires a peer of nodebb-plugin-emoji@^2.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN textcomplete.contenteditable@0.1.1 requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    added 129 packages from 91 contributors, removed 4 packages and updated 99 packages in 11.891s
    
    48 packages are looking for funding
      run `npm fund` for details
    
    fixed 11 of 13 vulnerabilities in 4096 scanned packages
      2 vulnerabilities required manual review and could not be updated
    

    Wieder ein File im Weg, verschoben, danach war es ok. Die zwei verbliebenen sind für mich nicht von Bedeutung. Das lasse ich so wie es ist. Danach Forum wieder starten.

    systemctl start nodebb.service
    

    Fertig!

  • Nodebb - Forum Crash

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    1k Aufrufe
    FrankMF

    NodeBB hat Version 2.8.9 released. Wollen wir hoffen, das der Bug weg ist 😉

  • NodeBB - Update 2.8.1

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    48 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Upgrade v2.0.1 !!!

    NodeBB
    4
    0 Stimmen
    4 Beiträge
    148 Aufrufe
    FrankMF

    Wer manuell fixen will, hier sind die Änderungen drin die man braucht, damit alles wieder läuft.

    Link Preview Image Login problem 2.0.1

    Created a pr for embed plugin as well https://github.com/TheWorms/nodebb-plugin-embed/pull/1

    favicon

    NodeBB Community (community.nodebb.org)

  • NodeBB - Update auf v1.19.6

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    71 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Update auf v1.18.4

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    161 Aufrufe
    Niemand hat geantwortet
  • NodeBB - v1.17.0

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    151 Aufrufe
    Niemand hat geantwortet
  • 0 Stimmen
    2 Beiträge
    281 Aufrufe
    FrankMF

    Durch meinen Umzug zu einem neuen Proxmox, habe ich die Gelegenheit genutzt und meine Server alle auf Debian 11 Bullseye neu installiert. So konnte ich das alles noch mal testen und meine Doku anpassen.

    Zu dem obigen Beitrag gibt es nur folgendes zu ergänzen. Ja, wir wollen ja auch was Aktuelles haben 😉

    NodeJS

    Link Preview Image Node.js — Run JavaScript Everywhere

    Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

    favicon

    (nodejs.org)

    curl -fsSL https://deb.nodesource.com/setup_14.x | bash - NodeBB git clone -b v1.18.x https://github.com/NodeBB/NodeBB.git nodebb

    https://github.com/NodeBB/NodeBB/branches

  • NodeBB - Upgrade auf v1.9.0

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    793 Aufrufe
    FrankMF

    Da oben fehlt ein Schritt.

    cd nodebb (or path to where nodebb is installed) ./nodebb stop git fetch git checkout v1.12.x git merge origin/v1.12.x ./nodebb upgrade

    Beim nächsten Upgrade testen.