Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. BackItUp für InfluxDB

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    BackItUp für InfluxDB

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

      @simatec

      Ich hab mir den ganzen Thread durchgelesen, aber blicke leider nicht durch.

      backitup.0	2021-05-17 17:25:21.022	debug	(7583) [iobroker/influxDB] backup: invalid metadata received
      backitup.0	2021-05-17 17:25:21.022	debug	(7583) [iobroker/influxDB] 2021/05/17 17:25:21 Invalid metadata blob, ensure the metadata service is running (default port 8088)
      backitup.0	2021-05-17 17:25:21.022	debug	(7583) [iobroker/influxDB] [IGNORED] Error: Command failed: influxd backup -portable -database iobroker -host 192.168.178.190:8086 "/opt/iobroker/backups/influxDB_2021_05_17-17_25_21_Saves_backupiobro
      backitup.0	2021-05-17 17:25:21.022	debug	(7583) [iobroker/influxDB] InfluxDB tmp directory was successfully deleted
      backitup.0	2021-05-17 17:25:21.021	debug	(7583) [iobroker/influxDB] Try deleting the InfluxDB tmp directory
      backitup.0	2021-05-17 17:25:21.009	debug	(7583) [iobroker/influxDB] InfluxDB Backup tmp directory created
      backitup.0	2021-05-17 17:25:21.008	debug	(7583) [iobroker/influxDB] Start InfluxDB Backup ...
      backitup.0	2021-05-17 17:25:20.857	debug	(7583) [iobroker/iobroker] done
      backitup.0	2021-05-17 17:25:19.847	debug	(7583) [iobroker/iobroker] Backup created: /opt/iobroker/backups/iobroker_2021_05_17-17_25_16_Saves_backupiobroker.tar.gz
      backitup.0	2021-05-17 17:25:18.171	debug	(7583) [iobroker/iobroker] host.ubuntu 10258 objects saved
      backitup.0	2021-05-17 17:25:18.111	debug	(7583) [iobroker/iobroker] host.ubuntu 7752 states saved
      backitup.0	2021-05-17 17:25:16.754	debug	(7583) Backup has started ...
      

      Ich habe aus dem Thread gelesen, dass influxdb auf der VM wo iobroker läuft installiert sein muss, getan. Nur installiert, nichts angelegt / konfiguriert.

      Iobroker VM: IP .193
      Influx VM: IP .190

      Ich hab noch irgenwas von einer Bindadresse gelesen, weiß allerdings nicht wo die sein soll bzw. wie ich darauf zugreifen kann. Beide VMs haben Ubuntu Server als Betriebssystem.

      simatec 1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active @Flyor87 last edited by

        @flyor87
        Infos zum Influxdb Backup findest du in der Doku.
        https://github.com/simatec/ioBroker.backitup/blob/master/docs/de/backitup.md#InfluxDB-Backup

        Was mir direkt aufgefallen ist, dein Remote Port in den Einstellungen von Backitup muss auf 8088 geändert werden.

        Die influxdb.conf kannst du über diesen befehl editieren:

         sudo nano /etc/influxdb/influxdb.conf
        

        Im Anschluss influx neustarten

        1 Reply Last reply Reply Quote 0
        • MassiveAttack
          MassiveAttack last edited by

          Bekomme beim InfluxDB Backup diesen Fehler, kann ja nur mehr eine Kleinigkeit sein 🙂

          [DEBUG] [iobroker] - done
          [DEBUG] [influxDB] - Start InfluxDB Backup ...
          [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
          [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory
          [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted
          [ERROR] [influxDB] - [IGNORED] Error: Command failed: influxd backup -portable -database iobroker -host 192.168.0.80:8088 "/opt/iobroker/backups/influxDB_2021_05_19-15_35_53_backupiobroker"
          2021/05/19 15:35:53 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2s and retrying (0)...
          2021/05/19 15:35:55 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2s and retrying (1)...
          2021/05/19 15:35:57 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2s and retrying (2)...
          2021/05/19 15:35:59 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2s and retrying (3)...
          2021/05/19 15:36:01 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2s and retrying (4)...
          2021/05/19 15:36:03 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2s and retrying (5)...
          2021/05/19 15:36:06 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 3.01s and retrying (6)...
          2021/05/19 15:36:09 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 11.441s and retrying (7)...
          2021/05/19 15:36:20 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 43.477s and retrying (8)...
          2021/05/19 15:37:03 Download shard 0 failed dial tcp 192.168.0.80:8088: connect: connection refused.  Waiting 2m45.216s and retrying (9)...
          backup: dial tcp 192.168.0.80:8088: connect: connection refused
          

          .) Die DB läuft als Docker auf 192.168.0.80, habe dort das influxdb.conf geändert auf "0.0.0.0:8088"
          .) iobroker und eine 2te DB Instanz laufen am RasPi
          .) Config siehe Screenshot!

          influxdb.png

          simatec 1 Reply Last reply Reply Quote 0
          • simatec
            simatec Developer Most Active @MassiveAttack last edited by

            @massiveattack Ist auf dem PI influxd installiert?

            MassiveAttack 1 Reply Last reply Reply Quote 0
            • MassiveAttack
              MassiveAttack @simatec last edited by

              @simatec
              Ich habe eine eigene InfluxDb installiert, ist das falsch? Wie installiert man influxd?

              simatec 1 Reply Last reply Reply Quote 0
              • simatec
                simatec Developer Most Active @MassiveAttack last edited by

                @massiveattack Wenn du influx auf deinem PI hast, sollte alles passen

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

                  @simatec @MassiveAttack
                  Das muss nicht unbedingt sein, dass das CLI "influxd" installiert ist.

                  Beim Repo von Influxdata ist es automatisch drin, bei Debian muss es nachinstalliert werden
                  ( apt-get install influxdb-client )

                  MassiveAttack 1 Reply Last reply Reply Quote 0
                  • MassiveAttack
                    MassiveAttack @succo_J last edited by

                    @succo_j

                    Ich habs übers repo installiert. Kann es sein, dass der Fehler ein Berechtigungsproblem ist?
                    Wenn ich nur den client installiere, kann ich die db wieder löschen?

                    S simatec 2 Replies Last reply Reply Quote 0
                    • S
                      succo_J @MassiveAttack last edited by

                      @massiveattack
                      Oh, da bin ich überfragt. Aber ich glaube, es gibt grundsätzlich ein Problem mittels "influxd" von außen ein Backup im Docker anzustoßen.
                      Selbst die Leute von Influxdata machen es über docker exec ...
                      https://www.influxdata.com/blog/backuprestore-of-influxdb-fromto-docker-containers/

                      1 Reply Last reply Reply Quote 0
                      • simatec
                        simatec Developer Most Active @MassiveAttack last edited by

                        @massiveattack Kannst du bitte mal die Config deines Dockers posten

                        1 Reply Last reply Reply Quote 0
                        • MassiveAttack
                          MassiveAttack last edited by MassiveAttack

                          @succo_j said in BackItUp für InfluxDB:

                          apt-get install influxdb-client

                          Ich glaube das heißt, der Client ist schon installiert?!

                          Vorbereitung zum Entpacken von .../influxdb-client_1.6.4-1+deb10u1_armhf.deb ...
                          Entpacken von influxdb-client (1.6.4-1+deb10u1) ...
                          dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/influxdb-client_1.6.4-1+deb10u1_armhf.deb (--unpack):
                           Versuch, »/usr/bin/influx« zu überschreiben, welches auch in Paket influxdb 1.8.5-1 ist
                          dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet
                          Fehler traten auf beim Bearbeiten von:
                           /var/cache/apt/archives/influxdb-client_1.6.4-1+deb10u1_armhf.deb
                          E: Sub-process /usr/bin/dpkg returned an error code (1)
                          
                          

                          Pfuh das wird ja immer komplizierter 🙂

                          In der Config steht nix besonderes drin, alles default

                          simatec 1 Reply Last reply Reply Quote 0
                          • MassiveAttack
                            MassiveAttack last edited by

                            Ich habe vorläufig einen Workaround gefunden. Leider muss ich dazu den backupjob manuell in der docker console starten:

                            influxd backup -portable -database iobroker "/var/lib/influxdb/backups/influxDB_20_05_21"

                            Wobei "/var/lib/influxdb/" mein Freigabeverzeichnis für den Docker ist. Dabei wird der Ordner "backups" erstellt. Auf diesen Freigabeordner kann ich über das NAS Filesystem ja zugreifen, und kopiere mir dann das influxdb backup weg.

                            1 Reply Last reply Reply Quote 0
                            • MassiveAttack
                              MassiveAttack last edited by

                              Noch eine andere Frage zum Backup von JS, was muss ich da eintragen, damit das Backup funktioniert?

                              js.png

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

                                @massiveattack
                                Im js-Adapter spiegeln (am besten außerhalb von /opt/iobroker ; z. B. im /home/iobroker/iobskripte oder sowas) und dieses Spiegelverzeichnis im Backitup eintragen.

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

                                  @thomas-braun

                                  Danke, funktioniert 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • simatec
                                    simatec Developer Most Active @MassiveAttack last edited by

                                    @massiveattack sagte in BackItUp für InfluxDB:

                                    In der Config steht nix besonderes drin, alles default

                                    Zeige bitte trotzdem mal die Config

                                    MassiveAttack 1 Reply Last reply Reply Quote 0
                                    • MassiveAttack
                                      MassiveAttack @simatec last edited by

                                      @simatec

                                      $ docker run -p 8086:8086 \
                                            -v influxdb:/var/lib/influxdb \
                                            influxdb:1.8
                                      
                                      simatec 1 Reply Last reply Reply Quote 0
                                      • simatec
                                        simatec Developer Most Active @MassiveAttack last edited by

                                        @massiveattack der Port 8088 ist da aber nicht konfiguriert.
                                        Den Port benötigst du als remote Port

                                        MassiveAttack 1 Reply Last reply Reply Quote 0
                                        • MassiveAttack
                                          MassiveAttack @simatec last edited by

                                          @simatec
                                          den habe ich auch in der influx config eingestellt:

                                          [admin]
                                          enabled = true
                                          bind-address = ":8088"

                                          (hab auch schon "0.0.0.0:8088" erfolglos versucht"

                                          simatec 1 Reply Last reply Reply Quote 0
                                          • simatec
                                            simatec Developer Most Active @MassiveAttack last edited by

                                            @massiveattack sagte in BackItUp für InfluxDB:

                                            8088

                                            Ich denke beim docker musst du den Port auch freigeben ...
                                            Eventuell kann da @andre etwas zu sagen.

                                            MassiveAttack andre 2 Replies 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

                                            906
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            backitup influxdb
                                            32
                                            273
                                            37884
                                            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