Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Fehlermeldung beim Versuch ioBroker zu stoppen

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Fehlermeldung beim Versuch ioBroker zu stoppen

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

      @thomas-braun

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

      1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @hg6806 last edited by 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.

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

          @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 Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @hg6806 last edited by

            @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 
            
            hg6806 1 Reply Last reply Reply Quote 0
            • hg6806
              hg6806 Most Active @Thomas Braun last edited by

              @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 Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @hg6806 last edited by

                @hg6806

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

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

                  @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 Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @hg6806 last edited by

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

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

                      @thomas-braun

                      pi@RasPi4-VNC:/opt/iobroker/backups $ dir
                      2024_09_08-16_33_32_backupiobroker.tar.gz
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @hg6806 last edited by

                        @hg6806

                        ls -la /opt/iobroker/backups
                        

                        damit man die Rechte sieht.

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

                          @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 Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @hg6806 last edited by

                            @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
                            
                            hg6806 1 Reply Last reply Reply Quote 0
                            • hg6806
                              hg6806 Most Active @Thomas Braun last edited by

                              @thomas-braun

                              Verstehe ich leider alles nicht

                              pi@RasPi4-VNC:/opt/iobroker/backups $ chown iobroker:iobroker /opt/iobroker/backups/2024_09_08-16_33_32_backupiobroker.tar.gz
                              chown: changing ownership of '/opt/iobroker/backups/2024_09_08-16_33_32_backupiobroker.tar.gz': Operation not permitted
                              
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @hg6806 last edited by

                                @hg6806 sagte in Fehlermeldung beim Versuch ioBroker zu stoppen:

                                Operation not permitted

                                Dann per root command:

                                sudo chown iobroker:iobroker /opt/iobroker/backups/2024_09_08-16_33_32_backupiobroker.tar.gz
                                
                                hg6806 1 Reply Last reply Reply Quote 0
                                • hg6806
                                  hg6806 Most Active @Thomas Braun last edited by

                                  @thomas-braun

                                  Irgendwie klappt das alles nicht.
                                  Hatte noch ein anderes Backup ausprobiert, gleiches Verhalten.
                                  Ich breche hier ab und mache morgen noch einmal eine Neuinstallation nach eurer Anleitung.
                                  Hoffe dass es dann funktioniert.

                                  pi@RasPi4-VNC:/opt/iobroker/backups $ sudo chown iobroker:iobroker /opt/iobroker/backups/iobroker_2024_09_26-02_00_10_backupiobroker.tar.gz
                                  pi@RasPi4-VNC:/opt/iobroker/backups $ cd..
                                  bash: cd..: command not found
                                  pi@RasPi4-VNC:/opt/iobroker/backups $ cd
                                  pi@RasPi4-VNC:~ $ cd /opt/iobroker
                                  pi@RasPi4-VNC:/opt/iobroker $ iob restore 0
                                  pi@RasPi4-VNC:/opt/iobroker $ dir
                                  backups  INSTALLER_INFO.txt  iob  iobroker  iobroker-data  log  node_modules  package.json  package-lock.json
                                  pi@RasPi4-VNC:/opt/iobroker $
                                  
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @hg6806 last edited by

                                    @hg6806 sagte in Fehlermeldung beim Versuch ioBroker zu stoppen:

                                    Hoffe dass es dann funktioniert.

                                    Der Installer sollte jetzt wieder funktionieren. Die fehlerhafte Codepassage ist raus.

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

                                      @thomas-braun

                                      Moin!

                                      Nach Neuinstallation läuft wieder alles. Auch der Restore.

                                      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

                                      905
                                      Online

                                      31.6k
                                      Users

                                      79.5k
                                      Topics

                                      1.3m
                                      Posts

                                      3
                                      28
                                      731
                                      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