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 - 2.8.13 & 3.1.3 Security Release

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    44 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Git Prozess

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    52 Aufrufe
    FrankMF

    Heute gab es ein Update von 2.4.5 -> 2.5.0

    Das oben geschriebene funktioniert nicht 😞

    git fetch git reset --hard origin/v2.x ./nodebb upgrade

    Ausschnitt der Konsole

    ~/nodebb$ git fetch remote: Enumerating objects: 244, done. remote: Counting objects: 100% (239/239), done. remote: Compressing objects: 100% (100/100), done. remote: Total 244 (delta 160), reused 212 (delta 138), pack-reused 5 Receiving objects: 100% (244/244), 55.57 KiB | 7.94 MiB/s, done. Resolving deltas: 100% (160/160), completed with 62 local objects. From https://github.com/NodeBB/NodeBB dd3e1a2861..01d276cbee v2.x -> origin/v2.x * [new branch] async-zxcvbn -> origin/async-zxcvbn 9260b4ef19..d06938d877 bootstrap5 -> origin/bootstrap5 884d40756a..8fe41d92a2 develop -> origin/develop a088eb19af..1076285dc9 master -> origin/master + b7d916c321...c85ac68373 renovate/ace-builds-1.x -> origin/renovate/ace-builds-1.x (forced update) * [new tag] v2.5.0 -> v2.5.0 :~/nodebb$ git reset --hard origin/v2.x HEAD is now at 01d276cbee chore: incrementing version number - v2.5.0 :~/nodebb$ ./nodebb upgrade Updating NodeBB...
  • NodeBB - Update v2.1.1

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    69 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Upgrade v2.1.0

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    88 Aufrufe
    FrankMF

    Und so, wenn man beide 2FA Möglichkeiten aktiviert hat.

    552a3e23-bae3-4cfd-9c2e-26026ab63138-grafik.png

  • NodeBB - Upgrade v2.0.0

    NodeBB
    3
    0 Stimmen
    3 Beiträge
    134 Aufrufe
    FrankMF

    Irgendwie hatte ich Differenzen zwischen meinen beiden Foren, die es eigentlich nicht geben dürfte!?

    Problem scheint zu sein, das das Plugin

    nodebb-plugin-ns-embed

    nicht richtig funktioniert. Da bekam ich den Tipp, das Plugin

    nodebb-plugin-embed

    zu installieren. Das ging aber nicht über das Admin Panel, da kam folgendes.

    plugin_error.png

    Ok, dann von Hand

    npm install nodebb-plugin-embed

    Im Admin Panel aktivieren, danach Rebuild und Restarten. Aktuell in v2.0.0 nicht über das Admin Panle durchführbar, Fix ist schon fertig. Kommt wohl mit v2.0.1

    ./nodebb upgrade ./nodebb restart

    Danach lief alles!?? Hoffe ich 🙂

  • 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
  • NodeBB - Upgrade auf v1.16.0

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    162 Aufrufe
    Niemand hat geantwortet