Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. Kein Backup mit Iobroker Backitup von Influxdb2 im Docker

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Kein Backup mit Iobroker Backitup von Influxdb2 im Docker

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

      Hallo,

      habe iobroker im Docker Container installiert und auch als package influxdb-cli mit installiert. Influxdb läuft schon länger im Docker Container. beides auf einer Synology DS220+. Alles was ich hier beschreibe, habe ich auch bereits von einer Iobroker Instanz, die auf einem Raspi 4 läuft, probiert.
      Wie viele andere hier scheitert es auch bei mir vermutlich an den Operator Token. Ich kenne auch die Anleitungen, wie man an dieses Token kommen kann und genau da liegt vermutlich mein Problem. Laut dieser Anleitung soll man ja die Influxdb stoppen mit "sudo service influxdb stop". Bereits da kommt auf der Kommandzeile der Hinweis, dass sudo unbekannt ist. Da ich eh als root angemeldet bin, dachte ich, dann lass ich sudo weg. dann kommt der Hinweis, dass der service influxdb nicht bekannt ist.
      Hat jemand von euch einen rat, wie ich an diesen blöden "Ersteinrichtungstoken", den ich mir natürlich nicht aufgeschrieben habe, komme?

      Ich hab schon probiert:
      influxd recovery auth create-operator --org <org> --username <user> --bolt-path "/var/lib/influxdb2/influxd.bolt" ->Da bekomme ich einen Timeout beim öffnen der Boltdb.

      influx auth list -t DPEvh6DfNekku8-GB6M61vNyy7hdfwh69e_r1bAmpK0Eyctz78bkzVeSJzw9at5D0CJLEhRsfd0egdN3E76Xog== --json zeigt mir zwar 2 Tokens an, aber wohl nicht die richtigen:
      [
      {
      "id": "0c2664912149c000",
      "description": "",
      "token": "50wiRaQMGNmHrOzTrOuMWvJ8wrz48EQ3WEVGgjuNAuG_5qzsqacc4m20ltuPOqrcHUVUo_l72v4w2fB3FOW_sQ==",
      "status": "active",
      "userName": "juergen",
      "userID": "0c26632c17c9c000",
      "permissions": [
      "read:orgs/9711a239af255273/annotations",
      "write:orgs/9711a239af255273/annotations",
      "read:orgs/9711a239af255273/authorizations",
      "write:orgs/9711a239af255273/authorizations",
      "read:orgs/9711a239af255273/buckets",
      "write:orgs/9711a239af255273/buckets",
      "read:orgs/9711a239af255273/checks",
      "write:orgs/9711a239af255273/checks",
      "read:orgs/9711a239af255273/dashboards",
      "write:orgs/9711a239af255273/dashboards",
      "read:orgs/9711a239af255273/dbrp",
      "write:orgs/9711a239af255273/dbrp",
      "read:orgs/9711a239af255273/documents",
      "write:orgs/9711a239af255273/documents",
      "read:orgs/9711a239af255273/labels",
      "write:orgs/9711a239af255273/labels",
      "read:orgs/9711a239af255273/notebooks",
      "write:orgs/9711a239af255273/notebooks",
      "read:orgs/9711a239af255273/notificationEndpoints",
      "write:orgs/9711a239af255273/notificationEndpoints",
      "read:orgs/9711a239af255273/notificationRules",
      "write:orgs/9711a239af255273/notificationRules",
      "read:/orgs/9711a239af255273",
      "read:orgs/9711a239af255273/remotes",
      "write:orgs/9711a239af255273/remotes",
      "read:orgs/9711a239af255273/replications",
      "write:orgs/9711a239af255273/replications",
      "read:orgs/9711a239af255273/scrapers",
      "write:orgs/9711a239af255273/scrapers",
      "read:orgs/9711a239af255273/secrets",
      "write:orgs/9711a239af255273/secrets",
      "read:orgs/9711a239af255273/sources",
      "write:orgs/9711a239af255273/sources",
      "read:orgs/9711a239af255273/tasks",
      "write:orgs/9711a239af255273/tasks",
      "read:orgs/9711a239af255273/telegrafs",
      "write:orgs/9711a239af255273/telegrafs",
      "read:/users/0c26632c17c9c000",
      "write:/users/0c26632c17c9c000",
      "read:orgs/9711a239af255273/variables",
      "write:orgs/9711a239af255273/variables",
      "read:orgs/9711a239af255273/views",
      "write:orgs/9711a239af255273/views"
      ]
      },
      {
      "id": "0cafceb57573a000",
      "description": "New after changing Org",
      "token": "DPEvh6DfNekku8-GB6M61vNyy7hdfwh69e_r1bAmpK0Eyctz78bkzVeSJzw9at5D0CJLEhRsfd0egdN3E76Xog==",
      "status": "active",
      "userName": "juergen",
      "userID": "0c26632c17c9c000",
      "permissions": [
      "read:orgs/9711a239af255273/annotations",
      "write:orgs/9711a239af255273/annotations",
      "read:orgs/9711a239af255273/authorizations",
      "write:orgs/9711a239af255273/authorizations",
      "read:orgs/9711a239af255273/buckets",
      "write:orgs/9711a239af255273/buckets",
      "read:orgs/9711a239af255273/checks",
      "write:orgs/9711a239af255273/checks",
      "read:orgs/9711a239af255273/dashboards",
      "write:orgs/9711a239af255273/dashboards",
      "read:orgs/9711a239af255273/dbrp",
      "write:orgs/9711a239af255273/dbrp",
      "read:orgs/9711a239af255273/documents",
      "write:orgs/9711a239af255273/documents",
      "read:orgs/9711a239af255273/labels",
      "write:orgs/9711a239af255273/labels",
      "read:orgs/9711a239af255273/notebooks",
      "write:orgs/9711a239af255273/notebooks",
      "read:orgs/9711a239af255273/notificationEndpoints",
      "write:orgs/9711a239af255273/notificationEndpoints",
      "read:orgs/9711a239af255273/notificationRules",
      "write:orgs/9711a239af255273/notificationRules",
      "read:/orgs/9711a239af255273",
      "read:orgs/9711a239af255273/remotes",
      "write:orgs/9711a239af255273/remotes",
      "read:orgs/9711a239af255273/replications",
      "write:orgs/9711a239af255273/replications",
      "read:orgs/9711a239af255273/scrapers",
      "write:orgs/9711a239af255273/scrapers",
      "read:orgs/9711a239af255273/secrets",
      "write:orgs/9711a239af255273/secrets",
      "read:orgs/9711a239af255273/sources",
      "write:orgs/9711a239af255273/sources",
      "read:orgs/9711a239af255273/tasks",
      "write:orgs/9711a239af255273/tasks",
      "read:orgs/9711a239af255273/telegrafs",
      "write:orgs/9711a239af255273/telegrafs",
      "read:/users/0c26632c17c9c000",
      "write:/users/0c26632c17c9c000",
      "read:orgs/9711a239af255273/variables",
      "write:orgs/9711a239af255273/variables",
      "read:orgs/9711a239af255273/views",
      "write:orgs/9711a239af255273/views"
      ]
      }
      ]

      Bin für jeden Tipp dankbar. Ich hoffe ich habe erstmal alle notwendigen Informationen geliefert.

      Thomas Braun Marc Berg 3 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @jutr last edited by

        @jutr sagte in Kein Backup mit Iobroker Backitup von Influxdb2 im Docker:

        dann kommt der Hinweis, dass der service influxdb nicht bekannt ist.

        Der Docker verwendet kein systemd, weswegen dessen Kommandos da nicht funktionieren.

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

          @jutr sagte in Kein Backup mit Iobroker Backitup von Influxdb2 im Docker:

          /var/lib/influxdb2/influxd.bolt"

          Das Ganze ist unter Docker etwas tricky, aber machbar, wenn man nicht auf Kriegsfuß mit der Linux Kommandozeile steht. Das Problem besteht darin, dass du für den Befehl die Influxdb beenden müsstest, sich aber damit der gesamte Container terminiert.

          So ist grob eine Möglichkeit:

          1. Kopie der influxd.bolt machen, z.B. influxd-neu.bolt
          2. "influxd recovery auth create-operator ..." auf der Kopie machen
          3. Container beenden
          4. die vorher erstellte Kopie "von außen" umbenennen nach influxd.bolt
          5. Container wieder starten, mit "influx auth list ..." Token anzeigen

          EDIT: prüfen, ob die Zugriffsrechte der "neuen" influxd.bolt identisch mit der alten sind!

          EDIT: Schreibfehler beseitigt

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

            @jutr

            Alternativ könntest du auch einen neue Influxdb aufsetzen, dein Backup zurückspielen und diesmal den Löschfinger stillhalten. 😉

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

              @marc-berg
              Hat geklappt mit Kopie von influxd.bolt! Super Danke 🙂

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

              Support us

              ioBroker
              Community Adapters
              Donate

              733
              Online

              31.7k
              Users

              79.7k
              Topics

              1.3m
              Posts

              3
              5
              216
              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