Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. mit backitup kein Influxdb und Grafana backup möglich

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    mit backitup kein Influxdb und Grafana backup möglich

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Willi-Wunder last edited by Willi-Wunder

      @marc-berg
      Hi, gerade mal ausprobiert, scheinbar habe ich nicht den richtigen Token, kommt die Fehlermeldung 401 nachdem ich den Pfad gelöscht habe.

      In Influx hab ich diese API Token, der "Iobroker" war schon vorhanden, dieser Token ist ja bereits im Influx Adapter hinterlegt, der gleiche wurde ja auch in Backitup eingetragen. Brauche ja aber einen "Custom Token" wenn ich das richtig verstanden habe. Hab hier mal einen neuen Token mit "Backitup" angelegt und diesen dann im Adapter Backitup benutzt, geht leider auch nicht.
      API.jpg

      Beim Herstellen über die Konsole bin ich leider auch nicht weitergekommen.

      pi@iobroker:~ $ sudo influxd recovery auth create-operator --org my-org --username Markus --bolt-path /var/lib/influxdb2/influxd.bolt
      2023-12-26T21:07:11.725123Z     info    Resources opened        {"log_id": "0mL~5Mvl000", "system": "bolt-kvstore", "path": "/var/lib/influxdb2/influxd.bolt"}
      Error: bucket "authorizationsv1": bucket not found
      See 'influxd -h' for help
      

      Auf das Verzeichnis konnte ich leider nicht zugreifen (WinSCP), vermutlich liegt es am Recht.
      Verzei.jpg

      Das Verzeichnis sollte aber passen

      pi@iobroker:~ $ sudo find / -name influxd.bolt
      find: '/run/user/1000/doc': Permission denied
      find: '/run/user/1000/gvfs': Permission denied
      /var/lib/influxdb2/influxd.bolt
      /var/lib/influxdb/influxd.bolt
      

      Hab die Datei aber 2x gefunden, paßt das???

      Die Ausgabe mit dem vorhandenen "Iobroker" Token influx auth list -t <TOKEN> --json ergibt das hier:

      pi@iobroker:~ $ influx auth list -t 74VTRbf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxYAiIWp9rmexTYHJbxa1I0dQ_wNkqkexV7A== --json
      Error: could not find authorization with given parameters: Get "http://localhost:8086/api/v2/authorizations": dial tcp [::1]:8086: connect: connection refused
      

      Ich habe es doch richtig verstanden, dass der bereits angelegte "Iobroker" Token für den Adapter InfluxDB ist und beim Adpater Backitup ein "Custom Token" benötigt wird, oder?

      Es hakt hier also noch irgendwo. 😕

      simatec 1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active @Willi-Wunder last edited by

        @willi-wunder Lösche den Pfad in den Settings von Backitup und installiere influxdb-cli
        influxd ist lediglich zur Sicherung von InfluxDB 1.x geeignet. Für InfluxDB 2.x wird influxdb-cli benötigt.

        W 1 Reply Last reply Reply Quote 0
        • W
          Willi-Wunder @simatec last edited by

          @simatec
          Zum aktivieren nehme ich dann das hier?

          influx config create --config-name CONFIG_NAME
           \
            --host-url https://us-west-2-1.aws.cloud2.influxdata.com
           \
            --org ORG (my-org)
           \
            --token API_TOKEN (meinen 1. Token vom Iobroker?)
           \
            --active
          

          Vielen Dank.

          simatec 1 Reply Last reply Reply Quote 0
          • simatec
            simatec Developer Most Active @Willi-Wunder last edited by

            @willi-wunder Du musst nix aktivieren ... Deine InfluxDB läuft doch bereits

            W 1 Reply Last reply Reply Quote 0
            • W
              Willi-Wunder @simatec last edited by Willi-Wunder

              @simatec
              Heißt das hier so lassen und den gleichen Token wie im InfluxDB Adapter so eintragen?

              Influx2.jpg

              Nachtrag:
              Das habe ich installiert: wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.3-linux-amd64.tar.gz

              simatec 3 Replies Last reply Reply Quote 0
              • simatec
                simatec Developer Most Active @Willi-Wunder last edited by

                @willi-wunder Wenn es der Operator-Token ist dann ja

                1 Reply Last reply Reply Quote 0
                • simatec
                  simatec Developer Most Active @Willi-Wunder last edited by

                  @willi-wunder sagte in mit backitup kein Influxdb und Grafana backup möglich:

                  Das habe ich installiert: wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.3-linux-amd64.tar.gz

                  Damit lädst du nur die Datei herunter ... Installiert ist es damit nicht

                  W 1 Reply Last reply Reply Quote 0
                  • simatec
                    simatec Developer Most Active @Willi-Wunder last edited by

                    @willi-wunder Zeige bitte die Ausgabe von apt policy influx*

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      Willi-Wunder @simatec last edited by

                      @simatec
                      Ja mit tar xvzf ./influxdb2-client-2.7.3-linux-amd64.tar.gz auch installiert.

                      Scheinbar ist der hinterlegte Token im Inluxdb Adapter nicht der Operator Token.

                      [DEBUG] [influxDB] - InfluxDB-Backup started ...
                      [DEBUG] [influxDB] - Start InfluxDB Backup ...
                      [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                      [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_12_26-22_50_51_backupiobroker"
                      [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_12_26-22_50_51_backupiobroker" successfully deleted
                      [DEBUG] [influxDB] - 
                      [ERROR] [influxDB] - Error: Command failed: influx backup --bucket Iobroker -t 74VTRbf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxPhY5hNuxX43QdnYAiIWp9rmexTYHJbxa1I0dQ_wNkqkexV7A== "/opt/iobroker/backups/influxDB_2023_12_26-22_50_51_backupiobroker"
                      2023/12/26 22:50:51 INFO: Downloading metadata snapshot
                      Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized
                      
                      [DEBUG] [influxDB] - InfluxDB-Backup for is finish
                      [DEBUG] [influxDB] - done
                      

                      Mit influx auth list -t <ein all access token> bekomme ich nichts brauchbares. Hier sollte ja eine Liste kommen wo dieser auch drin steht.

                      pi@iobroker:~ $ influx auth list -t 74VTRbf_Qc6sAxxxxxxxxxxxxxxxxxxxxxxxxxxxNuxX43QdnYAiIWp9rmexTYHJbxa1I0dQ_wNkqkexV7A== --json
                      -bash: /usr/local/bin/influx: cannot execute binary file: Exec format error
                      

                      Was mache ich noch falsch?

                      simatec 1 Reply Last reply Reply Quote 0
                      • W
                        Willi-Wunder @simatec last edited by

                        @simatec sagte in mit backitup kein Influxdb und Grafana backup möglich:

                        apt policy influx*

                        pi@iobroker:~ $ apt policy influx*
                        N: Unable to locate package influx
                        N: Unable to locate package influxdata-archive_compat.key
                        N: Unable to locate package influxdata-archive_compat.key.1
                        N: Unable to locate package influxdb2-client-2.3.0-linux-amd64.tar.gz
                        N: Couldn't find any package by glob 'influxdb2-client-2.3.0-linux-amd64.tar.gz'
                        N: Unable to locate package influxdb2-client-2.7.3-linux-amd64.tar.gz
                        N: Couldn't find any package by glob 'influxdb2-client-2.7.3-linux-amd64.tar.gz'
                        

                        Ähm, das sieht aber nicht gut aus, InfluxDB läuft aber......

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • simatec
                          simatec Developer Most Active @Willi-Wunder last edited by

                          @willi-wunder sagte in mit backitup kein Influxdb und Grafana backup möglich:

                          Mit influx auth list -t <ein all access token> bekomme ich nichts brauchbares. Hier sollte ja eine Liste kommen wo dieser auch drin steht.
                          pi@iobroker:~ $ influx auth list -t 74VTRbf_Qc6sAxxxxxxxxxxxxxxxxxxxxxxxxxxxNuxX43QdnYAiIWp9rmexTYHJbxa1I0dQ_wNkqkexV7A== --json -bash: /usr/local/bin/influx: cannot execute binary file: Exec format error
                          Was mache ich noch falsch?

                          Versuche es mal mit sudo

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            Willi-Wunder @simatec last edited by

                            @simatec

                            pi@iobroker:~ $ sudo influx auth list -t 74VTRbf_Qc6sAG_xxxxxxxxxxxxxxxxxxxxxxxxxxxxdnYAiIWp9rmexTYHJbxa1I0dQ_wNkqkexV7A== --json
                            /usr/local/bin/influx: 1: Syntax error: ")" unexpected
                            
                            
                            simatec 1 Reply Last reply Reply Quote 0
                            • simatec
                              simatec Developer Most Active @Willi-Wunder last edited by

                              @willi-wunder poste den kompletten Befehl inkl. Token... Der ist bei dir lokal und es kann niemand etwas mit anfangen

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                Willi-Wunder @simatec last edited by Willi-Wunder

                                @simatec

                                sudo influx auth list -t 74VTRbf_Qc6sAG_goAo4AMkdEdPKkPdWFyxVzrPhY5hNuxX43QdnYAiIWp9rmexTYHJbxa1I0dQ_wNkqkexV7A== --json
                                

                                InfluxA.jpg

                                simatec 1 Reply Last reply Reply Quote 0
                                • simatec
                                  simatec Developer Most Active @Willi-Wunder last edited by

                                  @willi-wunder Läuft Influxdb auf dem gleichen System wie iobroker?

                                  W 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Willi-Wunder last edited by Thomas Braun

                                    @willi-wunder

                                    Software wird nicht so installiert, man verwendet einen Paketmanager.

                                    sudo apt install PAKETNAME
                                    

                                    Das entsprechende Repository muss zuvor ggfs . installiert werden.

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      Willi-Wunder @simatec last edited by

                                      @simatec sagte in mit backitup kein Influxdb und Grafana backup möglich:

                                      @willi-wunder Läuft Influxdb auf dem gleichen System wie iobroker?

                                      Ja

                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Willi-Wunder last edited by

                                        @willi-wunder

                                        cd
                                        rm influx*
                                        sudo apt update
                                        apt policy influx*
                                        
                                        W 1 Reply Last reply Reply Quote 0
                                        • W
                                          Willi-Wunder @Thomas Braun last edited by Willi-Wunder

                                          @thomas-braun

                                          pi@iobroker:~ $ apt policy influx*
                                          influxdb2-cli:
                                            Installed: 2.7.3-1
                                            Candidate: 2.7.3-1
                                            Version table:
                                           *** 2.7.3-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                                  100 /var/lib/dpkg/status
                                               2.7.1-2 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.6.1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.6.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.5.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.4.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.3.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                          influxdb-client:
                                            Installed: (none)
                                            Candidate: 1.6.7~rc0-1+b13
                                            Version table:
                                               1.6.7~rc0-1+b13 500
                                                  500 http://deb.debian.org/debian bookworm/main arm64 Packages
                                          influxdb-dev:
                                            Installed: (none)
                                            Candidate: (none)
                                            Version table:
                                          influxdb2-client:
                                            Installed: (none)
                                            Candidate: 2.7.1-1
                                            Version table:
                                               2.7.1-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                          influxdb:
                                            Installed: (none)
                                            Candidate: 1.8.10-1
                                            Version table:
                                               1.8.10-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               1.6.7~rc0-1+b13 500
                                                  500 http://deb.debian.org/debian bookworm/main arm64 Packages
                                          influxctl:
                                            Installed: (none)
                                            Candidate: 2.4.2
                                            Version table:
                                               2.4.2 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.4.1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.4.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.3.1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.3.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.2.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.1.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.0.4 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.0.3 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.0.2 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.0.1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.0.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                          influxdb2:
                                            Installed: 2.7.4-1
                                            Candidate: 2.7.4-1
                                            Version table:
                                           *** 2.7.4-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                                  100 /var/lib/dpkg/status
                                               2.7.3-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.7.1-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.7.0-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.6.1-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.6.0-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.5.1-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.4.0-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.3.0-1 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                               2.2.0 500
                                                  500 https://repos.influxdata.com/debian stable/main arm64 Packages
                                          
                                          

                                          Danke, sieht jetzt schon besser aus 🙂

                                          simatec 1 Reply Last reply Reply Quote 0
                                          • simatec
                                            simatec Developer Most Active @Willi-Wunder last edited by

                                            @willi-wunder

                                            sudo apt install influxdb2-client
                                            
                                            W 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            119
                                            7465
                                            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