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:

      Dann nodejs Updateversuch durchgeführt, ich glaube nicht erfolgreich.
      Evtl. ist der Befehl falsch

      Du musst die Datei /etc/apt/sources.list.d/nodesource.list um die Quelle für nodejs@18 ergänzen. Erst danach liegt das im Regal und kann upgegradet werden. Steht aber auch so im HowTo drin.
      Zunächst musst du aber auf dem Speichermedium wieder Platz zum Tanzen schaffen.

      Mit

      sudo ncdu /
      

      mal schauen wo die dicken Kinder wohnen.

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

        leider

        pi@ioBroker-Rock:~$ sudo ncdu /
        [sudo] Passwort für pi:
        sudo: ncdu: Befehl nicht gefunden
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @mjohn last edited by Thomas Braun

          @mjohn

          Dann nachinstallieren, wenn dafür noch Platz auf der Kiste ist.

          sudo apt install ncdu
          

          Kannst auch vorher mal versuchen den apt cache zu löschen, das gibt dir vielleicht wieder etwas Luft.

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

            @thomas-braun
            Danke, gerade den Befehl gefunden. Läuft...
            Bereinigt der Befehl etwas, oder wirft er nur aus?
            Das wird ausgeworfen

              3,1 GiB [##########] /opt
                1,5 GiB [####      ] /home
                1,5 GiB [####      ] /usr
                1,4 GiB [####      ] /var
              285,1 MiB [          ] /root
              153,9 MiB [          ] /lib
               45,5 MiB [          ] /boot
               40,8 MiB [          ] /run
               14,6 MiB [          ] /bin
               12,1 MiB [          ] /sbin
                4,1 MiB [          ] /etc
               12,0 KiB [          ] /media
            e   4,0 KiB [          ] /srv
            e   4,0 KiB [          ] /selinux
            e   4,0 KiB [          ] /mnt
            e   4,0 KiB [          ] /lost+found
                0,0   B [          ] /sys
            .   0,0   B [          ] /proc
                0,0   B [          ] /dev
                0,0   B [          ] /tmp
            
            
            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:

              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
                                            • First post
                                              Last post

                                            Support us

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

                                            848
                                            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