Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. InfluxDB Restore über Backitup nicht möglich

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    InfluxDB Restore über Backitup nicht möglich

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

      @kilian-0

      ls -la /usr/bin/influx
      influx version
      influxd version
      

      sagt?
      Und was genau ist da installiert?

      sudo apt update
      apt policy influx*
      
      K 1 Reply Last reply Reply Quote 0
      • K
        Kilian 0 @Thomas Braun last edited by

        @thomas-braun Scheint als hättest du recht aber kapieren tue ich es nicht.

        smartmeter@raspberrypi:~ $ ls -la /usr/bin/influx
        influx version
        influxd version
        ls: cannot access '/usr/bin/influx': No such file or directory
        -bash: influx: command not found
        InfluxDB v2.7.8 (git: 18c989726c) build_date: 2024-07-25T19:55:35Z
        
        

        Und:

        
        smartmeter@raspberrypi:~ $ sudo apt update
        
        apt policy influx*
        Hit:1 http://deb.debian.org/debian bookworm InRelease
        Hit:2 http://archive.raspberrypi.com/debian bookworm InRelease
        Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
        Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
        Hit:5 https://repos.influxdata.com/debian stable InRelease
        Get:6 https://repos.influxdata.com/debian bookworm InRelease [12.9 kB]
        Hit:7 https://deb.nodesource.com/node_20.x nodistro InRelease
        Err:6 https://repos.influxdata.com/debian bookworm InRelease
          The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
        Reading package lists... Done
        W: GPG error: https://repos.influxdata.com/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
        E: The repository 'https://repos.influxdata.com/debian bookworm InRelease' is not signed.
        N: Updating from such a repository can't be done securely, and is therefore disabled by default.
        N: See apt-secure(8) manpage for repository creation and user configuration details.
        N: Unable to locate package influxdata-archive_compat.key
        N: Unable to locate package influxdb2_2.7.8-1_arm64.deb
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Kilian 0 last edited by

          @kilian-0

          Dann hast du das auch nicht über den Paketmanager installiert und stattdessen irgendwas irgendwie in das System geknüppelt. Denn weder die Datei influxdata-archive_compat.key noch influxdb2_2.7.8-1_arm64.deb haben an der Stelle was zu suchen...

          rm influx*
          sudo rm /etc/apt/sources.list.d/influ*
          wget -q https://repos.influxdata.com/influxdata-archive_compat.key
          echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
          echo 'deb [signed-by=/usr/share/keyrings/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
          rm influxdata-archive_compat.key
          

          Dann sauber installieren

          sudo apt update
          sudo apt install influxdb2 influxdb2-cli
          
          1 Reply Last reply Reply Quote 0
          • K
            Kilian 0 last edited by Kilian 0

            Ja tatsächlich. Ich habe die Paketbefehle nicht gefunden. Vielen Danke ich werde berichten.

            Update: Vielen Dank deine Hilfe hat das Problem behoben. Habe meine alten Werte wieder in der DB.

            VG

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

              @kilian-0

              Lesson learned:
              Für Softwareinstallationen immer den Paketmanager verwenden.

              1 Reply Last reply Reply Quote 0
              • O
                opöl last edited by opöl

                Hallo zusammen,

                beim Versuch, meine Influx 1 DB von meinem Raspberry auf einen Futro zu übertragen komme ich auch nicht so richtig voran und bin auf diesen Beitrag gestoßen. Da ich einen ähnlichen Fehler bei mir vermutet habe, bin ich der Anleitung von @Thomas-Braun in diesem Beitrag gefolgt, bekomme aber bei der Neuinstallation die folgende Meldung.
                /usr/bin/influx und
                /var/cache/apt/archives/influxdb_1.8.10-1_amd64.deb
                wurden bereits gelöscht.

                @futro:/usr/bin$ sudo apt-get update && sudo apt-get install influxdb
                OK:1 http://de.archive.ubuntu.com/ubuntu noble InRelease
                OK:2 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease
                OK:3 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
                OK:4 http://security.ubuntu.com/ubuntu noble-security InRelease
                OK:5 https://apt.grafana.com stable InRelease
                OK:6 https://repos.influxdata.com/debian stable InRelease
                OK:7 https://deb.nodesource.com/node_20.x nodistro InRelease
                Fehl:6 https://repos.influxdata.com/debian stable InRelease
                  Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY D8FF8E1F7DF8B07E
                Paketlisten werden gelesen… Fertig
                W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: https://repos.influxdata.com/debian stable InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY D8FF8E1F7DF8B07E
                W: Fehlschlag beim Holen von https://repos.influxdata.com/debian/dists/stable/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY D8FF8E1F7DF8B07E
                W: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
                Paketlisten werden gelesen… Fertig
                Abhängigkeitsbaum wird aufgebaut… Fertig
                Statusinformationen werden eingelesen… Fertig
                Die folgenden NEUEN Pakete werden installiert:
                  influxdb
                0 aktualisiert, 1 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
                Es müssen noch 0 B von 54,4 MB an Archiven heruntergeladen werden.
                Nach dieser Operation werden 153 MB Plattenplatz zusätzlich benutzt.
                (Lese Datenbank ... 146163 Dateien und Verzeichnisse sind derzeit installiert.)
                Vorbereitung zum Entpacken von .../influxdb_1.8.10-1_amd64.deb ...
                Entpacken von influxdb (1.8.10-1) ...
                dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/influxdb_1.8.10-1_amd64.deb (--unpack):
                 Versuch, »/usr/bin/influx« zu überschreiben, welches auch in Paket influxdb-client 1.6.7~rc0-2ubuntu0.24.04.1 ist
                dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Broken pipe) getötet
                Failed to disable unit: Unit file influxdb.service does not exist.
                Fehler traten auf beim Bearbeiten von:
                 /var/cache/apt/archives/influxdb_1.8.10-1_amd64.deb
                E: Sub-process /usr/bin/dpkg returned an error code (1)
                

                Hat jemand eine Idee dazu?

                Danke und Gruß

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @opöl last edited by Thomas Braun

                  @opöl sagte in InfluxDB Restore über Backitup nicht möglich:

                  influxdb-client

                  sudo apt remove influxdb-client
                  

                  Zuvor aber das influx-Repo neuanlegen:

                  https://forum.iobroker.net/topic/59231/phantastische-repositories-und-wo-sie-zu-finden-sind

                  1 Reply Last reply Reply Quote 0
                  • O
                    opöl last edited by

                    @Thomas-Braun ,

                    bis dahin kein Fehler, aber dann:

                    @futro:/usr/share/keyrings$ echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdata-archive_compat.gpg > /dev/null
                    sha256sum: influxdata-archive_compat.key: No such file or directory
                    influxdata-archive_compat.key: FAILED open or read
                    sha256sum: WARNING: 1 listed file could not be read
                    
                    

                    Der Inhalt des Ordners:

                    l@futro:/usr/share/keyrings$ ls
                    influxdata-archive_compat.gpg       ubuntu-pro-cis.gpg
                    ubuntu-archive-keyring.gpg          ubuntu-pro-esm-apps.gpg
                    ubuntu-archive-removed-keys.gpg     ubuntu-pro-esm-infra.gpg
                    ubuntu-cloudimage-keyring.gpg       ubuntu-pro-fips.gpg
                    ubuntu-cloudimage-removed-keys.gpg  ubuntu-pro-fips-preview.gpg
                    ubuntu-master-keyring.gpg           ubuntu-pro-realtime-kernel.gpg
                    ubuntu-pro-anbox-cloud.gpg          ubuntu-pro-ros.gpg
                    ubuntu-pro-cc-eal.gpg
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @opöl last edited by

                      @opöl
                      Stell dich in dein Home.

                      O N 2 Replies Last reply Reply Quote 0
                      • O
                        opöl @Thomas Braun last edited by

                        @thomas-braun ,

                        danke. Das war es.
                        Meine Schritte, um die influx 1.8 DB auf ein neues System zu übertragen habe ich hier dokumentiert:
                        https://forum.iobroker.net/topic/77362/keine-grafana-dashboards-nach-systemwechsel?_=1729892070152

                        Gruß

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

                          @thomas-braun Ich habe Probleme meine Influxdb-Konfiguration und -Datenbanken (3 Instanzen) mittels Backitup auf einen neuen RasPi zu übertragen.

                          Wie bin ich vorgegangen:

                          • Stopp der Influxdb-Instanzen auf meinem Alt-RasPi
                          • Ausführen von Backitup auf Alt-RasPi
                          • Kopieren der Sicherungsdatei in den Pfad /opt/iobroker/backups des Neu-RasPi
                          • Installation des Adapters Influxdb auf dem Neu-RasPi mit 3 Instanzen
                          • Restore auf dem Neu-RasPi

                          Nach komplettem Restoredurchlauf verweist die Instanz des Neu-RasPi auf die IP-Adresse des Alt-RasPi!
                          Wie bekomme ich es hin, dass die Instanzen des Neu-RasPi auf die übertragenen Daten des Neu-RasPi zugreift?

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

                            @nobbiman

                            iob host this
                            

                            mal versuchen.

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

                              @thomas-braun

                              pi@raspberrypi:~ $ iobroker stop
                              pi@raspberrypi:~ $ iob host this
                              A host with the name "raspberrypi" already exists!
                              pi@raspberrypi:~ $
                              

                              Heißt das ich muss meinen Neu-RasPi umbenennen?

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

                                @nobbiman

                                Joh...
                                Es darf in einem Netzwerk nicht zwei gleiche hostnames geben. Wohhin soll denn der arme Router die Pakete senden?
                                Davon abgesehen ändert man den User wie auch den hostname während der Installation auf eigene Namen ab.
                                Also nicht pi@raspberrypi.

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

                                  @thomas-braun Wenn ich den Hostnamen ändere, muss ich dann den RasPi komplett neu aufsetzen oder reicht diese Änderung und Neuinstallation des ioBroker und danach das Restore?

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

                                    @nobbiman

                                    Den hostname am besten in

                                    raspi-config
                                    

                                    ändern.

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

                                      @thomas-braun ... und jetzt ein neues Restore ?

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

                                        @nobbiman

                                        Nein. Jetzt den neuen hostname im iobroker bekannt machen.

                                        iob host this
                                        
                                        N 1 Reply Last reply Reply Quote 0
                                        • N
                                          nobbiman @Thomas Braun last edited by

                                          @thomas-braun

                                          pi@ioBraspi:~ $ iobroker stop
                                          pi@ioBraspi:~ $ iob host this
                                          A host with the name "ioBraspi" already exists!
                                          

                                          Das verstehe ich nicht, der Alt-RasPi trägt den Hostnamen 'RasPi-ioBroker'

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @nobbiman last edited by

                                            @nobbiman sagte in InfluxDB Restore über Backitup nicht möglich:

                                            Das verstehe ich nicht, der Alt-RasPi trägt den Hostnamen 'RasPi-ioBroker'

                                            und der neue?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            500
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            56
                                            2284
                                            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