Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Backitup Probleme mit mount NAS

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Backitup Probleme mit mount NAS

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

      @thomas-braun
      Nun, ich bin der Sache etwas näher gekommen.

      Ich habe eine 1:1 Kopie der SSD-Platte vom 12.2.24.
      Mit der habe ich das system gestartet und gleich mal ein Backup mit dem Backitup Adapter gemacht. Funktionierte wie gewohnt.

      Anschließend machte ich ein

      iob fix
      

      was war die Folge?

      ==========================================================================
          Checking ioBroker user and directory permissions (2/5)
      ==========================================================================
      main: Zeile 702: /home/pi/temp_sudo_file: Keine Berechtigung
      Fixing directory permissions...
      This system does not support setting default permissions.
      Do not use npm to manually install adapters unless you know what you are doing!
      

      Dann machte ich nochmal ein Backup machen und sofort kam die ursprüngliche Meldung wie auf Post #1 beschrieben und das NAS wurde nicht gemountet.

      Also liegt das ganze an IOB FIX.
      Mit dem sollte eigentlich was repariert werden und nicht ein Problem erzeugt.
      Was steht da im Code auf Seite 702?

      Ein IOB FIX kann ich wohl nicht mehr rückgängig machen.

      Ich weiss leider nicht, wer in dieser Sache den nötigen Einblick hat, aber es muss doch einen Grund dafür geben.

      Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Snopy_16 last edited by Homoran

        @snopy_16 sagte in Backitup Probleme mit mount NAS:

        Also liegt das ganze an IOB FIX.

        wieso???

        wenn du

        @snopy_16 sagte in Backitup Probleme mit mount NAS:

        eine 1:1 Kopie der SSD-Platte vom 12.2.24.

        dabei einen vorhandenen Fehler klonst, an dem iob fix sich die Zähne ausbeisst, weil du z.b. vorher mit der Verwendung von root Rechte so verbogen hattest, dass selbst der Fixer das nicht mehr richten kann, dann ist der Fixer nicht der Täter sonden das Opfer!

        Deswegen klont man keine ganzen Platten sondern installiert neu.

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

          @snopy_16 sagte in Backitup Probleme mit mount NAS:

          Was steht da im Code auf Seite 702?

          Nix. Das fix-Skript hat nur 480 Zeilen.
          https://github.com/ioBroker/ioBroker/blob/master/fix_installation.sh

          Ich hab jetzt gerade mal spaßeshalber 2x hintereinander den iob fix auf meinem System durchgeführt. Kein Fehler bei mir.

          1 Reply Last reply Reply Quote 0
          • S
            Snopy_16 @Homoran last edited by

            @homoran

            Also doch sehr komplex, ich versteh einfach nicht:
            Wieso sucht der Fixer in Zeile 702 nach "/home/pi/temp_sudo_file", das nicht vorhanden ist und schreibt dann "keine Berechtigung".
            Kann man diese file nicht nachinstallieren?

            Thomas Braun Homoran 4 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Snopy_16 last edited by

              @snopy_16 sagte in Backitup Probleme mit mount NAS:

              Kann man diese file nicht nachinstallieren?

              Nein, das ist nur ein temporäres File, das wird vom fixer wieder gelöscht.

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

                @snopy_16

                groups
                

                als der user, der auch den fixer aufruft sagt? Wohl der 'pi' bei dir.

                1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @Snopy_16 last edited by

                  @snopy_16 sagte in Backitup Probleme mit mount NAS:

                  Also doch sehr komplex,

                  mal halblang. Diese Meldung ist nicht normal!
                  und der Rest anscheinend fehlinterpretiert. ich bin kein Entwickler und Programmierer, aber wie kommst fu darauf, dass

                  @snopy_16 sagte in Backitup Probleme mit mount NAS:

                  nach "/home/pi/temp_sudo_file", das nicht vorhanden ist

                  ?
                  da steht

                  @snopy_16 sagte in Backitup Probleme mit mount NAS:

                  Keine Berechtigung

                  heisst: selbst der Fixer hat nicht das Recht, die verbogenen Rechte wieder herzustellen!

                  irgendwas an dem Grundsystem wurde so verstellt, dass

                  @snopy_16 sagte in Backitup Probleme mit mount NAS:

                  This system does not support setting default permissions.

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

                    @snopy_16

                    sudo cat /etc/sudoers.d/iobroker
                    
                    S 2 Replies Last reply Reply Quote 0
                    • S
                      Snopy_16 @Thomas Braun last edited by

                      @homoran
                      Ich meinte das nicht so, ist einfach für MICH zu komplex.
                      Wusste auch nicht das die Datei nur temporär angelegt wird und wieder gelöscht wird, darum hab ich sie auch nicht gefunden.

                      Ich will halt alles verstehen und mache mir dazu Gedanken, wenn auch oftmals falsche.

                      bin aber sehr froh, dass ich bei Euch Hilfe finde.

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

                        @thomas-braun

                        pi@raspberrypi:~ $ sudo cat /etc/sudoers.d/iobroker
                        cat: /etc/sudoers.d/iobroker: Datei oder Verzeichnis nicht gefunden
                        

                        Habe dann auf meinem Ersatzsystem ein

                        sudo iob fix
                        

                        gemacht, dabei wurde dann die datei angelegt

                        ==========================================================================
                            Checking ioBroker user and directory permissions (2/5)
                        ==========================================================================
                        
                        Created /etc/sudoers.d/iobroker
                        Fixing directory permissions...
                        

                        Seitdem funktioniert auch wieder das Backup auf das NAS 👍
                        auch nach einem reboot.

                        Hier nun die Ausgabe vom angelegtem

                        pi@raspberrypi:~ $ sudo cat /etc/sudoers.d/iobroker
                        iobroker ALL=(ALL) ALL
                        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/shutdown
                        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/halt
                        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/poweroff
                        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/reboot
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemctl start
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/mount
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/umount
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemd-run
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt-get
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/dpkg
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/make
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/ping
                        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/setcap
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/vcgencmd
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/cat
                        iobroker ALL=(ALL) NOPASSWD: /usr/bin/df
                        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/ldconfig
                        ALL ALL=NOPASSWD: /usr/bin/systemctl start iobroker
                        ALL ALL=NOPASSWD: /usr/bin/systemctl stop iobroker
                        ALL ALL=NOPASSWD: /usr/bin/systemctl restart iobroker
                        ALL ALL=(iobroker) NOPASSWD: /usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js *
                        

                        Ich weiss zwar nicht ob das jetzt in Ordnung ist, aber es funktioniert
                        Mit einem erneutem IOB-FIX ohne sudo kamen wieder die selben Probleme.

                        Thomas Braun 2 Replies Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators last edited by

                          @snopy_16 sagte in Backitup Probleme mit mount NAS:

                          Habe dann auf meinem Ersatzsystem ein
                          sudo iob fix

                          gemacht,

                          niemals nie nicht iobroker Befehle mit sudo einleiten!!!
                          das führt zu genau so etwas

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

                            @snopy_16 sagte in Backitup Probleme mit mount NAS:

                            Irgendwas haste da komplett verfummelt...
                            sudo oder volle root-shell an einer Stelle verwendet, wo es nicht zu verwenden ist würde ich behaupten.

                            Homoran S 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Thomas Braun last edited by Homoran

                              @thomas-braun sagte in Backitup Probleme mit mount NAS:

                              @snopy_16 sagte in Backitup Probleme mit mount NAS:

                              Irgendwas haste da komplett verfummelt...
                              sudo oder volle root-shell an einer Stelle verwendet, wo es nicht zu verwenden ist würde ich behaupten.

                              ja, so sieht es aus.

                              iobroker hat nicht mehr die notwendigen Rechte.
                              und genau diese verbogenen Rechte zu klonen hilft auch nix

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

                                @snopy_16 sagte in Backitup Probleme mit mount NAS:

                                Ich weiss zwar nicht ob das jetzt in Ordnung ist, aber es funktioniert

                                Nein, das ist nicht in Ordnung, und es rumpelt höchstens. Springt dir bei nächster Gelegenheit wieder entgegen.

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

                                  @thomas-braun
                                  volle root-shell habe ich nie verwendet.
                                  sudo wahrscheinlich schon auch wegen Unwissenheit der Problematik damit.

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @Snopy_16 last edited by

                                    @snopy_16 sagte in Backitup Probleme mit mount NAS:

                                    sudo wahrscheinlich schon auch wegen Unwissenheit der Problematik damit.

                                    und wahrscheinlich auch sudo npm install.... ?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      Snopy_16 @Homoran last edited by

                                      @homoran
                                      npm install ist mir nicht bewusst, dass ich das jemals manuell installiert hätte.

                                      Jetzt hilft wahrscheinlich auch eine Neuinstallation nicht viel, wenn ich das iobroker Backup einspiele?

                                      Homoran Thomas Braun 3 Replies Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Snopy_16 last edited by

                                        @snopy_16 sagte in Backitup Probleme mit mount NAS:

                                        dass ich das jemals manuell installiert hätte.

                                        nicht npm installiert, sondern über npm Adapter mit dem Befehl sudo npm install adapterName...

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

                                          @snopy_16

                                          Im iob-Backup ist kein Backup der sudoers enthalten.

                                          1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @Snopy_16 last edited by Homoran

                                            @snopy_16 sagte in Backitup Probleme mit mount NAS:

                                            Jetzt hilft wahrscheinlich auch eine Neuinstallation nicht viel, wenn ich das iobroker Backup einspiele?

                                            im Backup ist nichts grundlegendes drin, nur die Konfigurationen der Instanzen, die Skripte und die views.
                                            Die Basis installierst du (OS) bzw. der Installer (node, iobroker) vorher sauber neu

                                            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

                                            889
                                            Online

                                            32.1k
                                            Users

                                            80.6k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            51
                                            1346
                                            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