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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Änderungen iob CLI/Installer/Fixer mit Root Accounts

    This topic has been deleted. Only users with topic management privileges can see it.
    • 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
                        • Thomas Braun
                          Thomas Braun Most Active @arteck last edited by

                          Kann ich immer noch nicht nachstellen.

                          echad@chet:~ $ find /opt/iobroker/ -user root
                          echad@chet:~ $
                          

                          Dann läuft der fix.
                          Danach:

                          echad@chet:~ $ find /opt/iobroker/ -user root
                          echad@chet:~ $
                          

                          Nix root hier.

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

                            @arteck
                            @thomas-braun

                            Die falschen Zuordnungen durften durch die Installation vom js-controller 7.0.1 passiert sein. Nach nochmaliger Ausführung des Fixers passt wieder alles :

                            ich@iobroker:/opt/iobroker/node_modules/iobroker.js-controller$ ls -l
                            total 116
                            -rw-rwxr--+ 1 iobroker iobroker  1135 Oct 22 17:40 LICENSE
                            -rw-rwxr--+ 1 iobroker iobroker   193 Oct 22 17:40 README.md
                            drwxrwxr-x+ 4 iobroker iobroker  4096 Oct 22 17:40 build
                            drwxrwxr-x+ 2 iobroker iobroker  4096 Oct 22 17:40 conf
                            -rw-rwxr--+ 1 iobroker iobroker   188 Oct 22 17:40 controller.js
                            -rw-rwxr--+ 1 iobroker iobroker 77166 Oct 22 17:40 io-package.json
                            -rwxrwxr-x+ 1 iobroker iobroker    66 Oct 22 17:40 iobroker.js
                            drwxrwxr-x+ 5 iobroker iobroker  4096 Oct 22 17:40 node_modules
                            -rw-rwxr--+ 1 iobroker iobroker  3611 Oct 22 17:40 package.json
                            -rw-rw-r--+ 1 iobroker iobroker    43 Oct 22 18:30 pids.txt
                            drwxrwxr-x+ 2 iobroker iobroker  4096 Oct 22 17:40 tmp
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Dr. Bakterius last edited by

                              @dr-bakterius sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

                              Die falschen Zuordnungen durften durch die Installation vom js-controller 7.0.1 passiert sein.

                              Ja, das muss als root erfolgen. Aber eigentlich sollten die Rechte dann auch wieder gerade gerückt werden. Ist aber wenn dann ein Issue des js-controllers.

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

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

                                Die Befehle werden immer noch nicht gefunden.

                                Der Fix ist auch noch nicht live.

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

                                dito

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

                                  @thomas-braun

                                  Bei mir liegen die Rechte nach iob fix auch durchgängig beim user iobroker.

                                  thomas@iobroker:~$ iob -v
                                  6.0.11
                                  
                                  thomas@iobroker:~$ find /opt/iobroker/ -user root
                                  thomas@iobroker:~$
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Meister Mopper last edited by

                                    @meister-mopper sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

                                    Bei mir liegen die Rechte nach iob fix auch durchgängig beim user iobroker.

                                    So soll es sein.

                                    1 Reply Last reply Reply Quote 0
                                    • MartinP
                                      MartinP @isi07 last edited by

                                      Mir wurde beim Aufruf von iob diag erzählt ich hätte eine Linux Installation mit grafischer Oberfläche, ob das geändert werden solle.
                                      Der Dialog war aber verstümmelt, und ich konnte nix eingeben ...

                                      ist garantiert keine solche Installation (siehe Signatur)

                                      Thomas Braun Meister Mopper 3 Replies Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @MartinP last edited by Thomas Braun

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

                                        ich hätte eine Linux Installation mit grafischer Oberfläche,

                                        Eine Linux-Installation, deren BootTarget graphical.target ist.

                                        Der Dialog war aber verstümmelt, und ich konnte nix eingeben ...

                                        Eingeben kannst du da auch nix. Und inwiefern war die Ausgabe verstümmelt?

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Meister Mopper
                                          Meister Mopper @MartinP last edited by

                                          @martinp

                                          runlevel 5?

                                          thomas@iobroker:~$ who -r
                                                   Runlevel 3   2024-10-16 18:23
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Thomas Braun last edited by

                                            who -r
                                            systemctl get-default
                                            

                                            zeigt das Target bzw. das run level an.

                                            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

                                            931
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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