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

            @thomas-braun
            Danke. Deine "Zauberfinger" haben mir das wieder gerade gebogen

            
            ```bash
            ======================= SUMMARY =======================
                                   v.2024-10-19
            
            
              Static hostname: ioBroker
                    Icon name: computer-container
                      Chassis: container
               Virtualization: lxc
             Operating System: Ubuntu 20.04.6 LTS
                       Kernel: Linux 6.5.13-5-pve
                 Architecture: x86-64
            
            Installation:           lxc
            Kernel:                 x86_64
            Userland:               64 bit
            Timezone:               Europe/Berlin (CEST, +0200) 
            User-ID:                1001
            Display-Server:         false
            Boot Target:            multi-user.target
            
            Pending OS-Updates:     0
            Pending iob updates:    1
            
            Nodejs-Installation:
            /usr/bin/nodejs         v20.18.0
            /usr/bin/node           v20.18.0
            /usr/bin/npm            10.8.2
            /usr/bin/npx            10.8.2
            /usr/bin/corepack       0.29.3
            
            Recommended versions are nodejs  and npm 10.8.2
            nodeJS installation is correct
            
            MEMORY: 
                         total        used        free      shared  buff/cache   available
            Mem:           6.1G        3.7G        735M        1.0M        1.7G        2.4G
            Swap:          2.0G          0B        2.0G
            Total:         8.2G        3.7G        2.8G
            
            Active iob-Instances:   6
            Upgrade policy: none
            
            ioBroker Core:          js-controller           6.0.11
                                   admin                   7.2.6
            
            ioBroker Status:        iobroker is running on this host.
            
            
            Objects type: jsonl
            States  type: redis
            
            Status admin and web instance:
            + system.adapter.admin.0                  : admin                 : ioBroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
             system.adapter.admin.1                  : admin                 : ioBroker                                 - disabled, port: 80, bind: 0.0.0.0, run as: admin
             system.adapter.web.0                    : web                   : ioBroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
            
            Objects:                2
            States:                 29089
            
            Size of iob-Database:
            
            29M     /opt/iobroker/iobroker-data/objects.jsonl
            21M     /opt/iobroker/iobroker-data/objects.json.migrated
            21M     /opt/iobroker/iobroker-data/objects.json.bak.migrated
            8.0K    /opt/iobroker/iobroker-data/states.json
            4.0K    /opt/iobroker/iobroker-data/states.json.bak
            
            
            Operating System codenamed 'focal' is an aging Ubuntu release! Please upgrade to the latest LTS release 'noble' in due time!
            
            =================== END OF SUMMARY ====================
            

            === Mark text until here for copying ===

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

              @chaot

              Okay, iob stop / iob start sowie iob fix funktionieren jetzt wieder im direkten Aufruf?

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

                @thomas-braun Ja, alles wieder wie gewohnt. Der neue Fixer hat auch gleich die GUI ausgeschaltet (die mir nicht bewusst war). Funktioniert also alles wieder wie gewohnt.
                Herzlichen Dank

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

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

                  Der neue Fixer hat auch gleich die GUI ausgeschaltet (die mir nicht bewusst war).

                  Na ich hoffe aber, das du wenigstens gefragt wurdest und das aktiv per y-Taste bestätigt hast?

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

                    @thomas-braun Ja, aber beim ersten Durchlauf lief der fixer nach der Frage weiter. Beim zweiten Start des fixers hat er dann angehalten und auf das "y" gewartet.

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

                      @chaot

                      Ja, so ist es richtig.

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

                        @Thomas-Braun Ich hab gerade die aktuelle Version von iob fix ausgeführt und das Terminal im Hintergrund einige Zeit vergessen.
                        Anscheinend läuft ein Timer der irgendwann die Authentifizierung abbricht und als Fehlerhaft ausgibt.
                        Hat es einen Grund, das das Skript nicht einfach auf die Eingabe wartet oder aktiv abgebrochen werden muss mit Strg+C?

                        Bei einem zweiten Aufruf von iob fix war dann alles i.O.

                        ==========================================================================
                            Checking autostart (5/5)
                        ==========================================================================
                        
                        ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
                        Authentication is required to stop 'iobroker.service'.
                        Authenticating as: ,,, (proxmox)
                        Password: polkit-agent-helper-1: pam_authenticate failed: Authentication failure
                        Enabling autostart...
                        Autostart enabled!
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Feuersturm last edited by Thomas Braun

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

                          Hat es einen Grund, das das Skript nicht einfach auf die Eingabe wartet oder aktiv abgebrochen werden muss mit Strg+C?

                          Kann ich nicht steuern, das kommt so vom polkit/pam.
                          Allerdings könnte man die falsche Erfolgsmeldung Autostart enabled! anpassen.

                          1 Reply Last reply Reply Quote 0
                          • David G.
                            David G. last edited by David G.

                            Leider nur ein Screenshot, das c&p wollte irgendwie nicht...

                            Screenshot_20241026_125833_RaspController.jpg

                            Debian 12.

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @David G. last edited by

                              @david-g

                              Ja, ist bekannt. Fix ist 'in der Mache'.

                              David G. 1 Reply Last reply Reply Quote 1
                              • David G.
                                David G. @Thomas Braun last edited by

                                @thomas-braun

                                Wird das Script das auch irgendwann selber lösen können?

                                david@iobroker:~$ iob stop
                                david@iobroker:~$ iob fix
                                [sudo] Passwort für david:
                                bash: /home/iobroker/.fix.sh: Keine Berechtigung
                                david@iobroker:~$ sudo iob fix
                                
                                ***For security reasons ioBroker should not be run or administrated as root.***
                                By default only a user that is member of iobroker group can execute ioBroker commands.
                                Please read the Documentation on how to set up such a user, if not done yet.
                                Only in very special cases you can run iobroker commands by adding the --allow-root option at the end of the command line.
                                Please note that this option may be disabled in the future, so please change your setup accordingly now.
                                david@iobroker:~$
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @David G. last edited by

                                  @david-g sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

                                  Wird das Script das auch irgendwann selber lösen können?

                                  Was genau?
                                  Schau dir die Rechte an

                                  ls -l /home/iobroker/
                                  ls -l /home/iobroker/.fix.sh
                                  

                                  Vermutlich ist david nicht in der Gruppe 'iobroker' enthalten.

                                  groups
                                  

                                  zeigt die.

                                  David G. 1 Reply Last reply Reply Quote 0
                                  • David G.
                                    David G. @Thomas Braun last edited by

                                    @thomas-braun

                                    Dass ein User automatisch der erforderlichen Gruppe hinzugefügt werden kann.

                                    Ggf hat man ja schon einen User den man verwenden möchte anstatt einen neuen anzulegen.

                                    david@iobroker:~$ sudo ls -l /home/iobroker/
                                    [sudo] Passwort für david:
                                    insgesamt 24
                                    -rw-r--r-- 1 iobroker iobroker   122 21. Okt 22:17 iob_diag.log
                                    -rwxr--r-- 1 iobroker iobroker 15796 29. Sep 2023  iob_node_update
                                    drwxr-xr-x 5 iobroker iobroker  4096 31. Mär 2024  skripte
                                    david@iobroker:~$ sudo ls -l /home/iobroker/.fix.sh
                                    -rw-r--r-- 1 iobroker iobroker 45390 26. Okt 13:04 /home/iobroker/.fix.sh
                                    david@iobroker:~$ groups
                                    david sudo users
                                    david@iobroker:~$
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @David G. last edited by Thomas Braun

                                      @david-g sagte in Änderungen iob CLI/Installer/Fixer mit Root Accounts:

                                      Dass ein User automatisch der erforderlichen Gruppe hinzugefügt werden kann.

                                      Nee, das muss der sys admin selber für bestehende user machen.
                                      Sonst könnte ja ein user, der es gar nicht in die Gruppe reingehört einfach das Skript aufrufen und sich dann so hinzufügen.

                                      sudo usermod -a -G iobroker david
                                      

                                      Den david dann einmal ausloggen und wieder einloggen.

                                      1 Reply Last reply Reply Quote 0
                                      • David G.
                                        David G. last edited by

                                        @thomas-braun

                                        Kann aber gerne einen Thread auf machen.
                                        Ist ja eher sehr offtopic....
                                        Zumindest wenn der fixer es technisch nicht übernehmen kann.

                                        david@iobroker:~$ groups david
                                        david : david sudo users iobroker
                                        david@iobroker:~$ iob stop
                                        david@iobroker:~$ iob fix
                                        [sudo] Passwort für david:
                                        bash: /home/iobroker/.fix.sh: Keine Berechtigung
                                        david@iobroker:~$ sudo iob fix
                                        
                                        ***For security reasons ioBroker should not be run or administrated as root.***
                                        By default only a user that is member of iobroker group can execute ioBroker commands.
                                        Please read the Documentation on how to set up such a user, if not done yet.
                                        Only in very special cases you can run iobroker commands by adding the --allow-root option at the end of the command line.
                                        Please note that this option may be disabled in the future, so please change your setup accordingly now.
                                        david@iobroker:~$
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @David G. last edited by

                                          @david-g

                                          david wurde ausgeloggt?

                                          ls -l /home
                                          

                                          sagt?

                                          David G. 1 Reply Last reply Reply Quote 0
                                          • David G.
                                            David G. @Thomas Braun last edited by David G.

                                            @thomas-braun

                                            Ja, auch einmal als anderen User angemeldet.

                                            david@iobroker:~$ ls -l /home
                                            insgesamt 8
                                            drwx------ 4 david    david    4096 26. Okt 13:36 david
                                            drwx------ 9 iobroker iobroker 4096 26. Okt 12:54 iobroker
                                            david@iobroker:~$
                                            
                                            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

                                            559
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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