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

      @rene55

      Das macht vermutlich jede Distro etwas anders.

      Ich glaube, der iob-Installer biegt die Rechte passend, allerdings nur wenn der ausführende User nicht ohnehin schon 'iobroker' lautet. Deswegen ja auch immer der Hinweis, das 'iobroker' eine schlechte Idee für einen Standard-User ist.

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

        @thomas-braun sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:
        Ich nutze ja die fertigen Images von Proxmox. Da ist das wohl noch nicht. Ich frag auch, weil du oben von

        aktuellen systemd-Kisten gibt es die RunLevel nicht mehr

        sprachst und ich aktuell den Runlevel 5 habe. Aber ich vermute mal, das gehört weniger hier hin als eher in einen Tomas-Braun_Linux-Kurs.😊

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

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

          sprachst und ich aktuell den Runlevel 5 habe.

          Dein System ist vermutlich auch nicht 'bleeding edge'. Das wird bei Debian erst mit dem kommmenden Release 'Trixie' im nächsten Jahr evtl. eingeführt. Debian mahlt ja bei sowas immer sehr langsam und vorsichtig.
          Auf meinem Arch-Linux Laptop gibt es keine RunLevel mehr:

          [thomas@roamer ioBroker]$ who -r
          [thomas@roamer ioBroker]$ 
          
          Rene55 1 Reply Last reply Reply Quote 0
          • Rene55
            Rene55 @Thomas Braun last edited by

            @thomas-braun Mit 'bleeding edge' kann ich nichts anfangen - hab ich noch nie gehört. Ich bin da auf das angewiesen, was proxmox so anbietet, Arch-Linux gibt es da anscheinend nicht.

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

              @rene55

              OT: Arch Linux ist ein 'rolling release', d. h. da hast du meist innerhalb von wenigen Stunden/Tagen die neuste Sorftware auf dem Rechner. Mit allen Vor- und Nachteilen. Das ganze ist natürlich dann auch weniger gut getestet. Debian lässt die Software u. U. Jahre reifen und haut nur alle zwei Jahre ein Release raus. Das ist natürlich gut abgehangen und besser getestet, ideal im Serverbetrieb.

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

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

                Ich glaube, der iob-Installer biegt die Rechte passend, allerdings nur wenn der ausführende User nicht ohnehin schon 'iobroker' lautet. Deswegen ja auch immer der Hinweis, das 'iobroker' eine schlechte Idee für einen Standard-User ist.

                So ist es. Fix für den Fixer ist eingereicht. Inkl. 'useradd' und 'chpasswd'.

                https://github.com/ioBroker/ioBroker/pull/577

                Grothesk242 created this issue in ioBroker/ioBroker

                closed Fixed user creation & invalidate --allow-root #577

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

                  @arteck Okk ... also ich hab mal geschaut und die FIles in /opt/iobroker/* hat der fixer noch NIE von owner her geradegebogen ... der macht das nur im /home/iobroekr/-npm. Im /opt/iobroker werden default ACL gesetzt sodass die iobroker Gruppe immer zugreifen darf.

                  Wenn im Fixer log ein "ACL enabled: true" steht dann war das erfolgreich und es ist nicht mehr nötig da Owner zu fixen. Also Ist das ok wenn der Owner ggf anders ist. Es sollte so oder so keine Probleme geben. Falls doch müsste man nochmal schauen.

                  Ergo ... all fine

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

                    @apollon77

                    Hier macht meine Kiste das aber:

                    echad@chet:/opt/iobroker $ getfacl ichgehoereroot 
                    # file: ichgehoereroot
                    # owner: root
                    # group: root
                    user::rw-
                    group::r-x                      #effective:r--
                    group:iobroker:rwx              #effective:rw-
                    mask::rw-
                    other::r--
                    echad@chet:/opt/iobroker $ echo "Es lief der Fixer"
                    Es lief der Fixer
                    echad@chet:/opt/iobroker $ 
                    echad@chet:/opt/iobroker $ getfacl ichgehoereroot 
                    # file: ichgehoereroot
                    # owner: iobroker
                    # group: iobroker
                    user::rw-
                    group::r-x
                    group:iobroker:rwx
                    mask::rwx
                    other::r--
                    

                    Edit:
                    Und auch fiiles, die zuvor ohne ACLs gewesen sind bekommen in /opt/iobroker via Fixer die neuen Gruppen verpasst:

                    echad@chet:/opt/iobroker $ getfacl ichgehoereechad 
                    # file: ichgehoereroot
                    # owner: echad
                    # group: echad
                    user::rw-
                    group::rw-
                    other::r--
                    
                    echad@chet:/opt/iobroker $ iob fix
                    ............
                    echad@chet:/opt/iobroker $ getfacl ichgehoereechad 
                    # file: ichgehoereechad
                    # owner: iobroker
                    # group: iobroker
                    user::rw-
                    group::rw-
                    group:iobroker:rwx
                    mask::rwx
                    other::r--
                    
                    echad@chet:/opt/iobroker $
                    
                    1 Reply Last reply Reply Quote 0
                    • Chaot
                      Chaot last edited by

                      Bei mir immer noch das gleiche Problem:

                      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:~$ iob start
                      

                      Gerade gemerkt. Scheinbar bin ich auf JS Version 7.0.1

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

                        @chaot

                        Kannst du denn iob diag ausführen?

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

                          @thomas-braun
                          Nein. Kommt in rot die Liste der Befehle

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

                            @chaot

                            ls -l /home
                            

                            sagt? Kannst du

                            iob status
                            

                            ausführen?

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

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

                              iob status

                              haus@ioBroker:~$ ls -l /home
                              total 8
                              drwxr-xr-x 11 haus     haus     4096 Oct 21 21:38 haus
                              drwxr-xr-x 11 iobroker iobroker 4096 May 22 19:18 iobroker
                              haus@ioBroker:~$ iob status
                              iobroker is running on this host.
                              
                              
                              Objects type: jsonl
                              States  type: redis
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Chaot last edited by Thomas Braun

                                @chaot

                                ls -la /home/iobroker/
                                id
                                
                                Chaot 1 Reply Last reply Reply Quote 0
                                • Chaot
                                  Chaot @Thomas Braun last edited by

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

                                  ls -la /home/iobroker/
                                  id

                                  haus@ioBroker:~$ ls -la /home/iobroker/
                                  total 180
                                  drwxr-xr-x 11 iobroker iobroker  4096 May 22 19:18 .
                                  drwxr-xr-x  4 root     root      4096 Mar  6  2019 ..
                                  drwxr-xr-x  3 iobroker iobroker  4096 Mar  7  2019 .anyproxy
                                  -rw-r--r--  1 iobroker iobroker   220 Apr  4  2018 .bash_logout
                                  -rw-r--r--  1 iobroker iobroker  3771 Apr  4  2018 .bashrc
                                  drwxr-xr-x  7 iobroker iobroker  4096 Apr  6  2024 .cache
                                  drwx------  4 iobroker iobroker  4096 Jan 17  2021 .config
                                  -rw-rw-r--  1 iobroker iobroker 23305 May 22 19:23 .diag.sh
                                  drwxr-xr-x  2 iobroker iobroker  4096 Feb  4  2022 .electron
                                  drwxr-xr-x  2 iobroker iobroker  4096 Mar 27  2020 .lgtv2
                                  drwx------  3 iobroker iobroker  4096 Jan 17  2021 .local
                                  drwxr-xr-x  6 iobroker iobroker  4096 Aug 19  2019 .node-gyp
                                  -rw-rw-r--  1 iobroker iobroker 16123 May 22 19:30 .nodejs-update.sh
                                  drwxr-xr-x  9 iobroker iobroker  4096 Apr 19  2024 .npm
                                  drwx------  3 iobroker iobroker  4096 Feb  7  2022 .pki
                                  -rw-r--r--  1 iobroker iobroker   807 Apr  4  2018 .profile
                                  -rw-rw-r--  1 iobroker iobroker 83818 May 22 19:27 iob_diag.log
                                  haus@ioBroker:~$ id
                                  uid=1001(haus) gid=1001(haus) groups=1001(haus),1000(iobroker)
                                  haus@ioBroker:~$ 
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Chaot last edited by

                                    @chaot

                                    Da funktioniert irgendwie der Abruf von fix und diag nicht. Kannst du denn

                                    iob nodejs-update
                                    

                                    ausführen?
                                    Eigentlich sollten da nämlich immer aktuelle Downloads liegen:
                                    Bei mir:

                                    -rwxr-x---  1 iobroker iobroker 39757 Oct 23 13:28 .diag.sh
                                    -rwxr-x---  1 iobroker iobroker 45390 Oct 23 13:27 .fix.sh
                                    -rw-r--r--  1 iobroker iobroker 32474 Oct 23 13:29 iob_diag.log
                                    -rwxr-x---  1 iobroker iobroker 18018 Oct 20 20:41 .nodejs-update.sh
                                    
                                    Chaot 1 Reply Last reply Reply Quote 0
                                    • Chaot
                                      Chaot @Thomas Braun last edited by

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

                                      iob nodejs-update

                                      haus@ioBroker:~$ iob nodejs-update
                                      iobroker nodejs-update [<major-version>]
                                      
                                      Upgrade the Node.JS installation to the current LTS
                                      
                                      Options:
                                        --help  Show help  [boolean]
                                      

                                      Ich bin wieder runter auf die 6.0.11.
                                      Aber irgendwas ist da verbogen

                                      haus@ioBroker:~$ iob stop
                                      Could not send "SIGTERM" to process 201: kill EPERM
                                      No "killall.sh" script found. Just stop.
                                      ^[[Ahaus@ioBroker:~$         
                                      haus@ioBroker:~$ iob fix
                                      iobroker fix
                                      
                                      Execute the installation fixer script, this updates your ioBroker installation
                                      
                                      Options:
                                        --help  Show help  [boolean]
                                      haus@ioBroker:~$ iob start
                                      Controller is already running with pid 201
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Chaot last edited by

                                        @chaot

                                        Versuch mal den Fixer direkt zu laden:

                                        curl -fsL https://iobroker.net/fix.sh | bash -
                                        
                                        Chaot 1 Reply Last reply Reply Quote 0
                                        • Chaot
                                          Chaot @Thomas Braun last edited by

                                          @thomas-braun
                                          könnte klappen, wenn ich den iobroker stoppen kann

                                          haus@ioBroker:~$ iob stop
                                          Could not send "SIGTERM" to process 201: kill EPERM
                                          No "killall.sh" script found. Just stop.
                                          haus@ioBroker:~$ curl -fsL https://iobroker.net/fix.sh | bash -
                                          
                                          Your system is booting into 'graphical.target', which means that a user interface or desktop is available. Usually a server is running without a desktop to have more RAM available. Do you want to switch to 'multi-user.target'? (y/N)
                                          library: loaded
                                          Library version=2024-10-22
                                          ioBroker or some processes are still running:
                                          201 iobroker.js-con
                                          408 io.admin.0
                                          419 io.javascript.0
                                          449 io.email.0
                                          478 io.influxdb.0
                                          513 io.whatsapp-cmb
                                          528 io.history.0
                                          539 io.tr-064.0
                                          558 io.sonoff.0
                                          637 io.proxmox.0
                                          666 io.backitup.0
                                          816 io.nut.0
                                          831 io.alexa2.0
                                          842 io.unifi.0
                                          873 io.ems-esp.0
                                          888 io.drag-indicat
                                          903 io.tuya.0
                                          918 io.web.0
                                          972 io.tankerkoenig
                                          1178 io.fritzdect.0
                                          1185 io.phantomjs.0
                                          1263 io.nina.0
                                          1309 io.trashschedul
                                          1401 io.sourceanalyt
                                          1438 io.wled.0
                                          1453 io.vis-inventwo
                                          1468 io.smartcontrol
                                          1479 io.linux-contro
                                          1498 io.time-switch.
                                          1564 io.upnp.0
                                          1575 io.mytime.0
                                          1586 io.ws.0
                                          1620 io.rssfeed.0
                                          1632 io.alexa-timer-
                                          1647 io.wiegand-tcpi
                                          1662 io.drops-weathe
                                          Please stop them first and try again!
                                          haus@ioBroker:~$ 
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Chaot last edited by

                                            @chaot

                                            sudo systemctl stop iobroker
                                            
                                            Chaot 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

                                            911
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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