Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Problem hoch Drei (JavaScript, HOST, Admin)

    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

    Problem hoch Drei (JavaScript, HOST, Admin)

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

      @kenji

      iob repo unset __stable
      iob repo del __stable
      

      Und wenn das drin ist nochmal

      iob repo list
      
      Codierknecht Kenji 2 Replies Last reply Reply Quote 0
      • Kenji
        Kenji @Thomas Braun last edited by

        @thomas-braun

        pi@raspberrypi:/ $ iob repo add stable http://download.iobroker.net/sources-dist                                                                                         .json
        Cannot add repository location: Repository "stable" yet exists: http://download.                                                                                         iobroker.net/sources-dist.json
        pi@raspberrypi:/ $ iob repo add beta http://download.iobroker.net/sources-dist-latest.json
        Repository "beta" added as "http://download.iobroker.net/sources-dist-latest.json"
        __stable      : http://download.iobroker.net/sources-dist.json
        stable        : http://download.iobroker.net/sources-dist.json
        beta          : http://download.iobroker.net/sources-dist-latest.json
        
        Active repo(s): Stable (default), __stable
        pi@raspberrypi:/ $ iob repo add live-stable http://iobroker.live/repo/sources-dist.json
        Repository "live-stable" added as "http://iobroker.live/repo/sources-dist.json"
        __stable      : http://download.iobroker.net/sources-dist.json
        stable        : http://download.iobroker.net/sources-dist.json
        beta          : http://download.iobroker.net/sources-dist-latest.json
        live-stable   : http://iobroker.live/repo/sources-dist.json
        
        Active repo(s): Stable (default), __stable
        pi@raspberrypi:/ $ iob repo add live-beta http://iobroker.live/repo/sources-dist-latest.json
        Repository "live-beta" added as "http://iobroker.live/repo/sources-dist-latest.json"
        __stable      : http://download.iobroker.net/sources-dist.json
        stable        : http://download.iobroker.net/sources-dist.json
        beta          : http://download.iobroker.net/sources-dist-latest.json
        live-stable   : http://iobroker.live/repo/sources-dist.json
        live-beta     : http://iobroker.live/repo/sources-dist-latest.json
        
        Active repo(s): Stable (default), __stable
        pi@raspberrypi:/ $ iob repo set stable
        Repository "stable" set as active.
        __stable      : http://download.iobroker.net/sources-dist.json
        stable        : http://download.iobroker.net/sources-dist.json
        beta          : http://download.iobroker.net/sources-dist-latest.json
        live-stable   : http://iobroker.live/repo/sources-dist.json
        live-beta     : http://iobroker.live/repo/sources-dist-latest.json
        
        Active repo(s): Stable (default), __stable, stable
        pi@raspberrypi:/ $
        
        
        1 Reply Last reply Reply Quote 0
        • Codierknecht
          Codierknecht Developer Most Active @Kenji last edited by

          @kenji sagte in Problem hoch Drei (JavaScript, HOST, Admin):

          @codierknecht Wäre das Backup eine Möglichkeit mein System zu retten? Habe am Anfang eins abgelegt. Muss gestehen habe noch nie eins benutzt. Oder besser einen PI neu aufsetzten und das Backup einspielen.

          Das wird schon - nur nicht ungeduldig werden.

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

            @kenji

            iob repo unset __stable
            iob repo del __stable
            

            Und wenn das drin ist nochmal

            iob repo list
            
            1 Reply Last reply Reply Quote 0
            • Kenji
              Kenji @Thomas Braun last edited by

              @thomas-braun

              pi@raspberrypi:/ $
              pi@raspberrypi:/ $ iob repo unset __stable
              Repository "__stable" deactivated.
              __stable      : http://download.iobroker.net/sources-dist.json
              stable        : http://download.iobroker.net/sources-dist.json
              beta          : http://download.iobroker.net/sources-dist-latest.json
              live-stable   : http://iobroker.live/repo/sources-dist.json
              live-beta     : http://iobroker.live/repo/sources-dist-latest.json
              
              Active repo(s): Stable (default), stable
              pi@raspberrypi:/ $ iob repo del __stable
              Repository "__stable" deleted.
              stable        : http://download.iobroker.net/sources-dist.json
              beta          : http://download.iobroker.net/sources-dist-latest.json
              live-stable   : http://iobroker.live/repo/sources-dist.json
              live-beta     : http://iobroker.live/repo/sources-dist-latest.json
              
              Active repo(s): Stable (default), stable
              pi@raspberrypi:/ $ iob repo list
              stable        : http://download.iobroker.net/sources-dist.json
              beta          : http://download.iobroker.net/sources-dist-latest.json
              live-stable   : http://iobroker.live/repo/sources-dist.json
              live-beta     : http://iobroker.live/repo/sources-dist-latest.json
              
              Active repo(s): Stable (default), stable
              pi@raspberrypi:/ $
              
              

              Möchte natürlich nicht ungeduldig wirken. Danke für die super Hilfe hier im Forum. 🙂

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

                @kenji sagte in Problem hoch Drei (JavaScript, HOST, Admin):

                iob repo unset 'Stable (default)'
                
                Kenji Codierknecht 2 Replies Last reply Reply Quote 0
                • Kenji
                  Kenji @Thomas Braun last edited by

                  @thomas-braun said in Problem hoch Drei (JavaScript, HOST, Admin):

                  iob repo unset 'Stable (default)'

                  pi@raspberrypi:/ $ iob repo unset 'Stable (default)'
                  Repository "Stable (default)" deactivated.
                  stable        : http://download.iobroker.net/sources-dist.json
                  beta          : http://download.iobroker.net/sources-dist-latest.json
                  live-stable   : http://iobroker.live/repo/sources-dist.json
                  live-beta     : http://iobroker.live/repo/sources-dist-latest.json
                  
                  Active repo(s): stable
                  pi@raspberrypi:/ $
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Codierknecht
                    Codierknecht Developer Most Active @Thomas Braun last edited by

                    @thomas-braun
                    Können (sollten) die beiden "live" repos nicht auch weg?

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

                      @codierknecht sagte in Problem hoch Drei (JavaScript, HOST, Admin):

                      Können (sollten) die beiden "live" repos nicht auch weg?

                      Ich hab die gerne in der Hinterhand, wenn die primären Repos nicht funktionieren sollten. Dann aktivier ich die flugs und bin ggf. wieder im Rennen.
                      Schadet ja nix die da zu haben.

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

                        @kenji

                        Die Repos sind jetzt sauber. Wie schaut es beim Thema nodejs aus?

                        cd ~
                        sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                        uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        
                        Kenji 1 Reply Last reply Reply Quote 0
                        • Kenji
                          Kenji @Thomas Braun last edited by

                          @thomas-braun

                          pi@raspberrypi:/ $
                          pi@raspberrypi:/ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                          pi@raspberrypi:/ $
                          pi@raspberrypi:/ $
                          pi@raspberrypi:/ $ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs        -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && ap       t policy nodejs
                          armv7l
                          Kein Docker
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v16.17.1
                          v16.17.1
                          8.15.0
                          4.0.21
                          pi
                          pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
                          tty
                          
                          /
                          OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                          OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                          OK:3 https://deb.nodesource.com/node_16.x bullseye InRelease
                          Paketlisten werden gelesen… Fertig
                          Abhängigkeitsbaum wird aufgebaut… Fertig
                          Statusinformationen werden eingelesen… Fertig
                          Aktualisierung für 74 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
                          nodejs:
                            Installiert:           16.17.1-deb-1nodesource1
                            Installationskandidat: 16.18.1-deb-1nodesource1
                            Versionstabelle:
                               16.18.1-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                           *** 16.17.1-deb-1nodesource1 100
                                  100 /var/lib/dpkg/status
                               12.22.12~dfsg-1~deb11u1 500
                                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                          pi@raspberrypi:/ $
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Kenji last edited by Thomas Braun

                            @kenji

                            cd ~
                            iob stop
                            sudo apt update 
                            sudo apt full-upgrade
                            sudo reboot
                            

                            System regelmäßig updaten!

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

                              @codierknecht sagte in Problem hoch Drei (JavaScript, HOST, Admin):

                              Gleich mit su fortan als root zu agieren ist sicher die schlechteste aller Varianten.

                              da bin ich voll be dir!

                              Aber deine Formulierung kann auch für die Verwendung von nur sudo missgedeutet werden

                              Codierknecht Kenji 2 Replies Last reply Reply Quote 0
                              • Codierknecht
                                Codierknecht Developer Most Active @Homoran last edited by

                                @homoran sagte in Problem hoch Drei (JavaScript, HOST, Admin):

                                Aber deine Formulierung kann auch für die Verwendung von nur sudo missgedeutet werden

                                Punkt für Dich.

                                @Kenji
                                Also zur Klarstellung: sudo xxx wird (wie man weiter oben sieht) durchaus schon mal benötigt.
                                Aber in der Regel niemals im Zusammenhang mit ioBroker sondern nur für das System (Linux) an sich.

                                Kenji 1 Reply Last reply Reply Quote 2
                                • Kenji
                                  Kenji @Homoran last edited by

                                  @homoran Also ich werde keine IOB Befehle mehr als "sudo" oder "Root" ausführen. Ich versuche aus jedem Problem was mit zu nehmen und zu lernen. 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • Kenji
                                    Kenji @Codierknecht last edited by

                                    @codierknecht Das ist mir jetzt auf jeden Fall klar geworden und ich hoffe das lesen noch mehr Leute hier. Damit es weniger solcher Fälle geben wird.

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

                                      @kenji sagte in Problem hoch Drei (JavaScript, HOST, Admin):

                                      ich hoffe das lesen noch mehr Leute hier. Damit es weniger solcher Fälle geben wird.

                                      Da hab ich die Hoffnung schon fast aufgegeben...
                                      Irgendwer kommt halt immer auf die Idee mit dem root durch das System zu bulldoozern. Funktioniert im ersten Moment auch, die Haken und Kinken tauchen dann erst viel später auf.

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

                                        @thomas-braun Hast auch meinen höchsten Respekt für die Arbeit hier. Die Anderen natürlich auch! Bin nämlich eigentlich total begeistern vom IoBroker und habe dadurch Linux erst kennen gelernt.
                                        Echt super.

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

                                          @kenji
                                          Updates durch?

                                          Dann

                                          for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
                                          iob update 
                                          iob upgrade all
                                          iob stop
                                          iob upgrade self
                                          iob start
                                          
                                          Kenji 2 Replies Last reply Reply Quote 0
                                          • Kenji
                                            Kenji @Thomas Braun last edited by

                                            @thomas-braun 50% ... 🙂

                                            Thomas Braun 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

                                            774
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            52
                                            2319
                                            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