Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Fehler bei Backup-Erstellung - influxdb [gelöst]

    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

    Fehler bei Backup-Erstellung - influxdb [gelöst]

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas123 0
      Thomas123 0 last edited by Thomas123 0

      Hallo,
      ich bekomme nach dem (automatischen) Backup folgende Meldung:

      19.10.2024, 02:43:07
      Ihr Backup wurde nicht vollständig erstellt. Bitte überprüfen Sie die Fehler!!
      
      influxDB: Error: Command failed: influxd backup -portable -database iobroker "/opt/iobroker/backups/influxDB_2024_10_19-02_42_16_iobroker_backupiobroker"
      Error: unknown shorthand flag: 'p' in -portable
      See 'influxd -h' for help
      

      Mit der Hilfe komme ich nicht wirklich klar.

      Wie kann ich den Fehler beheben?

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

        @thomas123-0 sagte in Fehler bei Backup-Erstellung - influxdb:

        Welche Versionen von influxdb laufen da? Sowohl Server wie auch Client.

        Das sieht mir nach Kommandos für influxdb1 aus. Versuchst du damit ein Backup von influxdb2 zu erstellen?

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

          @thomas123-0 sagte in Fehler bei Backup-Erstellung - influxdb:

          Wie kann ich den Fehler beheben?

          Das ist sehr wahrscheinlich ein Versions-Mismatch. Zusätzlich zu den Fragen von @Thomas-Braun bitte noch die Einstellungen in Backitup zeigen, und ob die InfluxDB auf dem selben Host läuft.

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

            @Thomas-Braun @marc-berg

            Der Adapter hat die Version 4.0.2, InfluxDB v2.7.5.

            ioBroker und influxDB laufen auf dem Raspberry

            Hier die Einstellungen Backup
            Screenshot 2024-10-21 192343.png

            Ich hatte an den Einstellungen Backup nichts geändert. Soll ich jetzt dort bei Datenbankversion "2" auswählen?

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

              @thomas123-0

              Ja, natürlich. Die Backup-Befehle passen sich damit an die verwendete Version von influxdb an.

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

                @thomas-braun
                Erst einmal vielen Dank für die Hilfe.

                Ich habe jetzt Datenbankversion 2 x ausgewählt, einen neuen Token erstellt und eingefügt. Heute habe ich ein Backup erstellt und bekomme wieder Fehler. Wo hab ich jetzt etwas falsch gemacht?

                [DEBUG] [iobroker] host.iob 62175 states saved
                [DEBUG] [iobroker] host.iob 72607 objects saved
                [DEBUG] [iobroker] Backup created: /opt/iobroker/backups/iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                This backup can only be restored with js-controller version up from 4.1
                [DEBUG] [iobroker] done
                [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_2024_10_24-19_33_39_iobroker_backupiobroker"
                [DEBUG] [influxDB] InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2024_10_24-19_33_39_iobroker_backupiobroker" successfully deleted
                [DEBUG] [influxDB]
                [ERROR] [influxDB] Error: Command failed: influx backup --bucket iobroker -t ***token*** "/opt/iobroker/backups/influxDB_2024_10_24-19_33_39_iobroker_backupiobroker"
                2024/10/24 19:33:39 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
                [DEBUG] [onedrive] Onedrive: Copy iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz...
                [DEBUG] [onedrive] 5% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 11% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 16% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 21% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 26% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 32% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 37% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 42% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 47% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 53% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 58% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 63% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 69% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 74% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 79% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 84% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 90% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 95% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] 100% uploaded from iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz
                [DEBUG] [onedrive] iobroker_2024_10_24-19_31_52_iobroker_backupiobroker.tar.gz with Id: D0D3552B54979FB9!sef7d83a917e34676be85c8a08efb9fd4 saved on Onedrive
                [ERROR] [onedrive] Onedrive: File "/opt/iobroker/backups/influxDB_2024_10_24-19_33_39_iobroker_backupiobroker.tar.gz" not found
                [DEBUG] [onedrive] done
                [ERROR] [clean] Backup files not deleted from /opt/iobroker/backups because some errors.
                [DEBUG] [clean] done
                [DEBUG] [historyHTML] new history html values created
                [DEBUG] [historyHTML] done
                [DEBUG] [historyJSON] new history json values created
                [DEBUG] [historyJSON] done
                [DEBUG] [whatsapp] [iobroker] used WhatsApp-Instance: whatsapp-cmb.0
                [DEBUG] [whatsapp] done
                [DEBUG] [notification] Admin notification will be sent
                [DEBUG] [notification] done
                
                Thomas Braun Marc Berg 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Thomas123 0 last edited by

                  @thomas123-0 sagte in Fehler bei Backup-Erstellung - influxdb:

                  401 Unauthorized: read:authorizations is unauthorized

                  Da wird wohl it dem Token was nicht stimmmen. Gibt ja soweit ich weiß da mehrere. Da bin ich aber nicht genug im Themma drin. @Marc-Berg ist hier der influx-Spezi.

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

                    @thomas123-0 sagte in Fehler bei Backup-Erstellung - influxdb:

                    einen neuen Token erstellt und eingefügt

                    Da geht nicht "jeder" Token, den man sich auf der Oberfläche neu erstellt. Idealer Weise hast du noch den Operatortoken aus der Erst-Installation. Sonst:

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

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

                      @marc-berg
                      Dankeschön.
                      Ich habe jetzt versucht, den Token wieder herzustellen. Aber auch da mache ich etwas falsch...

                      thomas@iob:~ $ sudo influxd recovery auth create-operator --org Tom --username Tom --bolt-path /var/lib/influxdb2/influxd.bolt
                      2024-10-25T09:20:31.313905Z     info    Resources opened        {"log_id": "0sSkUSGW000", "system": "bolt-kvstore", "path": "/var/lib/influxdb2/influxd.bolt"}
                      Error: bucket "authorizationsv1": bucket not found
                      

                      Edit:
                      Wer lesen kann ist schwer im Vorteil ...

                      bolt-path war falsch.

                      Danke für die Hilfe und Geduld mit einem Dummy

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

                        @thomas123-0 sagte in Fehler bei Backup-Erstellung - influxdb:

                        Edit:
                        Wer lesen kann ist schwer im Vorteil ...
                        bolt-path war falsch.

                        Das heißt, du warst jetzt erfolgreich?

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

                          @marc-berg

                          Ja, hat jetzt alles geklappt.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          526
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

                          3
                          11
                          427
                          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