Skip to content

NodeBB - Upgrade v2.0.0

NodeBB
  • NodeBB gibt es jetzt schon was länger als Version 2.0.0, ich habe mich aber bis heute noch nicht mit dem Thema beschäftigt. Ansonsten bin ich immer sehr schnell mit Upgrades, diesmal habe ich mir Zeit gelassen.

    Als Vorebereitung einen Snapshot angelegt, man weiß ja nie....

    Ok, los geht's

    user :~/nodebb$ git fetch
    remote: Enumerating objects: 999, done.
    remote: Counting objects: 100% (895/895), done.
    remote: Compressing objects: 100% (375/375), done.
    remote: Total 999 (delta 556), reused 853 (delta 520), pack-reused 104
    Receiving objects: 100% (999/999), 576.49 KiB | 18.01 MiB/s, done.
    Resolving deltas: 100% (601/601), completed with 146 local objects.
    From https://github.com/NodeBB/NodeBB
     * [new branch]            dependabot/npm_and_yarn/install/ace-builds-1.5.0                 -> origin/dependabot/npm_and_yarn/install/ace-builds-1.5.0
     * [new branch]            dependabot/npm_and_yarn/install/commitlint/cli-17.0.0            -> origin/dependabot/npm_and_yarn/install/commitlint/cli-17.0.0
     * [new branch]            dependabot/npm_and_yarn/install/commitlint/config-angular-17.0.0 -> origin/dependabot/npm_and_yarn/install/commitlint/config-angular-17.0.0
     * [new branch]            dependabot/npm_and_yarn/install/passport-0.5.3                   -> origin/dependabot/npm_and_yarn/install/passport-0.5.3
       6217db0041..b124370b92  master                                                           -> origin/master
     + dcbe524fcf...b0d4ab5542 renovate/apidevtools-swagger-parser-10.x                         -> origin/renovate/apidevtools-swagger-parser-10.x  (forced update)
     * [new branch]            renovate/cron-2.x                                                -> origin/renovate/cron-2.x
     * [new branch]            renovate/docker-metadata-action-4.x                              -> origin/renovate/docker-metadata-action-4.x
     + 85d3775d8d...46aaad98a4 renovate/lru-cache-7.x                                           -> origin/renovate/lru-cache-7.x  (forced update)
     * [new branch]            v2.0.x                                                           -> origin/v2.0.x
     * [new tag]               v2.0.0                                                           -> v2.0.0
    

    Da sieht man die Version 2.0.0

    user:~/nodebb$ git checkout v2.0.x 
    Branch 'v2.0.x' set up to track remote branch 'v2.0.x' from 'origin'.
    Switched to a new branch 'v2.0.x'
    

    Danach der Upgrade Vorgang

    user:~/nodebb$ ./nodebb upgrade
    

    Es kamen ein paar Warnungen

    npm WARN ERESOLVE overriding peer dependency
    npm WARN While resolving: nodebb@2.0.0
    npm WARN Found: nodebb-plugin-emoji@3.5.17
    npm WARN node_modules/nodebb-plugin-emoji
    npm WARN   nodebb-plugin-emoji@"4.0.2" from the root project
    npm WARN   2 more (nodebb-plugin-emoji-android, nodebb-plugin-emoji-apple)
    npm WARN 
    npm WARN Could not resolve dependency:
    npm WARN peer nodebb-plugin-emoji@"^3.4.2 || ^3.5.0" from nodebb-plugin-emoji-apple@2.0.5
    npm WARN node_modules/nodebb-plugin-emoji-apple
    npm WARN   nodebb-plugin-emoji-apple@"^2.0.5" from the root project
    npm WARN deprecated cron@1.8.3: Breaking dependency change (moved from moment to luxon). Please move to 2.0.0.
    

    Eine Meldung, das npm veraltet ist

    npm notice 
    npm notice New minor version of npm available! 8.5.5 -> 8.10.0
    npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.10.0
    npm notice Run npm install -g npm@8.10.0 to update!
    npm notice 
    

    Zwei Warnungen für Webpack 5

    WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
    This can impact web performance.
    Assets: 
      03371bf1d5cbb1eab58e3a0130d1e9c2.js (491 KiB)
      nodebb.min.js (1.15 MiB)
      admin.min.js (1.33 MiB)
      8522.29b4b3a5215e23298727.min.js (471 KiB)
      4793.874eeda7b33b3d945f82.min.js (455 KiB)
    
    WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
    Entrypoints:
      nodebb (1.15 MiB)
          nodebb.min.js
      admin (1.33 MiB)
          admin.min.js
    
    webpack 5.72.0 compiled with 2 warnings in 68852 ms
    2022-05-21T12:12:12.827Z [4568/255219] - info: [build] Asset compilation successful. Completed in 79.216sec.
    

    Sieht schlimmer aus als es ist, weil man das auch ignorieren kann. Das Forum läuft auf v2.0.0, nein nicht dieses Forum hier, sondern mein Testforum. Das Forum hier ist evt. morgen früh dran.

  • Seit eben ist dieses Forum jetzt auch auf der v2.0.0. Sollte jemand einen Fehler finden, bitte ich um einen kurzen Hinweis. Danke.

  • 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 🙂

  • FrankMF FrankM hat dieses Thema am angepinnt
  • FrankMF FrankM hat dieses Thema am abgepinnt

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

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

  • NodeBB - spawn npm ENOENT

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    403 Aufrufe
    Niemand hat geantwortet
  • NodeBB - nach Plugin platt

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    584 Aufrufe
    Niemand hat geantwortet
  • 0 Stimmen
    1 Beiträge
    812 Aufrufe
    Niemand hat geantwortet