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.
    • simatec
      simatec Developer Most Active @passuff last edited by

      @passuff
      Zeige mal bitte deine Config der Influx und deine IP-Adressen der Server

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

        @simatec

        Server 1 (iobroker; 192.168.1.19; influxdb ohne db/user/etc.)
        Server 2 (influxdb; 192.168.1.10; bind 0.0.0.0:8088)

        influx.png
        backitup_influx.png

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

          @passuff sagte in BackItUp für InfluxDB:

          192.168.1.10; bind 0.0.0.0:8088

          Trage mal bitte als remote bind folgendes ein und starte im Anschluss influxdb oder besser dein komplettes System mal neu

          bind 192.168.1.10:8088
          

          Zeige hier mal bitte die influxdb.conf

          P 2 Replies Last reply Reply Quote 0
          • P
            passuff @simatec last edited by

            @simatec

            welche influxdb.conf soll ich ändern bzw zeigen? Es gibt ja zwei:

            • Server 1 (ioboker + influxdb)
            • ListenpunktServer 2 (influxdb - aktive db)
            simatec 1 Reply Last reply Reply Quote 0
            • simatec
              simatec Developer Most Active @passuff last edited by

              @passuff
              Nur die von Server 2. Server 1 ist egal ... Da wird nur die influxd zur Backupausführung benötigt

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

                @simatec Ich habe leider auch einen Fehler beim backup der Influx-Datenbank und weiß nicht so recht wo ich anfangen muss den Fehler zu suchen:

                Started...
                [DEBUG] [iobroker] - host.iobroker 9481 states saved
                
                [DEBUG] [iobroker] - host.iobroker 10225 objects saved
                
                [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_02-14_19_01_backupiobroker.tar.gz
                
                [DEBUG] [iobroker] - done
                [DEBUG] [influxDB] - Start infulxDB Backup ...
                [DEBUG] [influxDB] - Created InfuxDB Backup dir
                [DEBUG] [influxDB] - exec: influxd backup -portable -database iobroker -host 192.168.100.12:8088 /opt/iobroker/backups/influxDB_2021_02_02-14_19_19_backupiobroker
                [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.100.12:8088 /opt/iobroker/backups/influxDB_2021_02_02-14_19_19_backupiobroker
                /bin/sh: 1: influxd: not found
                
                [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_02_02-14_19_01_backupiobroker.tar.gz...
                [ERROR] [googledrive] - Google Drive: File "/opt/iobroker/backups/influxDB_2021_02_02-14_19_19_backupiobroker.tar.gz" not found
                [DEBUG] [googledrive] - done
                [DEBUG] [clean] - done
                [DEBUG] [pushover] - done
                [DEBUG] [historyHTML] - new history html values created
                [DEBUG] [historyHTML] - done
                [DEBUG] [historyJSON] - new history json values created
                [DEBUG] [historyJSON] - done
                [EXIT] 0
                

                Kannst du hier helfen?

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

                  @markus84
                  Bitte mach ein Update auf die Version 1.8.5 oder auf die Github-Version 2.0.0-beta.2
                  Des Weiteren muss Influx auf dem ioboker System laufen, wobei die Datenbank auf einem anderen Server liegen kann.
                  In der Conf von Influx "bind auf 0.0.0.0:8088" anpassen

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

                    @simatec Ich habe über Github die aktuelle Beta installiert. Leider erhalte ich die gleiche Fehlermeldung:

                    Started iobroker ...
                    [DEBUG] [iobroker] - host.iobroker 9475 states saved
                    
                    [DEBUG] [iobroker] - host.iobroker 10224 objects saved
                    
                    [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_02-14_49_49_backupiobroker.tar.gz
                    
                    [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.100.12:8088 "/opt/iobroker/backups/influxDB_2021_02_02-14_50_06_backupiobroker"
                    /bin/sh: 1: influxd: not found
                    
                    [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_02_02-14_49_49_backupiobroker.tar.gz...
                    [ERROR] [googledrive] - Google Drive: File "/opt/iobroker/backups/influxDB_2021_02_02-14_50_06_backupiobroker.tar.gz" not found
                    [DEBUG] [googledrive] - done
                    [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors.
                    [DEBUG] [clean] - done
                    [DEBUG] [pushover] - done
                    [DEBUG] [historyHTML] - new history html values created
                    [DEBUG] [historyHTML] - done
                    [DEBUG] [historyJSON] - new history json values created
                    [DEBUG] [historyJSON] - done
                    [EXIT] 0
                    
                    simatec 1 Reply Last reply Reply Quote 0
                    • simatec
                      simatec Developer Most Active @Markus84 last edited by

                      @markus84 sagte in BackItUp für InfluxDB:

                      in/sh: 1: influxd: not found

                      Du musst Influx auf deinem iobroker System installiert haben.
                      In der influxdb.conf auf deinem Influx-Server muss in den Remote-Einstellungen dann folgendes geändert werden

                      bind <IP des Servers>:8088
                      

                      oder

                      bind 0.0.0.0:8088
                      

                      Im Anschluss Influx neustarten

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

                        @simatec Danke, das probiere ich gleich mal aus. Hätte ich das irgendwo in der Anleitung finden können? Ich hab gerade mal geschaut, aber nur den Issue#390 zu diesem Thema auf Github gefunden.

                        Meine Frage zielt darauf ab, ob ich einfach nur Influx installieren muss oder ob das auch in irgendeiner Form laufen muss (was ja wiederum Ressourcen benötigt). Nur das Installieren kostet ja nur ein paar MB Speicherplatz und ist nicht tragisch...

                        Insofern aber noch der Hinweis, dass der Fehler nicht im log steht (wo ich mich eigentlich drauf verlassen hätte) und auch nicht im Datenpunkt backitup.0.history.iobrokerSuccess als false ausgegeben wird. Letzteres verstehe ich noch, da es ja nicht das ioBroker-Backup an sich betrifft. Könnte man für die weiteren Backup-Optionen (Grafana, Influx, etc.) entsprechende Datenpunkte unter history anlegen, um die Backups zu überwachen? Ist diesbezüglich etwas geplant?

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

                          @markus84
                          Die Doku wird aktuell von mir für Version 2.0.0 überarbeitet. Dort wird dann auch alles zu Influx stehen

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

                            @simatec Super, ich frag nur nicht gerne, wenn ich es auch einfach hätte selbst irgendwo lesen können...

                            Noch eine Frage/Hinweis: Der "Backup now" button ist unter dem Reiter ioBroker. Ist das noch logisch, da ja weit mehr als der ioBroker mit diesem button geupdatet werden kann?

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

                              @markus84
                              Guter Gedanke .. Ich überlege mir da mal etwas

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

                                @simatec

                                Leider erhalte ich noch Fehlermeldungen im Log. Influx ist auf dem ioBroker RPI installiert, das Binding ist eingetragen in der influxdb.conf auf meinem Grafana/Influxdb RPI. Neu gestartet habe ich auch.

                                Bezüglich Grafana: Trotz Fehlermeldung wurde ein Grafana Backup gespeichert. Ob es sich restoren lassen würde habe ich allerdings nicht getestet.

                                Started iobroker ...
                                [DEBUG] [iobroker] - host.iobroker 9480 states saved
                                
                                [DEBUG] [iobroker] - host.iobroker 10222 objects saved
                                
                                [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_03-05_31_29_backupiobroker.tar.gz
                                
                                [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.100.12:8088 "/opt/iobroker/backups/influxDB_2021_02_03-05_31_47_backupiobroker"
                                2021/02/03 05:31:47 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2s and retrying (0)...
                                2021/02/03 05:31:49 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2s and retrying (1)...
                                2021/02/03 05:31:51 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2s and retrying (2)...
                                2021/02/03 05:31:53 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2s and retrying (3)...
                                2021/02/03 05:31:55 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2s and retrying (4)...
                                2021/02/03 05:31:57 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2s and retrying (5)...
                                2021/02/03 05:31:59 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 3.01s and retrying (6)...
                                2021/02/03 05:32:02 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 11.441s and retrying (7)...
                                2021/02/03 05:32:13 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 43.477s and retrying (8)...
                                2021/02/03 05:32:57 Download shard 0 failed dial tcp 192.168.100.12:8088: connect: connection refused.  Waiting 2m45.216s and retrying (9)...
                                backup: dial tcp 192.168.100.12:8088: connect: connection refused
                                
                                [DEBUG] [grafana] - Start Grafana Backup ...
                                [DEBUG] [grafana] - Created grafana_tmp directory
                                [DEBUG] [grafana] - Created dashboard directory
                                [DEBUG] [grafana] - Created dashboards_manually_restore directory
                                [DEBUG] [grafana] - Created datasource directory
                                [DEBUG] [grafana] - start Grafana request ...
                                [DEBUG] [grafana] - Grafana is available ... Status: 200
                                [DEBUG] [grafana] - Error on Grafana Dashoard Request: Error: Request failed with status code 401
                                [DEBUG] [grafana] - start Grafana backup compress ...
                                [DEBUG] [grafana] - Backup created: /opt/iobroker/backups/grafana_2021_02_03-05_35_43_backupiobroker.tar.gz
                                [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                                [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                                [DEBUG] [grafana] - done
                                [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_02_03-05_31_29_backupiobroker.tar.gz...
                                [ERROR] [googledrive] - Google Drive: File "/opt/iobroker/backups/influxDB_2021_02_03-05_31_47_backupiobroker.tar.gz" not found
                                [DEBUG] [googledrive] - Google Drive: Copy grafana_2021_02_03-05_35_43_backupiobroker.tar.gz...
                                [DEBUG] [googledrive] - done
                                [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors.
                                [DEBUG] [clean] - done
                                [DEBUG] [pushover] - done
                                [DEBUG] [historyHTML] - new history html values created
                                [DEBUG] [historyHTML] - done
                                [DEBUG] [historyJSON] - new history json values created
                                [DEBUG] [historyJSON] - done
                                [EXIT] 0
                                
                                simatec 1 Reply Last reply Reply Quote 0
                                • simatec
                                  simatec Developer Most Active @Markus84 last edited by

                                  @markus84
                                  Zeige mal bitte deine influxdb.conf
                                  Hast du Influx nach Änderung der bind neugestartet?

                                  Zu Grafana. Hast du einen API-Key in Grafana erzeugt und diesen auch in Backitup eingetragen?
                                  Stimmen deine Grafana User-Daten?

                                  Zeige mal bitte den Inhalt des Grafana Backups. Einfach mal mit 7Zip entpacken

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

                                    @simatec

                                    Hat sich erledigt. Nach einem Neustart aller Systeme geht es. Der Adapter war schon immer klasse aber jetzt ist er nahezu perfekt!

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

                                      remote backup aufs nas funktioniert für iobroker & grafana. für die influxdb bekomme ich aber einen fehler:

                                      [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:8086 "/opt/iobroker/backups/influxDB_2021_02_03-10_57_37_backupiobroker"
                                      /bin/sh: 1: influxd: not found
                                      

                                      Zur Info, die influx läuft bei mir als container direkt am nas, der iobroker aber am pi

                                      simatec F 2 Replies Last reply Reply Quote 0
                                      • P
                                        passuff @simatec last edited by

                                        @simatec sagte in BackItUp für InfluxDB:

                                        @passuff sagte in BackItUp für InfluxDB:

                                        192.168.1.10; bind 0.0.0.0:8088

                                        Trage mal bitte als remote bind folgendes ein und starte im Anschluss influxdb oder besser dein komplettes System mal neu

                                        bind 192.168.1.10:8088
                                        

                                        Zeige hier mal bitte die influxdb.conf

                                        So funktioniert es perfekt. Danke Dir! 🙂

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

                                          @massiveattack
                                          Bitte die Anleitung beachten ...
                                          https://github.com/simatec/ioBroker.backitup/blob/master/docs/de/backitup.md#InfluxDB-Backup

                                          MassiveAttack FreunderNacht 2 Replies Last reply Reply Quote 1
                                          • MassiveAttack
                                            MassiveAttack @simatec last edited by

                                            @simatec
                                            danke, genau das habe ich gesucht.

                                            wie kann ich den influx daemon am pi installieren? brauche ich dazu wirkich die ganze instanz? sprich sudo apt install influxdb

                                            simatec 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

                                            438
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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