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!

  • 1 Stimmen
    7 Beiträge
    72 Aufrufe
    julian@community.nodebb.orgJ
    @eeeee I believe LemmyBB was a proof-of-concept, to show that Lemmy as it existed back then was able to be represented in the front-end as a tradtional forum. But also, nutomic (who may have made LemmyBB? not sure.) is a busy person who has a day job and doesn't work on lemmy full-time
  • 0 Stimmen
    38 Beiträge
    332 Aufrufe
    julian@community.nodebb.orgJ
    @Pankaj-Soni yes and no... the enabling of the push notifications requires a discrete user action — the user has to actually press the switch to enable notifications. There are ways we can advertise this to end users, so I will look into adding those soon. For now, users will have to go into their user settings to enable push notifications.
  • NodeBB - v3.6.0

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    90 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Update 2.8.1

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    78 Aufrufe
    Niemand hat geantwortet
  • Nodebb - iframely

    NodeBB
    5
    1
    0 Stimmen
    5 Beiträge
    297 Aufrufe
    FrankMF
    In der Anleitung von iframely werden zwei Tools angesprochen, um den Dienst dauerhaft am Laufen zu halten. forever pm2 Ich habe beide ausprobiert, pm2 recht intensiv. Bin aber zu der Überzeugung gekommen, das es für mich nicht sinnvoll ist eines dieser Tools zu nutzen. Meine NodeJS Fähigkeiten sind sehr überschaubar, so das ich mich mit keinem der Tools richtig wohl gefühlt habe. Also machen wir es so, wie es in Debian 11 eingebaut ist - mit systemd Hier das File wie ich den Dienst starte. [Unit] Description=Iframely Documentation=https://iframely.com/docs/host After=system.slice multi-user.target [Service] Type=simple User=<USER> StandardOutput=syslog StandardError=syslog SyslogIdentifier=iframely WorkingDirectory=/home/<USER>/iframely PIDFile=/home/<USER>/iframely/pidfile ExecStart=/usr/bin/node cluster Restart=always [Install] WantedBy=multi-user.target
  • Update v2.2.2

    NodeBB
    1
    0 Stimmen
    1 Beiträge
    96 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Upgrade v1.19.2

    NodeBB
    2
    1
    0 Stimmen
    2 Beiträge
    180 Aufrufe
    FrankMF
    Es gab da noch ein lästiges Problem -> https://github.com/NodeBB/nodebb-plugin-emoji/issues/52 npm install nodebb-plugin-emoji@3.5.13 Die Version v3.5.13 behebt das Problem.
  • NodeBB - nodebb-plugin-spam-be-gone

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