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

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Backitup Probleme mit mount NAS

    This topic has been deleted. Only users with topic management privileges can see it.
    • 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
                                • S
                                  Snopy_16 last edited by

                                  @homoran
                                  Adapter hab ich auch nie über die Konsole installiert.

                                  Aber ich werde mich jetzt doch an eine Neuinstallation machen, wahrscheinlich warte ich noch auf den PI5, dann gehts in einem Aufwaschen.
                                  Ich hoffe dass ich dann das iobroker Backup vom derzeitigem PI4 (Bullseye) problemlos auf den PI5 (Bookworm) aufspielen kann.

                                  Könnte man mit einer SD vom PI4 (bookworm) auch einen PI5 starten ????

                                  Thomas Braun 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:

                                    Könnte man mit einer SD vom PI4 (bookworm) auch einen PI5 starten ????

                                    Nein. Auf dem Pi5 werkelt ganz andere Hardware mit einem anderen Kernel. Muss neuinstalliert werden.

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

                                      @thomas-braun
                                      @Homoran

                                      OK, DANKE vorerst an euch Beide für Eure großartige Hilfe und vor allem Geduld👍 😀 😌

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

                                        @Homoran @Thomas-Braun
                                        Guten Morgen nochmal

                                        könnte dieser Befehl die Rechte wieder zurecht rücken?

                                        curl -sL https://iobroker.net/fix.sh | bash -
                                        

                                        und sei es nur zu versuchen und wieder was dazu zu lernen
                                        Oder ist das ähnlich einer Neuinstallation

                                        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:

                                          könnte dieser Befehl die Rechte wieder zurecht rücken?

                                          nein. das ist identisch zu iob fix
                                          und der Fixer darf es nicht, weil das System verbogen ist.

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            Einstein2002 last edited by

                                            @homoran

                                            Guten Tag zusammen,

                                            kennt Ihr diesen Fehler?

                                            Ich habe mir heute auf meinem Proxmox eine neue IOBroker Installation erstellt. Diese läuft in einem LXC auf Ubuntu 22.04.4 und ich hatte sie auf Debian12 ebenfalls erstellt. Aber bei beiden Installationen habe ich das gleiche Problem: Ich kann dem Backitup Adapter einfach nicht mehr mit dem QNAP NAS verbinden.
                                            Mit der alten Version die auch auf Ubuntu 22.04.4 läuft funktioniert das einwandfrei. Der einzige Unterschied ist der: Die alte Variante läuft im privilegiert und die neuen Installationen im unprivilegiert LXC.
                                            Ich benötige aber eine unprivilegiert Installation weil sonst der Zigbee nicht läuft.

                                            Nun bekomme diesen Fehler:

                                            	Error: Command failed: sudo mount -t cifs -o username=admin,password=****,rw,uid=iobroker,gid=iobroker,file_mode=0777,dir_mode=0777 //192.168.100.49/backup/ioBroker/neu/ /opt/iobroker/backups mount error(1): Operation not permitted Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
                                            

                                            Ist da was bekannt? So richtig gefunden habe ich dazu nichts.

                                            Es wäre natürlich sehr Hilfreich an das Backup von heute Morgen zu kommen.

                                            Danke jetzt schon einmal

                                            Codierknecht 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

                                            591
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

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