Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Fehlermeldung beim Versuch ioBroker zu stoppen

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

Fehlermeldung beim Versuch ioBroker zu stoppen

Scheduled Pinned Locked Moved ioBroker Allgemein
28 Posts 3 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hg6806H hg6806

    @ro75

    Keine Ahnung, habe es ganz normal über folgenden Befehl installiert:

    curl -sLf https://iobroker.net/install.sh | bash -
    

    Wie immer eigentlich.

    Ro75R Online
    Ro75R Online
    Ro75
    wrote on last edited by
    #4

    @hg6806 wie immer? Was für ein System, Details bitte

    Ro75

    SERVER = Beelink U59 16GB DDR4 RAM 512GB SSD, FB 7490, FritzDect 200+301+440, ConBee II, Zigbee Aqara Sensoren + NOUS A1Z, NOUS A1T, Philips Hue ** ioBroker, REDIS, influxdb2, Grafana, PiHole, Plex-Mediaserver, paperless-ngx (Docker), MariaDB + phpmyadmin *** VIS-Runtime = Intel NUC 8GB RAM 128GB SSD + 24" Touchscreen

    1 Reply Last reply
    0
    • hg6806H hg6806

      @ro75

      Keine Ahnung, habe es ganz normal über folgenden Befehl installiert:

      curl -sLf https://iobroker.net/install.sh | bash -
      

      Wie immer eigentlich.

      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      wrote on last edited by
      #5

      @hg6806

      Alles gut...

      cat /usr/bin/iobroker
      

      sagt?

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      hg6806H 1 Reply Last reply
      0
      • Thomas BraunT Thomas Braun

        @hg6806

        Alles gut...

        cat /usr/bin/iobroker
        

        sagt?

        hg6806H Offline
        hg6806H Offline
        hg6806
        Most Active
        wrote on last edited by
        #6

        @thomas-braun

        pi@RasPi4-VNC:~ $ cat /usr/bin/iobroker
        #!/usr/bin/bash
        if [ "1000" = 0 ] && [[  != *--allow-root* ]]; then
        echo -e "\n*** ioBroker is not supposed to be run as root. Sorry ***\nOnly a user that is member of iobroker group can execute ioBroker commands.\nPlease read the Documentation on how to set up such a user, if not done yet.\nOnly in very special cases you can run iobroker with --allow-root option.\nPlease note that this option may be disabled soon, so please change your setup accordingly now."
        exit;
        fi;
        if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then
        sudo systemctl $1 iobroker
        elif [ "$1" = "fix" ]; then
        curl -sL https://iobroker.net/fix.sh | bash -
        elif [ "$1" = "nodejs-update" ]; then
        sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh "$2"
        elif [ "$1" = "diag" ]; then
          sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker/iob_diag.log
        else
        sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
        fi
        
        
        Thomas BraunT 1 Reply Last reply
        0
        • hg6806H hg6806

          @thomas-braun

          pi@RasPi4-VNC:~ $ cat /usr/bin/iobroker
          #!/usr/bin/bash
          if [ "1000" = 0 ] && [[  != *--allow-root* ]]; then
          echo -e "\n*** ioBroker is not supposed to be run as root. Sorry ***\nOnly a user that is member of iobroker group can execute ioBroker commands.\nPlease read the Documentation on how to set up such a user, if not done yet.\nOnly in very special cases you can run iobroker with --allow-root option.\nPlease note that this option may be disabled soon, so please change your setup accordingly now."
          exit;
          fi;
          if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then
          sudo systemctl $1 iobroker
          elif [ "$1" = "fix" ]; then
          curl -sL https://iobroker.net/fix.sh | bash -
          elif [ "$1" = "nodejs-update" ]; then
          sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh "$2"
          elif [ "$1" = "diag" ]; then
            sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker/iob_diag.log
          else
          sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
          fi
          
          
          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          wrote on last edited by Thomas Braun
          #7

          @hg6806

          Änder mal die Zeile 3 ab:

          if [ "$(id -u)" = 0 ] && [[ $* != *--allow-root* ]]; then
          

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          hg6806H 1 Reply Last reply
          0
          • Thomas BraunT Thomas Braun

            @hg6806

            Änder mal die Zeile 3 ab:

            if [ "$(id -u)" = 0 ] && [[ $* != *--allow-root* ]]; then
            
            hg6806H Offline
            hg6806H Offline
            hg6806
            Most Active
            wrote on last edited by
            #8

            @thomas-braun

            Wie und was denn ändern?
            Und wieso habe ich jetzt hier überhaupt ein Problem?
            Das hat doch sonst immer geklappt?

            Thomas BraunT 2 Replies Last reply
            0
            • hg6806H hg6806

              @thomas-braun

              Wie und was denn ändern?
              Und wieso habe ich jetzt hier überhaupt ein Problem?
              Das hat doch sonst immer geklappt?

              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              wrote on last edited by
              #9

              @hg6806 sagte in Fehlermeldung beim Versuch ioBroker zu stoppen:

              Wie und was denn ändern?

              Steht doch da. Im Grunde aus der 1000 ein $(id -u) machen.
              Heute ist neuer Code für iob diag, iob nodejs-update und den Installer hochgeladen worden. Die Passage, die da jetzt bei dir Probleme bereitet sollte eigentlich auch anders aussehen.

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              hg6806H 1 Reply Last reply
              0
              • Thomas BraunT Thomas Braun

                @hg6806 sagte in Fehlermeldung beim Versuch ioBroker zu stoppen:

                Wie und was denn ändern?

                Steht doch da. Im Grunde aus der 1000 ein $(id -u) machen.
                Heute ist neuer Code für iob diag, iob nodejs-update und den Installer hochgeladen worden. Die Passage, die da jetzt bei dir Probleme bereitet sollte eigentlich auch anders aussehen.

                hg6806H Offline
                hg6806H Offline
                hg6806
                Most Active
                wrote on last edited by
                #10

                @thomas-braun

                Sorry, bin kein Linuxer. Nochmal die Frage wie ich was ändern soll. Welche Datei und wie?

                Thomas BraunT 1 Reply Last reply
                0
                • hg6806H hg6806

                  @thomas-braun

                  Wie und was denn ändern?
                  Und wieso habe ich jetzt hier überhaupt ein Problem?
                  Das hat doch sonst immer geklappt?

                  Thomas BraunT Online
                  Thomas BraunT Online
                  Thomas Braun
                  Most Active
                  wrote on last edited by
                  #11

                  @hg6806

                  Alternativ kannst du auch die Zeilen 3-6 komplett löschen.

                  Linux-Werkzeugkasten:
                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                  NodeJS Fixer Skript:
                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                  hg6806H 1 Reply Last reply
                  0
                  • Thomas BraunT Thomas Braun

                    @hg6806

                    Alternativ kannst du auch die Zeilen 3-6 komplett löschen.

                    hg6806H Offline
                    hg6806H Offline
                    hg6806
                    Most Active
                    wrote on last edited by
                    #12

                    @thomas-braun

                    Aus der Datei /usr/bin/bash oder wie?

                    1 Reply Last reply
                    0
                    • hg6806H hg6806

                      @thomas-braun

                      Sorry, bin kein Linuxer. Nochmal die Frage wie ich was ändern soll. Welche Datei und wie?

                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      wrote on last edited by Thomas Braun
                      #13

                      @hg6806

                      Die Datei /usr/bin/iobroker bzw. deren Linktarget /opt/iobroker/iobroker mit dem Editor deiner Wahl bearbeiten.

                      sudo -H -u iobrokoer nano  /usr/bin/iobroker
                      

                      wäre eine Möglichkeit.

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      hg6806H 1 Reply Last reply
                      0
                      • Thomas BraunT Thomas Braun

                        @hg6806

                        Die Datei /usr/bin/iobroker bzw. deren Linktarget /opt/iobroker/iobroker mit dem Editor deiner Wahl bearbeiten.

                        sudo -H -u iobrokoer nano  /usr/bin/iobroker
                        

                        wäre eine Möglichkeit.

                        hg6806H Offline
                        hg6806H Offline
                        hg6806
                        Most Active
                        wrote on last edited by
                        #14

                        @thomas-braun

                        Noch immer Fehler.

                        pi@RasPi4-VNC:~ $ iob stop
                        /usr/bin/iob: line 2: conditional binary operator expected
                        /usr/bin/iob: line 2: syntax error near `*--allow-root*'
                        /usr/bin/iob: line 2: `if [ "$(id -u)" = 0 ] && [[  != *--allow-root* ]]; then'
                        
                        
                        Thomas BraunT 1 Reply Last reply
                        0
                        • hg6806H hg6806

                          @thomas-braun

                          Noch immer Fehler.

                          pi@RasPi4-VNC:~ $ iob stop
                          /usr/bin/iob: line 2: conditional binary operator expected
                          /usr/bin/iob: line 2: syntax error near `*--allow-root*'
                          /usr/bin/iob: line 2: `if [ "$(id -u)" = 0 ] && [[  != *--allow-root* ]]; then'
                          
                          
                          Thomas BraunT Online
                          Thomas BraunT Online
                          Thomas Braun
                          Most Active
                          wrote on last edited by
                          #15

                          @hg6806 sagte in Fehlermeldung beim Versuch ioBroker zu stoppen:

                          Noch immer Fehler.

                          Ja, da fehlt noch ein $* vor dem !=
                          Die korrekte Zeile muss lauten:

                          if [ "$(id -u)" = 0 ] && [[ $* != *--allow-root* ]]; then 
                          

                          Linux-Werkzeugkasten:
                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                          NodeJS Fixer Skript:
                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                          hg6806H 1 Reply Last reply
                          0
                          • Thomas BraunT Thomas Braun

                            @hg6806 sagte in Fehlermeldung beim Versuch ioBroker zu stoppen:

                            Noch immer Fehler.

                            Ja, da fehlt noch ein $* vor dem !=
                            Die korrekte Zeile muss lauten:

                            if [ "$(id -u)" = 0 ] && [[ $* != *--allow-root* ]]; then 
                            
                            hg6806H Offline
                            hg6806H Offline
                            hg6806
                            Most Active
                            wrote on last edited by
                            #16

                            @thomas-braun

                            Hat endlich geklappt, allerdings kann ich kein Restore ausführen zumindest passiert nichts:

                            pi@RasPi4-VNC:~ $ cd /opt/iobroker
                            pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                            pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                            pi@RasPi4-VNC:/opt/iobroker $
                            
                            
                            Thomas BraunT 1 Reply Last reply
                            0
                            • hg6806H hg6806

                              @thomas-braun

                              Hat endlich geklappt, allerdings kann ich kein Restore ausführen zumindest passiert nichts:

                              pi@RasPi4-VNC:~ $ cd /opt/iobroker
                              pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                              pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                              pi@RasPi4-VNC:/opt/iobroker $
                              
                              
                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              wrote on last edited by
                              #17

                              @hg6806

                              Den user 'pi' hast du aus- und wieder eingeloggt?

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              hg6806H 1 Reply Last reply
                              0
                              • Thomas BraunT Thomas Braun

                                @hg6806

                                Den user 'pi' hast du aus- und wieder eingeloggt?

                                hg6806H Offline
                                hg6806H Offline
                                hg6806
                                Most Active
                                wrote on last edited by
                                #18

                                @thomas-braun

                                Neu gebootet, das Gleiche

                                pi@RasPi4-VNC:~ $ cd /opt/iobroker
                                pi@RasPi4-VNC:/opt/iobroker $ iob stop
                                pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                                pi@RasPi4-VNC:/opt/iobroker $
                                
                                
                                Thomas BraunT 1 Reply Last reply
                                0
                                • hg6806H hg6806

                                  @thomas-braun

                                  Neu gebootet, das Gleiche

                                  pi@RasPi4-VNC:~ $ cd /opt/iobroker
                                  pi@RasPi4-VNC:/opt/iobroker $ iob stop
                                  pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                                  pi@RasPi4-VNC:/opt/iobroker $
                                  
                                  
                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  wrote on last edited by
                                  #19

                                  @hg6806 Liegt denn überhaupt ein backup in /opt/iobroker/backups?

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  hg6806H 1 Reply Last reply
                                  0
                                  • Thomas BraunT Thomas Braun

                                    @hg6806 Liegt denn überhaupt ein backup in /opt/iobroker/backups?

                                    hg6806H Offline
                                    hg6806H Offline
                                    hg6806
                                    Most Active
                                    wrote on last edited by
                                    #20

                                    @thomas-braun

                                    pi@RasPi4-VNC:/opt/iobroker/backups $ dir
                                    2024_09_08-16_33_32_backupiobroker.tar.gz
                                    
                                    
                                    Thomas BraunT 1 Reply Last reply
                                    0
                                    • hg6806H hg6806

                                      @thomas-braun

                                      pi@RasPi4-VNC:/opt/iobroker/backups $ dir
                                      2024_09_08-16_33_32_backupiobroker.tar.gz
                                      
                                      
                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      wrote on last edited by
                                      #21

                                      @hg6806

                                      ls -la /opt/iobroker/backups
                                      

                                      damit man die Rechte sieht.

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      hg6806H 1 Reply Last reply
                                      0
                                      • Thomas BraunT Thomas Braun

                                        @hg6806

                                        ls -la /opt/iobroker/backups
                                        

                                        damit man die Rechte sieht.

                                        hg6806H Offline
                                        hg6806H Offline
                                        hg6806
                                        Most Active
                                        wrote on last edited by
                                        #22

                                        @thomas-braun

                                        pi@RasPi4-VNC:/opt/iobroker/backups $ ls -la /opt/iobroker/backups
                                        total 31312
                                        drwxrwxr-x+ 2 iobroker iobroker     4096 Sep 27 21:10 .
                                        drwxrwsrwx+ 6 iobroker iobroker     4096 Sep 27 20:42 ..
                                        -rw-rw-r--+ 1 pi       pi       32054686 Sep 27 21:10 2024_09_08-16_33_32_backupiobroker.tar.gz
                                        pi@RasPi4-VNC:/opt/iobroker/backups $
                                        
                                        
                                        Thomas BraunT 1 Reply Last reply
                                        0
                                        • hg6806H hg6806

                                          @thomas-braun

                                          pi@RasPi4-VNC:/opt/iobroker/backups $ ls -la /opt/iobroker/backups
                                          total 31312
                                          drwxrwxr-x+ 2 iobroker iobroker     4096 Sep 27 21:10 .
                                          drwxrwsrwx+ 6 iobroker iobroker     4096 Sep 27 20:42 ..
                                          -rw-rw-r--+ 1 pi       pi       32054686 Sep 27 21:10 2024_09_08-16_33_32_backupiobroker.tar.gz
                                          pi@RasPi4-VNC:/opt/iobroker/backups $
                                          
                                          
                                          Thomas BraunT Online
                                          Thomas BraunT Online
                                          Thomas Braun
                                          Most Active
                                          wrote on last edited by
                                          #23

                                          @hg6806

                                          Der iobroker darf mit Dateien, die dem pi gehören nix anfangen.

                                          chown iobroker:iobroker /opt/iobroker/backups/2024_09_08-16_33_32_backupiobroker.tar.gz
                                          

                                          Linux-Werkzeugkasten:
                                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                          NodeJS Fixer Skript:
                                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                          hg6806H 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          594

                                          Online

                                          32.4k

                                          Users

                                          81.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe