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 - v3.3.0

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    76 Aufrufe
    Niemand hat geantwortet
  • 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 - Git Prozess

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    53 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 - Upgrade v2.1.0

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    89 Aufrufe
    FrankMF

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

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

  • NodeBB - Upgrade v2.0.1 !!!

    NodeBB
    4
    0 Stimmen
    4 Beiträge
    149 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 - 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 1.13.1

    NodeBB
    2
    0 Stimmen
    2 Beiträge
    238 Aufrufe
    FrankMF

    Kurze Ergänzung, heute Morgen dieses Forum hier aktualisiert. Wie erwartet geht es jetzt einfach durch. Bis auf ein Plugin, was nicht kompatibel mit der Version 1.13.x ist. Das ist aber eine andere Baustelle. Für interessierte Leser, hänge ich den Log an.

    ~/nodebb$ ./nodebb upgrade Updating NodeBB... 1. Updating package.json file with defaults... OK 2. Bringing base dependencies up to date... started > sharp@0.23.4 install /home/user_nodebb/nodebb/node_modules/sharp > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module './index' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/user_nodebb/nodebb/node_modules/.bin/rc:2:10) 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) make: Entering directory '/home/user_nodebb/nodebb/node_modules/sharp/build' TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o CXX(target) Release/obj.target/sharp/src/metadata.o CXX(target) Release/obj.target/sharp/src/stats.o CXX(target) Release/obj.target/sharp/src/operations.o CXX(target) Release/obj.target/sharp/src/pipeline.o CXX(target) Release/obj.target/sharp/src/sharp.o CXX(target) Release/obj.target/sharp/src/utilities.o SOLINK_MODULE(target) Release/obj.target/sharp.node COPY Release/sharp.node make: Leaving directory '/home/user_nodebb/nodebb/node_modules/sharp/build' 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. added 2 packages from 1 contributor, updated 13 packages and audited 3687 packages in 35.671s 4 packages are looking for funding run `npm fund` for details 3. Checking installed plugins for updates... OK A total of 1 package(s) can be upgraded: * nodebb-plugin-2factor (2.6.4 -> 2.6.5) Proceed with upgrade (y|n)? n Package upgrades skipped. Check for upgrades at any time by running "./nodebb upgrade -p". 4. Updating NodeBB data store schema... Parsing upgrade scripts... 2019-12-22T07:52:31.428Z [4567/11002] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-align-center`. Skipping. 2019-12-22T07:52:31.429Z [4567/11002] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-blog-comments`. Skipping. 2019-12-22T07:52:31.429Z [4567/11002] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-blog-comments2`. Skipping. 2019-12-22T07:52:31.430Z [4567/11002] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-contact-page`. Skipping. 2019-12-22T07:52:31.430Z [4567/11002] - warn: [upgrade/appendPluginScripts] Unable to read plugin.json for plugin `nodebb-plugin-emoji-fontawesome`. Skipping. OK | 0 script(s) found, 84 skipped Schema update complete! 5. Rebuilding assets... started 2019-12-22T07:52:31.489Z [4567/11002] - info: [build] Building in parallel mode 2019-12-22T07:52:31.491Z [4567/11002] - info: [build] plugin static dirs build started 2019-12-22T07:52:31.500Z [4567/11002] - info: [build] requirejs modules build started 2019-12-22T07:52:31.501Z [4567/11002] - info: [build] client js bundle build started 2019-12-22T07:52:31.503Z [4567/11002] - info: [build] admin js bundle build started 2019-12-22T07:52:31.503Z [4567/11002] - info: [build] client side styles build started 2019-12-22T07:52:31.504Z [4567/11002] - info: [build] admin control panel styles build started 2019-12-22T07:52:31.504Z [4567/11002] - info: [build] templates build started 2019-12-22T07:52:31.505Z [4567/11002] - info: [build] languages build started 2019-12-22T07:52:31.505Z [4567/11002] - info: [build] sounds build started 2019-12-22T07:52:32.493Z [4567/11002] - info: [build] sounds build completed in 0.988sec 2019-12-22T07:52:41.512Z [4567/11002] - info: [build] client side styles build completed in 10.009sec 2019-12-22T07:52:41.939Z [4567/11002] - info: [build] admin control panel styles build completed in 10.435sec 2019-12-22T07:52:51.628Z [4567/11002] - info: [build] plugin static dirs build completed in 20.136sec 2019-12-22T07:52:52.192Z [4567/11002] - info: [build] client js bundle build completed in 20.691sec 2019-12-22T07:52:52.192Z [4567/11002] - info: [build] admin js bundle build completed in 20.689sec 2019-12-22T07:52:58.054Z [4567/11002] - info: [build] languages build completed in 26.549sec 2019-12-22T07:53:01.537Z [4567/11002] - info: [build] templates build completed in 30.033sec 2019-12-22T07:53:02.409Z [4567/11002] - info: [build] requirejs modules build completed in 30.909sec 2019-12-22T07:53:02.412Z [4567/11002] - info: [build] Asset compilation successful. Completed in 30.921sec. NodeBB Upgrade Complete!

    Auch hier sieht man schön, wie das o.g. Paket heruntergeladen wird und gebaut wird!

  • nginx konfigurieren

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