Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Änderungen iob CLI/Installer/Fixer mit Root Accounts

    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

    Änderungen iob CLI/Installer/Fixer mit Root Accounts

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

      @thomas-braun schön für dich.. hat seine GRÜNDE ... und nicht das Thema hier

      der FIXER läuft nicht richtig

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

        @thomas-braun Hat der geänderte Fixer etwas damit zu tun, dass ich den js-controller nicht von 6.0.11 auf 7.01 angehoben bekomme? Oder Issue auf 'lucy'?

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

          @rene55 sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

          Hat der geänderte Fixer etwas damit zu tun, dass ich den js-controller nicht von 6.0.11 auf 7.01 angehoben bekomme?

          Aus der GUI? Ja, das kann momentan sein. Fix ist unterwegs.
          Über Kommandozeile muss es gehen.

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

            @thomas-braun Ja, aus der GUI. Ok, dann warte ich und kann es direkt testen. Die Kiste läuft ja (in neu).

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

              Eine neue SVerison geht gerade live. Fie fixt plkitd undpasswd fehende Pakete und das "iob start -- allow-root" Problem ... start/stop/restart gehen wieder OHNE allow-root Parameter. Damit geht auch das Controller upgrade mit UI wieder

              Einmal "iob fix" bitte ausführen

              Ingo

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

                @arteck

                Kann ich nicht nachstellen.

                -rw-rwxr--+   1 root root      0 Oct 22 15:42 testfile_vom_root
                

                Nach dem Fixer:

                -rw-rwxr--+   1 iobroker iobroker      0 Oct 22 15:42 testfile_vom_root
                

                Passt also hier.

                arteck Dr. Bakterius 2 Replies Last reply Reply Quote 0
                • Rene55
                  Rene55 @apollon77 last edited by

                  @apollon77 Entweder war ich zu schnell oder ... . Leider gleicher Fehler wie vorhin (Unexpected token '<', "<!doctype "... is not valid JSON)

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

                    @thomas-braun lass den mal in masse laufen über 3k files und so 50 Ordner mit Unterordnern
                    aber ist ja ehh gefixt..laut Ingo

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

                      @arteck sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

                      lass den mal in masse laufen über 3k files und so 50 Ordner..

                      Die Anzahl an Dateien spielt keine Rolle, das wird rekursiv über den Dateibaum gekippt.

                      aber ist ja ehh gefixt..laut Ingo

                      Der hatte aber keinen Bezug zum Eigentümer einer Datei.

                      arteck 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @Rene55 last edited by

                        @rene55 Nee ich hab ne stelle vergessen 🙂 ... Neuer fix kommt gleich

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

                          Bei mir läuft der Fixer nicht mehr. Keine Ahnung warum

                          haus@ioBroker:~$ iob status
                          iobroker is running on this host.
                          
                          
                          Objects type: jsonl
                          States  type: redis
                          haus@ioBroker:~$ iob stop
                          Could not send "SIGTERM" to process 203: kill EPERM
                          No "killall.sh" script found. Just stop.
                          haus@ioBroker:~$ iob fix
                          iobroker fix
                          
                          Execute the installation fixer script, this updates your ioBroker installation
                          
                          Options:
                            --help  Show help  [boolean]
                          haus@ioBroker:~$ 
                          

                          Controler Update auf 7.0.1 ist fehlgeschlagen. Dann wollte ich den Fixer laufen lassen und bekam diese Meldung.Jetzt bin ich auf 7.0.0 zurück und habe immer noch die Meldung.

                          apollon77 1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 @Chaot last edited by

                            @chaot Ja Fix kommt gleich.

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

                              Sooooo, ok bitte alle mit issues nochmal "Iob fix" ausführen ... danach bitte nochmal iobroker upgrade versuchen, sollte jetzt wieder über UI tun. Danke für check und sorry für die Issues.

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

                                @thomas-braun na ja irgendwo ist der ausgestiegen

                                der neue.. der alte funktionierte fix.sh

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

                                  @arteck

                                  Die aktuellen Änderungen haben aber den Code an der Stelle gar nicht angepackt.

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

                                    @apollon77 Danke, läuft. Upgrade per GUI auf 7.0.1 hat funktioniert.

                                    1 Reply Last reply Reply Quote 1
                                    • isi07
                                      isi07 @apollon77 last edited by

                                      @apollon77 @Thomas-Braun
                                      Einen neuen User anlegen funktioniert bei mir noch nicht.
                                      Die Befehle werden immer noch nicht gefunden.

                                      iobroker@iobroker:~$ iob fix
                                      It seems you run ioBroker as root or the iobroker user. This is not recommended.
                                      For security reasons a default user should be created. This user will be enabled to temporarily switch to root via 'sudo'.
                                      A root login is not required in most Linux Distributions.
                                      Do you want to setup a user now? (y/N)
                                      Enter the username for a new user (Not 'root' and not 'iobroker'!): iobuser
                                      Enter the password for the new user:
                                      Confirm the password for the new user:
                                      Adding new user account...
                                      /home/iobroker/.fix.sh: line 59: useradd: command not found
                                      /home/iobroker/.fix.sh: line 60: chpasswd: command not found
                                      Please login with this newly created user account and restart the fixer.
                                      
                                      isi07 Thomas Braun MartinP 3 Replies Last reply Reply Quote 0
                                      • isi07
                                        isi07 @isi07 last edited by isi07

                                        @apollon77 @Thomas-Braun

                                        Fehlt in den Zeilen 59 und 60 vor useradd und chpasswd nicht ein "$SUDOX", um die Befehle mit sudo auszuführen?

                                                    # Add a new user account with sudo access and set the password
                                                    echo "Adding new user account..."
                                                    useradd -m -s /bin/bash -G adm,dialout,sudo,audio,video,plugdev,users,iobroker "$USERNAME"
                                                    echo "$USERNAME:$PASSWORD" | chpasswd
                                                    echo "Please login with this newly created user account and restart the fixer."
                                                    exit 1
                                        
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • Dr. Bakterius
                                          Dr. Bakterius Most Active @Thomas Braun last edited by

                                          @thomas-braun sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

                                          Passt also hier.

                                          Wie kann dann das sein (nach Ausführen des Fixers)? Und das ist nur ein Ordner von vielen!

                                          ich@iobroker:/opt/iobroker/node_modules/iobroker.js-controller$ ls -l
                                          total 116
                                          -rw-rw-r--+ 1 root     root      1135 Oct 22 17:40 LICENSE
                                          -rw-rw-r--+ 1 root     root       193 Oct 22 17:40 README.md
                                          drwxrwxr-x+ 4 root     root      4096 Oct 22 17:40 build
                                          drwxrwxr-x+ 2 root     root      4096 Oct 22 17:40 conf
                                          -rw-rw-r--+ 1 root     root       188 Oct 22 17:40 controller.js
                                          -rw-rw-r--+ 1 root     root     77166 Oct 22 17:40 io-package.json
                                          -rwxr-xr-x+ 1 root     root        66 Oct 22 17:40 iobroker.js
                                          drwxrwxr-x+ 5 root     root      4096 Oct 22 17:40 node_modules
                                          -rw-rw-r--+ 1 root     root      3611 Oct 22 17:40 package.json
                                          -rw-rw-r--+ 1 iobroker iobroker   260 Oct 22 18:06 pids.txt
                                          drwxrwxr-x+ 2 root     root      4096 Oct 22 17:40 tmp
                                          

                                          Ich könnte mich nicht erinnern je etwas unter root ausgeführt zu haben.

                                          arteck 1 Reply Last reply Reply Quote 0
                                          • arteck
                                            arteck Developer Most Active @Dr. Bakterius last edited by arteck

                                            @dr-bakterius hab ich auch .. tja Jung @Thomas-Braun da bin ich nicht alleine mit... rekursion hin oder her

                                            Thomas Braun Dr. Bakterius apollon77 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

                                            406
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            25
                                            202
                                            22587
                                            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