Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Javascript.0 Instanz ist deaktiviert

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Javascript.0 Instanz ist deaktiviert

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mjohn @Thomas Braun last edited by

      @thomas-braun
      Ich melde mich al

      pi
      

      an

      pi@ioBroker-Rock:~$
      

      weiss leider nicht, was ich da falsch mache

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

        @mjohn

        Hier:

        root@ioBroker-Rock:/home/iobroker# sudo -Hu iobroker npm cache clear --force
        

        bist du unzweifelhaft als root unterwegs. Fragt sich nur warum...

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

          @thomas-braun
          kann es sein, dass der eine oder andere befehl ein root PWD erfordert?

          Gerade

          iob stop
          sudo apt update
          sudo apt full-upgrade
          iob start
          

          durchgelaufen, keine für mich erkennbaren Fehler, jedoch

          pi@ioBroker-Rock:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
          uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          aarch64
          /usr/bin/nodejs
          /usr/bin/node
          /usr/bin/npm
          /usr/bin/npx
          v16.19.1
          v16.19.1
          8.19.3
          8.19.3
          4.0.23
          pi
          pi dialout sudo audio video plugdev systemd-journal input netdev ssh iobroker
          tty
          /home/pi
          OK:1 http://security.debian.org/debian-security bullseye-security InRelease
          OK:2 http://deb.debian.org/debian bullseye InRelease
          OK:3 http://deb.debian.org/debian bullseye-updates InRelease
          OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
          Holen:5 http://armbian.systemonachip.net/apt bullseye InRelease [53,3 kB]
          Es wurden 53,3 kB in 2 s geholt (25,7 kB/s).
          Paketlisten werden gelesen… Fertig
          Abhängigkeitsbaum wird aufgebaut… Fertig
          Statusinformationen werden eingelesen… Fertig
          Alle Pakete sind aktuell.
          nodejs:
            Installiert:           16.19.1-deb-1nodesource1
            Installationskandidat: 16.19.1-deb-1nodesource1
            Versionstabelle:
           *** 16.19.1-deb-1nodesource1 500
                  500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages
                  100 /var/lib/dpkg/status
               12.22.12~dfsg-1~deb11u3 500
                  500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
               12.22.5~dfsg-2~11u1 500
                  500 http://deb.debian.org/debian bullseye/main arm64 Packages
          pi@ioBroker-Rock:~$
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @mjohn last edited by Thomas Braun

            @mjohn sagte in Javascript.0 Instanz ist deaktiviert:

            kann es sein, dass der eine oder andere befehl ein root PWD erfordert?

            Nein, der erfordert das Passwort des users, der mit sudo-Rechten versehen wurde. Ansonsten ist dein Setup krumm.

            Die nodesource.list ist 100% noch nicht richtig.

            cat /etc/apt/sources.list.d/nodesource.list
            

            sagt?

            M 2 Replies Last reply Reply Quote 0
            • M
              mjohn @Thomas Braun last edited by

              @thomas-braun sagte in Javascript.0 Instanz ist deaktiviert:

              cat /etc/apt/sources.list.d/nodesource.list

              Jetzt

              pi@ioBroker-Rock:~$ pi@ioBroker-Rock:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
              pi@ioBroker-Rock:~$ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              aarch64
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              /usr/bin/npx
              v18.16.0
              v18.16.0
              9.5.1
              9.5.1
              4.0.23
              pi
              pi dialout sudo audio video plugdev systemd-journal input netdev ssh iobroker
              tty
              /home/pi
              OK:1 http://deb.debian.org/debian bullseye InRelease
              OK:2 http://deb.debian.org/debian bullseye-updates InRelease
              OK:3 http://security.debian.org/debian-security bullseye-security InRelease
              OK:4 https://deb.nodesource.com/node_18.x bullseye InRelease
              OK:5 http://fi.mirror.armbian.de/apt bullseye InRelease
              Paketlisten werden gelesen… Fertig
              Abhängigkeitsbaum wird aufgebaut… Fertig
              Statusinformationen werden eingelesen… Fertig
              Alle Pakete sind aktuell.
              nodejs:
                Installiert:           18.16.0-deb-1nodesource1
                Installationskandidat: 18.16.0-deb-1nodesource1
                Versionstabelle:
               *** 18.16.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x bullseye/main arm64 Packages
                      100 /var/lib/dpkg/status
                   12.22.12~dfsg-1~deb11u3 500
                      500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                   12.22.5~dfsg-2~11u1 500
                      500 http://deb.debian.org/debian bullseye/main arm64 Packages
              

              Puhhhh
              Kann es sein, dass ich jetzt durch bin?

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

                @thomas-braun

                pi@ioBroker-Rock:~$ cat /etc/apt/sources.list.d/nodesource.list
                deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye main
                deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye main
                
                1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @mjohn last edited by

                  @mjohn

                  Zeig mal die lange Ausgabe von

                  iob diag
                  

                  nachdem ein

                  iob fix
                  

                  über das System gejagt wurde.

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

                    @thomas-braun sagte in Javascript.0 Instanz ist deaktiviert:

                    iob fix

                    zuerst

                    iob stop
                    iob fix
                    iob start
                    

                    oder

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

                      @mjohn

                      Ja, der fix läuft nur mit gestopptem iobroker.

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

                        @thomas-braun

                        library: loaded
                        Library version=2022-12-09
                        ==========================================================================
                            Welcome to the ioBroker installation fixer!
                            Script version: 2023-04-02
                        
                            You might need to enter your password a couple of times.
                        ==========================================================================
                        
                        ==========================================================================
                            Installing prerequisites (1/5)
                        ==========================================================================
                        [sudo] Passwort für pi:
                        OK:1 http://deb.debian.org/debian bullseye InRelease
                        OK:2 http://security.debian.org/debian-security bullseye-security InRelease
                        OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                        OK:5 https://deb.nodesource.com/node_18.x bullseye InRelease
                        Holen:4 http://armbian.systemonachip.net/apt bullseye InRelease [53,3 kB]
                        Es wurden 53,3 kB in 2 s geholt (27,3 kB/s).
                        Paketlisten werden gelesen… Fertig
                        Installed gcc-c++
                        ==========================================================================
                            Checking ioBroker user and directory permissions (2/5)
                        ==========================================================================
                        Created /etc/sudoers.d/iobroker
                        Fixing directory permissions...
                        ==========================================================================
                            Check and cleanup npm temporary directories (3/5)
                        ==========================================================================
                        Done.
                        ==========================================================================
                            Database maintenance (4/5)
                        ==========================================================================
                        Checking for uncompressed JSONL databases... This might take a while!
                        Compressing /opt/iobroker/iobroker-data/states.jsonl
                        Compressing /opt/iobroker/iobroker-data/objects.jsonl
                        Compressed 2 JSONL files. Done
                        ==========================================================================
                            Checking autostart (5/5)
                        ==========================================================================
                        Enabling autostart...
                        Autostart enabled!
                        =========================================================================
                            Your installation was fixed successfully
                            Run iobroker start to start ioBroker again!
                        ==========================================================================
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @mjohn last edited by

                          @mjohn

                          Dann jetzt mal

                          iob diag
                          
                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mjohn @Thomas Braun last edited by

                            @thomas-braun sagte in Javascript.0 Instanz ist deaktiviert:

                            iob diag

                            ======================= SUMMARY =======================
                                                 v.2023-04-02
                            Operatingsystem:        Debian GNU/Linux 11 (bullseye)
                            Kernel:                 4.4.192-rockchip64
                            Installation:           Native
                            Timezone:               Europe/Berlin (CEST, +0200)
                            User-ID:                1000
                            X-Server:               false
                            Boot Target:            graphical.target
                            
                            Pending OS-Updates:     0
                            Pending iob updates:    1
                            
                            Nodejs-Installation:    /usr/bin/nodejs         v18.16.0
                                                    /usr/bin/node           v18.16.0
                                                    /usr/bin/npm            9.5.1
                                                    /usr/bin/npx            9.5.1
                            
                            Recommended versions are nodejs 18.x.y and npm 9.x.y
                            
                            MEMORY:
                                           total        used        free      shared  buff/cache   available
                            Mem:            4.0G        1.2G        2.0G         33M        862M        2.7G
                            Swap:           1.0G          0B        1.0G
                            Total:          5.0G        1.2G        3.0G
                            
                            Active iob-Instances:   23
                            Active repo(s): stable
                            
                            ioBroker Core:          js-controller           4.0.23
                                                    admin                   6.3.5
                            
                            ioBroker Status:        iobroker is running on this host.
                            
                            
                            Objects type: jsonl
                            States  type: jsonl
                            
                            Status admin and web instance:
                            + system.adapter.admin.0                  : admin                 : ioBroker-Rock                            -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
                            + system.adapter.web.0                    : web                   : ioBroker-Rock                            -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                            
                            Objects:                1311
                            States:                 1012
                            
                            Size of iob-Database:
                            
                            5.3M    /opt/iobroker/iobroker-data/objects.jsonl
                            872K    /opt/iobroker/iobroker-data/states.jsonl
                            
                            
                            
                            =================== END OF SUMMARY ====================
                            
                            

                            und js-controller müsste noch auf 4.0.24 updated werden. Einfach bei laufendem System auf den Button, oder?

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

                              @mjohn sagte in Javascript.0 Instanz ist deaktiviert:

                              Einfach bei laufendem System auf den Button, oder?

                              Nein, den js-controller bekommst du nur bei gestopptem iobroker aktualisiert.

                              iob stop
                              iob update
                              iob upgrade self
                              iob start
                              
                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mjohn @Thomas Braun last edited by

                                @thomas-braun
                                was bedeutet der Update Button unter Host im iobroker?

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

                                  @mjohn

                                  Keine Ahnung. Ich kenne die GUI nicht so genau, weil ich die für sowas nicht nutze.

                                  M 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @mjohn last edited by

                                    @mjohn sagte in Javascript.0 Instanz ist deaktiviert:

                                    @thomas-braun
                                    was bedeutet der Update Button unter Host im iobroker?

                                    klick drauf, und du siehst es 😉

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

                                      @thomas-braun
                                      Über deine Befehle gemacht, und alles aktuell, und iob läuft.

                                      OMG, was für eine Geburt.
                                      Ich weiß nicht, was ich sagen soll.

                                      DANKE ist das Mindeste.

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        mjohn @mjohn last edited by mjohn

                                        @mjohn
                                        Hi an alle,
                                        ich musste leider Mitte Mai und heute iob restarten, da wieder die javascript.0 Instanz deaktiviert war. Fällt immer dann auf, wenn meine Garagentor Statusmeldung über Telegram nicht mehr eintrudeln.
                                        Gibt es einen bekannten Bug?
                                        Den Adapter stoppen und wieder starten genügt nicht bei mir. Ich muss leider iob restarten.

                                        Fehlermeldungen/Protokolle fand ich keine, lediglich die Javascript.0 Instanz war rot und ließ sich nicht wieder anwählen, alle Scripte waren aktiv. Im rechten Scripte Feld, in der Menüzeile oben, wo ich das Script anhalten könnte stand hinter den grünen Doppelbalken in gelb 'Instanz ist deaktiviert'.

                                        Außer dass ich dafür ein Script anlege, das natürlich auch nur dann funktioniert, wenn das Javascript nicht abgestürzt ist, fällt mir nichts ein.
                                        Gibt es eine evtl. alternative Methode zum Script?

                                        Vielen Dank.

                                        1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User last edited by

                                          @mjohn sagte in Javascript.0 Instanz ist deaktiviert:

                                          Gibt es einen bekannten Bug?

                                          Moin,

                                          Du schreibst leider nicht welche Versionen Du einsetzt, führe doch einmal auf der Kommandozeile den Befehl aus und poste die Lange Version hier in Code Tags </>

                                          iob diag
                                          

                                          Vielleicht ist es aber auch eines Deiner Skripte, das Amok läuft, siehe hier https://forum.iobroker.net/topic/59620/javascript-6-1-0-neue-funktionen-beta

                                          Der JavaScript Adapter überwacht ab sofort die Anzahl der setState pro Skript und wenn dies pro Minute mehr als 1000 sind (der Wert ist global im Adapter konfigurierbar) - 1000/Min sind 16 pro Sekunde - wird das Skript beendet! Ein Fehler wird geloggt.
                                          

                                          Und nicht sagen, dass Du nichts im Log gefunden hast, besser Du zeigst die Log Files, dann können die Wissenden, ich nicht 🙂 besser beurteilen, was da evtl. schiefläuft.

                                          VG
                                          Bernd

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            mjohn @Guest last edited by

                                            @dp20eic
                                            Danke für die Antwort und entschuldige die Verzögerung. Urlaub und keinen brauchbaren Systemzugriff.
                                            In der Zwischenzeit wieder javascript 2x als 'Instanz ist deaktiviert' angezeigt.
                                            Einmal nach ca. 4 Wochen ohne Mucken, es genügte auch ein einfacher Adapter RESTART.
                                            Danach Javascript Absturz innerhalb von ca. 2 Tagen. Nur über iob RESTART wieder grün.

                                            Hier einmal

                                            iob diag
                                            

                                            von gerade eben. Hatte allerdings sowohl OS, als auch 6 Adapter heute Aktualisiert. Insofern nicht die genaue Situation vom Script Absturz.

                                            ======================= SUMMARY =======================
                                                                 v.2023-04-16
                                            
                                            
                                            Operatingsystem:        Debian GNU/Linux 11 (bullseye)
                                            Kernel:                 4.4.192-rockchip64
                                            Installation:           Native
                                            Timezone:               Europe/Berlin (CEST, +0200)
                                            User-ID:                0
                                            X-Server:               false
                                            Boot Target:            graphical.target
                                            
                                            Pending OS-Updates:     0
                                            Pending iob updates:    0
                                            
                                            Nodejs-Installation:    /usr/bin/nodejs         v18.16.1
                                                                    /usr/bin/node           v18.16.1
                                                                    /usr/bin/npm            9.5.1
                                                                    /usr/bin/npx            9.5.1
                                            
                                            Recommended versions are nodejs 18.x.y and npm 9.x.y
                                            Your nodejs installation is correct
                                            
                                            MEMORY:
                                                           total        used        free      shared  buff/cache   available
                                            Mem:            4.0G        1.2G        1.1G         43M        1.7G        2.7G
                                            Swap:           1.0G         18M        1.0G
                                            Total:          5.0G        1.2G        2.1G
                                            
                                            Active iob-Instances:   23
                                            Active repo(s): stable
                                            
                                            ioBroker Core:          js-controller           4.0.24
                                                                    admin                   6.3.5
                                            
                                            ioBroker Status:        iobroker is running on this host.
                                            
                                            
                                            Objects type: jsonl
                                            States  type: jsonl
                                            
                                            Status admin and web instance:
                                            + system.adapter.admin.0                  : admin                 : ioBroker-Rock                            -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
                                            + system.adapter.web.0                    : web                   : ioBroker-Rock                            -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                                            
                                            Objects:                1460
                                            States:                 1151
                                            
                                            Size of iob-Database:
                                            
                                            5.7M    /opt/iobroker/iobroker-data/objects.jsonl
                                            604K    /opt/iobroker/iobroker-data/states.jsonl
                                            
                                            
                                            
                                            =================== END OF SUMMARY ====================
                                            
                                            

                                            Ich hoffe, das hilft etwas weiter. Meine Hoffung ist, dass der neue Javascript Adapter alles fixt.
                                            Danke schon jetzt.

                                            Thomas Braun Homoran ? 3 Replies 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

                                            925
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            50
                                            1966
                                            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