Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] BackitUp - SQL Sicherung schlägt seit Längerem fehl

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] BackitUp - SQL Sicherung schlägt seit Längerem fehl

    This topic has been deleted. Only users with topic management privileges can see it.
    • metaxa
      metaxa @metaxa last edited by

      @simatec ich habe soeben deinen Link durchgelesen, hoffentlich richtig verstanden und umgesetzt.

      "/etc/mysql/my.cnf" editiert

      # The MariaDB configuration file
      #
      # The MariaDB/MySQL tools read configuration files in the following order:
      # 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.
      # 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
      # 2. "/etc/mysql/conf.d/*.cnf" to set global options.
      # 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
      # 4. "~/.my.cnf" to set user-specific options.
      #
      # If the same option is defined multiple times, the last one will apply.
      #
      # One can use all long options that the program supports.
      # Run program with --help to get a list of available options and with
      # --print-defaults to see which it would actually understand and use.
      #
      # If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/
      
      #
      # This group is read both by the client and the server
      # use it for options that affect everything
      #
      [client-server]
      # Port or socket location where to connect
      # port = 3306
      socket = /run/mysqld/mysqld.sock
      
      # Import all .cnf files from configuration directory
      !includedir /etc/mysql/conf.d/
      !includedir /etc/mysql/mariadb.conf.d/
      
      [mysqldump]
      column-statistics=0
      

      Leider keine Verbesserung, nur das Log liest sich etwas anders:

      
      backitup.0
      2024-09-06 09:37:55.028	error	[iobroker/clean] Backup files not deleted from /opt/iobroker/backups because some errors.
      
      backitup.0
      2024-09-06 09:37:09.653	error	[iobroker] Error: Command failed: /usr/bin/mysqldump -u andreas -p**** ioBroker -h 192.168.0.98 -P 3306 --quick --single-transaction > /opt/iobroker/backups/mysql_2024_09_06-09_37_09_backupiobroker.sql/usr/bin/mysqldump: unknown variable 'column-statistics=0'
      
      backitup.0
      2024-09-06 09:37:09.653	error	[iobroker/mysql] /usr/bin/mysqldump: unknown variable 'column-statistics=0'
      
      backitup.0
      2024-09-06 09:37:09.651	error	[iobroker/mysql] Error: Command failed: /usr/bin/mysqldump -u andreas -p**** ioBroker -h 192.168.0.98 -P 3306 --quick --single-transaction > /opt/iobroker/backups/mysql_2024_09_06-09_37_09_backupiobroker.sql
      
      backitup.0
      2024-09-06 09:37:55.028	error	[iobroker/clean] Backup files not deleted from /opt/iobroker/backups because some errors.
      
      backitup.0
      2024-09-06 09:37:09.653	error	[iobroker] Error: Command failed: /usr/bin/mysqldump -u andreas -p**** ioBroker -h 192.168.0.98 -P 3306 --quick --single-transaction > /opt/iobroker/backups/mysql_2024_09_06-09_37_09_backupiobroker.sql/usr/bin/mysqldump: unknown variable 'column-statistics=0'
      
      backitup.0
      2024-09-06 09:37:09.653	error	[iobroker/mysql] /usr/bin/mysqldump: unknown variable 'column-statistics=0'
      
      backitup.0
      2024-09-06 09:37:09.651	error	[iobroker/mysql] Error: Command failed: /usr/bin/mysqldump -u andreas -p**** ioBroker -h 192.168.0.98 -P 3306 --quick --single-transaction > /opt/iobroker/backups/mysql_2024_09_06-09_37_09_backupiobroker.sql
      

      Bitte um Hilfe!

      Codierknecht 1 Reply Last reply Reply Quote 0
      • Codierknecht
        Codierknecht Developer Most Active @metaxa last edited by

        @metaxa
        Das hast Du auch mal probiert?

        cbb591bf-6d6f-412b-9aba-7ff1b9daba55-image.png

        metaxa 1 Reply Last reply Reply Quote 0
        • metaxa
          metaxa @Codierknecht last edited by

          @codierknecht Ja gelesen, aber dieses File gibt es bei mir nicht:
          ff5ae17c-6461-426e-8224-a7702d85ef34-image.png

          1 Reply Last reply Reply Quote 0
          • Marc Berg
            Marc Berg Most Active last edited by Marc Berg

            @metaxa sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

            "sudo apt install mariadb-client" ist und war installiert.

            Und bist Du gaaanz sicher, dass wirklich der mariadb-client installiert ist, und nicht der mysql-client? Beide installieren ja mysqldump, aber in unterschiedlichen Ausprägungen.

            metaxa 1 Reply Last reply Reply Quote 1
            • metaxa
              metaxa @Marc Berg last edited by metaxa

              @marc-berg Ja.

              00d24422-fda4-40b1-bbc5-cb156e34b27a-image.png

              Marc Berg 2 Replies Last reply Reply Quote 0
              • Marc Berg
                Marc Berg Most Active @metaxa last edited by Marc Berg

                @metaxa sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                Ja.

                Dann würde mir nur noch einfallen, dass es eine alte Verson ist, die die Option "column-statistics" nicht kennt.

                mysqldump --version
                

                sagt was?

                1 Reply Last reply Reply Quote 1
                • Marc Berg
                  Marc Berg Most Active @metaxa last edited by Marc Berg

                  @metaxa

                  Und nochwas, dein Bild:

                  348b29fd-c803-47b6-ba7f-59d1be9ef255-1725569958953-026f2c8a-bb8f-4740-b404-e13fc1eef476-image.png

                  Zeigt aus meiner Sicht, dass es eine mysqldump in /bin gibt, du rufst aber die in /usr/bin auf. Zwei Versionen?

                  Edit: wohl doch eher ein Link.

                  metaxa 1 Reply Last reply Reply Quote 1
                  • metaxa
                    metaxa @Marc Berg last edited by metaxa

                    @marc-berg sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                    sagt was?

                    andreas@iOProduktiv:~$ mysqldump --version
                    mysqldump  Ver 10.19 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64)
                    

                    @marc-berg sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                    Edit: wohl doch eher ein Link.

                    Yep

                    Marc Berg 1 Reply Last reply Reply Quote 0
                    • Marc Berg
                      Marc Berg Most Active @metaxa last edited by Marc Berg

                      @metaxa

                      320fca09-86fa-4ed7-ad1d-0f25dd3dc7ee-1725570644716-25c0cea0-f66e-4a6f-8cb9-2e896f505140-image.png

                      MariaDB 5 ist jetzt auch schon mindestens vier Jahre alt. Vielleicht gibt es Inkompatibilitäten mit dem Client. Ist aber jetzt reines Raten.

                      EDIT: das würde erklären, dass es "irgendwann" nicht mehr funktionierte. Mit einem Updates des Clients.

                      metaxa 1 Reply Last reply Reply Quote 0
                      • metaxa
                        metaxa @Marc Berg last edited by

                        @marc-berg Ich fürchte, du liegst richtig. Habe gerade angefangen von 5 auf 10 upzugraden.

                        https://kb.synology.com/de-de/DSM/tutorial/How_to_migrate_database_MariaDB5_to_MariaDB10#:~:text=Melden Sie sich beim MariaDB 10 -Server an.,Migration zu importieren und abzuschließen.

                        Mal schauen wie weit ich komme 😰

                        Marc Berg Thomas Braun 2 Replies Last reply Reply Quote 0
                        • Marc Berg
                          Marc Berg Most Active @metaxa last edited by

                          @metaxa sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                          Habe gerade angefangen von 5 auf 10 upzugraden.

                          Große Sprünge tun meist besonders weh. Viel Erfolg!

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

                            @metaxa

                            Dann schau dir den Rest vom System auch an. Vermutlich ist das ähnlich alt und daher ein guter Kandidat für weiteren Ärger aus der Ecke 'versumpftes System'...

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

                              @thomas-braun sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                              Dann schau dir den Rest vom System auch an. Vermutlich ist das ähnlich alt und daher ein guter Kandidat für weiteren Ärger aus der Ecke 'versumpftes System'...

                              Naja, Maria ist ein anderes System, nämlich eine Syno

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

                                @thomas-braun sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                                aus der Ecke 'versumpftes System'...

                                Melde gehorsamst:

                                • iO auf einer Debian12 VM, topaktuell und gepflegt
                                • Syno kratzt am EOL

                                @homoran sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                                Naja, Maria ist ein anderes System, nämlich eine Syno

                                Danke! 🤜 🤛

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

                                  Hatte nicht gesehen, das die DB auf einem anderen System als der DB-Client läuft.

                                  Aber man siehr hier auch wieder gut, warum es keine gute Idee ist die Code-Basis auseinander driften zu lassen. Das eine Paket verlangt nach einem anderen Paket in einer bestimmten Mindest-Version.

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

                                    @Marc-Berg neues Problem:
                                    abd3e703-9692-4a25-b356-2dfe1f1f5890-image.png

                                    Hat jemand eine Idee?

                                    metaxa Codierknecht 2 Replies Last reply Reply Quote 0
                                    • metaxa
                                      metaxa @metaxa last edited by metaxa

                                      @ all
                                      Da sind noch mehrere Probleme, beginnend damit, dass eine Tabelle viel zu groß zum exportiern und damit auch viel zu groß (>2GB) um sie in MaraDB10 zu importieren.

                                      Jetzt bin ich grad dabei herauszufinden wie ich uralte DS lösche und danach hoffentlich die DB schrumpfen kann.

                                      metaxa 1 Reply Last reply Reply Quote 0
                                      • Codierknecht
                                        Codierknecht Developer Most Active @metaxa last edited by

                                        @metaxa sagte in BackitUp - SQL Sicherung schlägt seit Längerem fehl:

                                        Hat jemand eine Idee?

                                        Du musst Netzwerkverbindungen von außen zulassen.

                                        https://mariadb.com/kb/en/configuring-mariadb-for-remote-client-access/

                                        1 Reply Last reply Reply Quote 0
                                        • metaxa
                                          metaxa @metaxa last edited by

                                          @ all

                                          Jetzt nach etlichen Tagen und viel, sehr viel, sehr sehr viel, Geduld kann ich den Erfolg sehen.

                                          Lösung, wie auch von @Thomas-Braun vorgeschlagen, Umstellung auf Maria DB10.

                                          Was brauchts:
                                          Geduld
                                          Geduld
                                          Geduld
                                          sämtliche Versuche über die Oberfläche von "phpMyAdmin" auf meiner Syno ließen mich scheitern, da hier immer eine max. DB Größe von 1.024MiB importiert werden kann. Die Stückelung in Blöcke (Anzahl DS) scheiterte mehrfach, bis hin zu Verlust von hinterlegten Primaryschlüsseln, also unbrauchbar. Auch das Zusammenführen einzelner Tabellen ist absolut fehleranfällig.

                                          phpMyAdmin für WIN war nach Tagen meine Lösung

                                          1. 20 Std. Export der größten Tabelle
                                          2. 16 Std. Import aller Tabellen

                                          Danach der Reihe nach sämtliche SQL Einstellungen von SQL.0 auf SQL.1 umstellen, auch das dauert Stunden bei einer größeren Anzahl an DP. Wobei hierbei kann man auch gleich wunderbar Korrekturen der Häufigkeit von Archivierungsdaten vornehmen. Danach sämtliche Graphen umstellen, also alles was auf SQL.0 verweist.

                                          Mein Backup funktionert wieder!
                                          👍

                                          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

                                          681
                                          Online

                                          31.6k
                                          Users

                                          79.5k
                                          Topics

                                          1.3m
                                          Posts

                                          6
                                          22
                                          841
                                          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