Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Influxdb2 Backitup

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Influxdb2 Backitup

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

      @thomas-braun sagte in Influxdb2 Backitup:

      apt policy influxdb*

      Andy@homebridge:~ $ sudo apt update
      Holen:1 http://security.debian.org/debian-security bullseye-security InRelease [48,4 kB]
      OK:2 http://deb.debian.org/debian bullseye InRelease
      Holen:3 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB]
      Holen:4 http://archive.raspberrypi.org/debian bullseye InRelease [23,6 kB]
      OK:5 https://repos.influxdata.com/debian stable InRelease
      OK:6 https://repos.influxdata.com/debian stretch InRelease
      Holen:7 https://packages.grafana.com/oss/deb stable InRelease [5.984 B]
      Holen:8 https://deb.nodesource.com/node_16.x bullseye InRelease [4.586 B]
      Holen:9 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [233 kB]
      Holen:11 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [316 kB]
      OK:10 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
      Holen:12 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [308 kB]
      Holen:13 https://packages.grafana.com/oss/deb stable/main arm64 Packages [77,0 kB]
      Holen:14 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages [782 B]
      Holen:15 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages [777 B]
      Es wurden 1.062 kB in 3 s geholt (378 kB/s).
      Paketlisten werden gelesen… Fertig
      Abhängigkeitsbaum wird aufgebaut… Fertig
      Statusinformationen werden eingelesen… Fertig
      Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
      Andy@homebridge:~ $ apt policy influxdb*
      influxdb2-cli:
        Installiert:           2.7.1-2
        Installationskandidat: 2.7.1-2
        Versionstabelle:
       *** 2.7.1-2 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
              100 /var/lib/dpkg/status
           2.6.1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.6.0 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.5.0 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.4.0 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.3.0 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
      influxdb-client:
        Installiert:           (keine)
        Installationskandidat: 1.6.7~rc0-1+b5
        Versionstabelle:
           1.6.7~rc0-1+b5 500
              500 http://deb.debian.org/debian bullseye/main arm64 Packages
      influxdb-dev:
        Installiert:           (keine)
        Installationskandidat: (keine)
        Versionstabelle:
      influxdb2-client:
        Installiert:           (keine)
        Installationskandidat: 2.7.1-1
        Versionstabelle:
           2.7.1-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
      influxdb:
        Installiert:           (keine)
        Installationskandidat: 1.8.10-1
        Versionstabelle:
           1.8.10-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           1.6.7~rc0-1+b5 500
              500 http://deb.debian.org/debian bullseye/main arm64 Packages
      influxdb2:
        Installiert:           2.7.0-1
        Installationskandidat: 2.7.0-1
        Versionstabelle:
       *** 2.7.0-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
              100 /var/lib/dpkg/status
           2.6.1-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.6.0-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.5.1-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.4.0-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.3.0-1 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
           2.2.0 500
              500 https://repos.influxdata.com/debian stable/main arm64 Packages
              500 https://repos.influxdata.com/debian stretch/stable arm64 Packages
      Andy@homebridge:~ $
      
      1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active last edited by

        @damrak2022 Du hast in Backitup Influx 1.x als Datenbank eingestellt.
        Du musst die 2.x wählen, und deine Zugangsdaten inkl. Token eintragen

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

          @simatec Sorry, das hatte ih übersehen.

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

            @simatec Ist jetzt hier der Token falsch? Den hatte ich mir abgespeichert:

            [DEBUG] [influxDB] - 
            [ERROR] [influxDB] - Error: Command failed: influx backup --bucket iobroker -t KESElQpj7-pjE4OmD8m0ubKfQe2zzzzzzzzAyhrr4JC8upFHQs-_9s_77vr_X2RosScq13_b6Pm9U30n_D6zX0A== "/opt/iobroker/backups/influxDB_2023_04_19-18_51_33_backupiobroker"
            2023/04/19 18:51:33 INFO: Downloading metadata snapshot
            Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: unauthorized access
            
            simatec 1 Reply Last reply Reply Quote 0
            • simatec
              simatec Developer Most Active @Damrak2022 last edited by

              @damrak2022 https://github.com/simatec/ioBroker.backitup/wiki/Diverse-Anleitungen-für-ioBroker.backitup#token-für-influxdb-2x-backup-richtig-erstellen

              Damrak2022 Marc Berg 2 Replies Last reply Reply Quote 0
              • Damrak2022
                Damrak2022 @simatec last edited by

                @simatec sagte in Influxdb2 Backitup:

                https://github.com/simatec/ioBroker.backitup/wiki/Diverse-Anleitungen-für-ioBroker.backitup#token-für-influxdb-2x-backup-richtig-erstellen

                Sorry, jetzt habe ich eine neuen Token erstellt und ich habe weiterhin diese Fehlermeldung:

                [ERROR] [influxDB] - Error: Command failed: influx backup --bucket DBANDY1 -t wP078N_OISnj6adNQEchwCDv8K7szNnzbgTA_rJggvDtX_JMAOOXj_IzM96WubFmpz6YcBDkOJAualvlGUpgsA== "/opt/iobroker/backups/influxDB_2023_04_19-20_05_10_backupiobroker"
                2023/04/19 20:05:10 INFO: Downloading metadata snapshot
                Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized
                

                Ich muss doch hier anscheinend irgendwo noch einen Zugriff freigeben?
                Und ich hatte am Anfang einen All Access Token schonmal erstellt, welchen ich mir wegkopiert habe.
                Datenbankname ist auch korrekt eingetragen im Backitup Adapter

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

                  @damrak2022 sagte in Influxdb2 Backitup:

                  Ich muss doch hier anscheinend irgendwo noch einen Zugriff freigeben?
                  Und ich hatte am Anfang einen All Access Token schonmal erstellt, welchen ich mir wegkopiert habe.
                  Datenbankname ist auch korrekt eingetragen im Backitup Adapter

                  Scheinbar doch der falsche Token. Zeig mal das Ergebnis von

                  influx auth list --json
                  
                  Damrak2022 1 Reply Last reply Reply Quote 0
                  • Damrak2022
                    Damrak2022 @Marc Berg last edited by Damrak2022

                    @marc-berg

                    Andy@homebridge:~ $ influx auth list --json
                    Error: could not find authorization with given parameters: 401 Unauthorized: unauthorized access
                    Andy@homebridge:~ $
                    
                    Marc Berg 1 Reply Last reply Reply Quote 0
                    • Marc Berg
                      Marc Berg Most Active @Damrak2022 last edited by

                      @damrak2022

                      mit Token

                      influx auth list -t <TOKEN> --json
                      
                      Damrak2022 1 Reply Last reply Reply Quote 0
                      • Damrak2022
                        Damrak2022 @Marc Berg last edited by

                        @marc-berg sagte in Influxdb2 Backitup:

                        influx auth list -t <TOKEN> --json

                        Andy@homebridge:~ $ influx auth list -t <TOKEN> --json
                        -bash: TOKEN: Datei oder Verzeichnis nicht gefunden
                        Andy@homebridge:~ $
                        
                        Marc Berg 1 Reply Last reply Reply Quote 0
                        • Marc Berg
                          Marc Berg Most Active @Damrak2022 last edited by

                          @damrak2022 sagte in Influxdb2 Backitup:

                          @marc-berg sagte in Influxdb2 Backitup:

                          influx auth list -t <TOKEN> --json

                          Andy@homebridge:~ $ influx auth list -t <TOKEN> --json
                          -bash: TOKEN: Datei oder Verzeichnis nicht gefunden
                          Andy@homebridge:~ $
                          

                          natürlich statt <TOKEN> deinen AllAccess Token eingeben ..

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

                            @marc-berg

                            Andy@homebridge:~ $ influx auth list -t <wP078N_OISnj6adNQEchwCDv8K7szNnzbgTA_rJggvDtX_JMAOOXj_IzM96WubFmpz6YcBDkOJAualvlGUpgsA==> --json
                            -bash: wP078N_OISnj6adNQEchwCDv8K7szNnzbgTA_rJggvDtX_JMAOOXj_IzM96WubFmpz6YcBDkOJAualvlGUpgsA==: Datei oder Verzeichnis nicht gefunden
                            Andy@homebridge:~ $
                            
                            Marc Berg 1 Reply Last reply Reply Quote 0
                            • Marc Berg
                              Marc Berg Most Active @Damrak2022 last edited by

                              @damrak2022 sagte in Influxdb2 Backitup:

                              @marc-berg

                              Andy@homebridge:~ $ influx auth list -t <wP078N_OISnj6adNQEchwCDv8K7szNnzbgTA_rJggvDtX_JMAOOXj_IzM96WubFmpz6YcBDkOJAualvlGUpgsA==> --json
                              -bash: wP078N_OISnj6adNQEchwCDv8K7szNnzbgTA_rJggvDtX_JMAOOXj_IzM96WubFmpz6YcBDkOJAualvlGUpgsA==: Datei oder Verzeichnis nicht gefunden
                              Andy@homebridge:~ $
                              

                              die "<>" weglassen

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

                                @marc-berg Warte mal ich erstelle nochmal einen All Access Token neu

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

                                  @Damrak2022

                                  @simatec sagte in Influxdb2 Backitup:

                                  @damrak2022 https://github.com/simatec/ioBroker.backitup/wiki/Diverse-Anleitungen-für-ioBroker.backitup#token-für-influxdb-2x-backup-richtig-erstellen

                                  Lass mich raten. Du bist die Anleitung von @simatec nicht durchgegangen?

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

                                    @marc-berg

                                    Andy@homebridge:~ $ influx auth list -t wP078N_OISnj6adNQEchwCDv8K7szNnzbgTA_rJggvDtX_JMAOOXj_IzM96WubFmpz6YcBDkOJAualvlGUpgsA== --json
                                    null
                                    Andy@homebridge:~ $
                                    

                                    Doch aber das mit dem wiederherstellen habe ich nicht kapiert

                                    Mittlerweile habe ich 3 Token in der Influx Oberfläche. Soll ich nicht erstmal alle löschen?

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

                                      @damrak2022 sagte in Influxdb2 Backitup:

                                      Doch aber das mit dem wiederherstellen habe ich nicht kapiert

                                      Mittlerweile habe ich 3 Token in der Influx Oberfläche. Soll ich nicht erstmal alle löschen?

                                      Keine Ahnung. Ich denke, deine InfluxDB Installation ist völlig verhunzt, da hilft auch kein Token löschen mehr.

                                      Damrak2022 2 Replies Last reply Reply Quote 0
                                      • Damrak2022
                                        Damrak2022 @Marc Berg last edited by Damrak2022

                                        @marc-berg Nein das glaube ich nicht, denn es ging ja alles problemlos, bevor ich versucht habe die Influx mit Backitup zu sichern

                                        Der neue Token ist im Influx Adapter eingetragen - Verbindung okay
                                        Im Backitup Adapter eingetragen - läuft - nur Fehlermeldung bleibt beim Versuch manuell zu sichern bestehen.

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

                                          @marc-berg Wenn ich das eingebe, bekomme ich folgendes Ergebnis:

                                          Andy@homebridge:~ $ influx user list --tokenAfcFU5cPIn5N_D8HEk_FBSDHFkPARR1atQ7woh-JFzwLTCeSp_2JS4zla7GN95RH4EtMCg8snxfPEncXS4hUjg==
                                          Incorrect Usage: flag provided but not defined: -tokenAfcFU5cPIn5N_D8HEk_FBSDHFkPARR1atQ7woh-JFzwLTCeSp_2JS4zla7GN95RH4EtMCg8snxfPEncXS4hUjg
                                          
                                          NAME:
                                             influx user list - List users
                                          
                                          USAGE:
                                             influx user list [command options] [arguments...]
                                          
                                          COMMON OPTIONS:
                                             --host value                     HTTP address of InfluxDB [$INFLUX_HOST]
                                             --skip-verify                    Skip TLS certificate chain and host name verification [$INFLUX_SKIP_VERIFY]
                                             --configs-path value             Path to the influx CLI configurations [$INFLUX_CONFIGS_PATH]
                                             --active-config value, -c value  Config name to use for command [$INFLUX_ACTIVE_CONFIG]
                                             --http-debug
                                             --json                           Output data as JSON [$INFLUX_OUTPUT_JSON]
                                             --hide-headers                   Hide the table headers in output data [$INFLUX_HIDE_HEADERS]
                                             --token value, -t value          Token to authenticate request [$INFLUX_TOKEN]
                                          
                                          OPTIONS:
                                             --id value, -i value    The user ID
                                             --name value, -n value  The user name
                                          
                                          Error: flag provided but not defined: -tokenAfcFU5cPIn5N_D8HEk_FBSDHFkPARR1atQ7woh-JFzwLTCeSp_2JS4zla7GN95RH4EtMCg8snxfPEncXS4hUjg
                                          Andy@homebridge:~ $
                                          
                                          Marc Berg 2 Replies Last reply Reply Quote 0
                                          • Marc Berg
                                            Marc Berg Most Active @Damrak2022 last edited by Marc Berg

                                            @damrak2022 ja logisch, da fehlt das Leerzeichen hinter "token"
                                            098c04a2-aa81-4450-8d3c-09965dd79e23-grafik.png

                                            Damrak2022 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

                                            828
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            214
                                            16130
                                            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