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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    BackItUp für InfluxDB

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

                                          @simatec

                                          Puh ob man den Port nachträglich im Docker ändern kann, wage ich zu bezweifeln, zumindest in der Docker Station von Qnap gibts da Probleme.

                                          Aber wärs nicht einfacher, den Port auf ":8086" zu ändern, sowohl in der config als auch im iobroker backup?
                                          Oder wäre der dann doppelt belegt? Wäre das ein Problem?

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

                                            @massiveattack Nein der Port 8086 ist belegt ... Remote benötigt einen anderen Port

                                            MassiveAttack Humidor 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

                                            755
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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