Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Anfängerfrage zu iob diag bzw. npm

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    Anfängerfrage zu iob diag bzw. npm

    This topic has been deleted. Only users with topic management privileges can see it.
    • maloross
      maloross last edited by

      Da in vielen Themen von der eingebauten Diagnosefunktion die Rede ist, habe ich heute auch erstmalig iob diag aufgerufen.
      Soweit scheint alles ok, bis auf

      Errors in npm tree:
      npm ERR! code ELSPROBLEMS
      npm ERR! missing: chroma-js@^2.4.2, required by iobroker.javascript@7.1.4
      npm ERR! missing: moment-duration-format@^2.3.2, required by iobroker.javascript@7.1.4
      npm ERR! invalid: moment-timezone@0.5.40 /opt/iobroker/node_modules/moment-timezone
      npm ERR! invalid: moment@2.29.3 /opt/iobroker/node_modules/moment
      npm ERR! missing: oauth@^0.10.0, required by iobroker.javascript@7.1.4
      npm ERR! missing: owlintuition@^0.4.0, required by iobroker.javascript@7.1.4
      npm ERR! missing: request-promise@^4.2.6, required by iobroker.javascript@7.1.4
      npm ERR! missing: suncalc@^1.9.0, required by iobroker.javascript@7.1.4
      npm ERR! invalid: xml2js@0.4.19 /opt/iobroker/node_modules/xml2js
      

      Die Fehler beziehen sich teilweise auf die zusätzlichen Module im Javaskript-Adapter und mein erster Gedanke war, diese via npm nachzuinstallieren.
      Es kam diese Meldung

      npm notice New major version of npm available! 9.6.7 -> 10.2.3
      npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.3
      npm notice Run npm install -g npm@10.2.3 to update!
      npm notice
      

      Ich möchte als Anfängerin nichts falsch machen, daher meine Frage: kann ich ohne weiteres das Update wie dort vorgeschlagen durchführen (natürlich ohne sudo) oder hat das ggf. negative Auswirkungen auf ioB?

      arteck Thomas Braun 2 Replies Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @maloross last edited by

        @maloross sagte in Anfängerfrage zu iob diag bzw. npm:

        npm install -g npm@10.2.3

        falls du das meinst da.. lass die fingers von 🙂

        maloross 1 Reply Last reply Reply Quote 1
        • maloross
          maloross @arteck last edited by

          @arteck sagte in Anfängerfrage zu iob diag bzw. npm:

          falls du das meinst da.. lass die fingers von

          ja das meinte ich und ich frage lieber vorher, bevor ich mir vll. mein System abschieße.
          aber warum rätst du ab?

          arteck Thomas Braun 2 Replies Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active @maloross last edited by arteck

            @maloross das kann dir bestimmt @Thomas-Braun erklären...

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @maloross last edited by

              @maloross
              Wie schon von @arteck gesagt:
              Finger weg von manuellen Updates von nodejs/npm usw.
              Das läuft ausschließlich über deinen Paketmanager mit. Ein Update des Paketes 'nodejs' (aus der nodesource-Quelle) hat immer auch ein passendes npm mit an Bord.

              1 Reply Last reply Reply Quote 2
              • Thomas Braun
                Thomas Braun Most Active @maloross last edited by

                @maloross

                zusätzlichen Module im Javaskript-Adapter und mein erster Gedanke war, diese via npm nachzuinstallieren.

                Starte den javascript-Adapter besser nur neu. Der zieht dann eigenständig die zusätzlichen Module nach.

                maloross 1 Reply Last reply Reply Quote 1
                • maloross
                  maloross @Thomas Braun last edited by

                  @thomas-braun danke für die Ausführung, werde mich daran halten. Neustart hat tatsächlich die Fehler entfernt - ich bin begeistert!

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @maloross last edited by

                    @maloross
                    Was sagt denn

                    iob diag
                    

                    so genau? Summary reicht zunächst mal.

                    1 Reply Last reply Reply Quote 0
                    • maloross
                      maloross last edited by maloross

                      @thomas-braun

                      Das ist das Ergebnis:

                      ======================= SUMMARY =======================
                                              v.2023-10-10
                      
                         Static hostname: Pi4Master
                               Icon name: computer
                        Operating System: Raspbian GNU/Linux 11 (bullseye)
                                  Kernel: Linux 6.1.21-v7l+
                            Architecture: arm
                      
                      Installation:           native
                      Kernel:                 armv7l
                      Userland:               armhf
                      Timezone:               Europe/Berlin (CET, +0100)
                      User-ID:                1000
                      X-Server:               false
                      Boot Target:            graphical.target
                      
                      Pending OS-Updates:     1
                      Uncaught Rejection: Error: States DB is not allowed to start in the current Multihost environment
                          at Redis.<anonymous> (/opt/iobroker/node_modules/@iobroker/db-states-redis/build/lib/states/statesInRedisClient.js:459:23)
                          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                      Pending iob updates:    0
                      
                      Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                                              /usr/bin/node           v18.17.1
                                              /usr/bin/npm            9.6.7
                                              /usr/bin/npx            9.6.7
                                              /usr/bin/corepack       0.18.0
                      
                      Recommended versions are nodejs No connection to databases possible ... and npm 9.8.1
                      Your nodejs installation is correct
                      
                      MEMORY:
                                     total        used        free      shared  buff/cache   available
                      Mem:            7.9G        3.2G        4.0G        0.0K        677M        4.5G
                      Swap:            99M         23M         76M
                      Total:          8.0G        3.2G        4.1G
                      
                      Active iob-Instances:   57
                      Active repo(s): Stable (default)
                      
                      ioBroker Core:          js-controller           5.0.12
                                              admin                   6.12.0
                      
                      ioBroker Status:        iobroker is running on this host.
                      
                      
                      Objects type: jsonl
                      States  type: jsonl
                      
                      Status admin and web instance:
                      + system.adapter.admin.0                  : admin                 : Pi4Master                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                        system.adapter.admin.1                  : admin                 : Pi4Slave2                                - disabled, port: 8081, bind: 0.0.0.0, run as: admin
                        system.adapter.admin.2                  : admin                 : Pi4Slave1                                - disabled, port: 8081, bind: 0.0.0.0, run as: admin
                      + system.adapter.web.0                    : web                   : Pi4Master                                -  enabled, port: 8099, bind: 192.168.180.175, run as: admin
                        system.adapter.web.1                    : web                   : Pi4Master                                - disabled, port: 8082, bind: 192.168.180.175, run as: admin
                      
                      Objects:                26193
                      States:                 24938
                      
                      Size of iob-Database:
                      
                      52M     /opt/iobroker/iobroker-data/objects.jsonl
                      19M     /opt/iobroker/iobroker-data/objects.json.migrated
                      19M     /opt/iobroker/iobroker-data/objects.json.bak.migrated
                      67M     /opt/iobroker/iobroker-data/states.jsonl.bak
                      6.1M    /opt/iobroker/iobroker-data/states.json.migrated
                      6.1M    /opt/iobroker/iobroker-data/states.json.bak.migrated
                      0       /opt/iobroker/iobroker-data/states.json.broken
                      
                      =================== END OF SUMMARY ====================
                      

                      BTW: Ich arbeite gerade deinen Toolkasten durch - für mich mehr als hilfreich!

                      EDIT: der Redis-Fehler ist neu.

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @maloross last edited by

                        @maloross

                        iob fix
                        iob nodejs-update
                        
                        1 Reply Last reply Reply Quote 0
                        • maloross
                          maloross last edited by

                          @thomas-braun sagte in Anfängerfrage zu iob diag bzw. npm:

                          iob nodejs-update

                          hatte es gerade in dem Toolkasten-Thread gelesen, die Version sollte "gerade" sein. Woher die ungerade Version kommt, kann ich mir nicht erklären, da ich diesen Befehl bisher genutzt habe:

                          curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
                          sudo apt-get install -y nodejs
                          

                          Parallel beschäftige ich mich mit Bookworm, wobei ich mir mit dem Umstieg aber noch Zeit lassen möchte bzw. die Erfahrungen hier im Forum abwarte.

                          Thomas Braun 2 Replies Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @maloross last edited by

                            @maloross

                            nodes 18 ist doch eine gerade Version?
                            Die Version von npm interessiert dich nicht, solange das Hauptpaket richtig installiert ist.

                            1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @maloross last edited by

                              @maloross sagte in Anfängerfrage zu iob diag bzw. npm:

                              Parallel beschäftige ich mich mit Bookworm, wobei ich mir mit dem Umstieg aber noch Zeit lassen möchte bzw. die Erfahrungen hier im Forum abwarte.

                              Bookworm ist ja jetzt 'stabil', da passiert nichts weltbewegendes mehr.
                              Wobei das auf deinem Raspberry eh komplett neuinstalliert werden sollte. Auf eine 64Bit-Version kommst du nicht per dist-upgrade.

                              maloross 1 Reply Last reply Reply Quote 0
                              • maloross
                                maloross @Thomas Braun last edited by

                                @thomas-braun sagte in Anfängerfrage zu iob diag bzw. npm:

                                Wobei das auf deinem Raspberry eh komplett neuinstalliert werden sollte

                                das ist meine Standard-Vorgehensweise, da ich so meiner Meinung nach ein sauberes "neues" System bekomme. Backups mache ich sowieso regelmäßig und im schlimmsten Fall habe ich dann noch eine lauffähige Vorgängerversion.

                                Bisher konnte ich größere Ausfälle vermeiden 😉

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Support us

                                ioBroker
                                Community Adapters
                                Donate
                                FAQ Cloud / IOT
                                HowTo: Node.js-Update
                                HowTo: Backup/Restore
                                Downloads
                                BLOG

                                553
                                Online

                                32.0k
                                Users

                                80.5k
                                Topics

                                1.3m
                                Posts

                                javasript npm fehler
                                3
                                14
                                544
                                Loading More Posts
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes
                                Reply
                                • Reply as topic
                                Log in to reply
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                The ioBroker Community 2014-2023
                                logo