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.
    • Thomas Braun
      Thomas Braun Most Active @mjohn last edited by

      @mjohn sagte in Javascript.0 Instanz ist deaktiviert:

      Bereinigt der Befehl etwas, oder wirft er nur aus?

      Nur zum gucken.

      Da scheint aber insgesamt nicht viel Kapazität vorhanden zu sein.
      Was liegt denn da mit 1,5GiB im /home herum? Ist eher ungewöhnlich auf einem Server (der nicht als file server dient) so viel in den /homes zu haben.

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

        @thomas-braun
        da gibt es 3 Verzeichnisse

         1,3 GiB [##########] /iobroker
          186,1 MiB [#         ] /pi
            2,1 MiB [          ] /martin
        
         /home/iobroker -------------------------------------------------------------
            1,3 GiB [##########] /.npm
           14,8 MiB [          ] /.node-gyp
            7,1 MiB [          ] /.cache
           20,0 KiB [          ] /.config
           12,0 KiB [          ]  .diag.sh
            4,0 KiB [          ]  .bashrc
            4,0 KiB [          ]  .profile
            4,0 KiB [          ]  iob_diag.log
            4,0 KiB [          ]  .bash_logout
        
        

        keine Ahnung, wie das aussehen soll.

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

          @mjohn

          sudo -Hu iobroker npm cache clear --force
          

          An den npm cache hatte ich nicht gedacht.

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

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

            sudo -Hu iobroker npm cache clear --force

            Done.

            root@ioBroker-Rock:/home/iobroker# sudo -Hu iobroker npm cache clear --force
            npm WARN using --force Recommended protections disabled.
            

            jetzt

            --- /home/iobroker --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
               14,8 MiB [##########] /.node-gyp
                7,1 MiB [####      ] /.cache
                1,0 MiB [          ] /.npm
               20,0 KiB [          ] /.config
               12,0 KiB [          ]  .diag.sh
                4,0 KiB [          ]  .bashrc
                4,0 KiB [          ]  .profile
                4,0 KiB [          ]  iob_diag.log
                4,0 KiB [          ]  .bash_logout
            

            und iobroker läuft noch. Die roten Warnings hatten mich irritiert.

            So, jetzt, da Platz ist...
            1.

            sudo apt update
            sudo apt full-upgrade
            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_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 (23,8 kB/s).
            Paketlisten werden gelesen… Fertig
            Abhängigkeitsbaum wird aufgebaut… Fertig
            Statusinformationen werden eingelesen… Fertig
            Alle Pakete sind aktuell.
            Paketlisten werden gelesen… Fertig
            Abhängigkeitsbaum wird aufgebaut… Fertig
            Statusinformationen werden eingelesen… Fertig
            Paketaktualisierung (Upgrade) wird berechnet… Fertig
            0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
            

            soweit gut.
            Jetzt

            sudo reboot
            

            habe nodesource.list updated

            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
            

            aber
            alle Versuche laufen wie folgt

            1. sudo apt install nodejs=VERSIONSNUMMER-deb-1nodesource1
            2. sudo apt install nodejs=18.x-deb-1nodesource1
             ....
            Paketlisten werden gelesen… Fertig
            Abhängigkeitsbaum wird aufgebaut… Fertig
            Statusinformationen werden eingelesen… Fertig
            E: Version »VERSIONSNUMMER-deb-1nodesource1« für »nodejs« konnte nicht gefunden werden.
            

            und es bleibt bei

            /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
            
            
            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:

              root@ioBroker-Rock

              Hampel da NICHT als root herum.
              Verdammt noch eins...

              Vorallendingen nicht, wenn man auf der Kommandozeile so wackelig unterwegs ist.

              Wenn die nodesource.list angepasst wurde reicht ein simples

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

              Das ganze natürlich als Standard-User!

              M 1 Reply Last reply Reply Quote 0
              • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            586
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

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