Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Grafana
    5. Fehler bei Wiederherstellung von Grafana

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Fehler bei Wiederherstellung von Grafana

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

      @thomas-braun

      Der Fehler ist immer noch da, auch wenn ich nur die Konsole benutze.

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

        @thomas-braun

        Es gibt in der IOB Log diese Meldung:

        DATA: {"type":"nas / copy","fileName":"/opt/iobroker/backups/grafana_2024_12_08-02_41_41_backupiobroker.tar.gz","currentTheme":"none","currentProtocol":"http:","stopIOB":false}
        

        Ist stopIOB (false) OK?

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

          @wibear

          Das scheint sich singulär auf das Grafana-Backup zu beziehen.
          Kann ich aber nix zu sagen, verwende ich nicht.

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

            @wibear sagte in Fehler bei Wiederherstellung von Grafana:

            11:00:55.290DEBUGgrafanacannot restore dashboard "temperatur-shelly": {"message":"Unauthorized","traceID":""}                                                                                                                                                                            11:00:55.294DEBUGgrafanacannot restore dashboard "umwalzpumpe": {"message":"Unauthorized","traceID":""}                                                                                                                                                                            11:00:55.298DEBUGgrafanacannot restore dashboard "leistung-solar": {"message":"Unauthorized","traceID":""}                                                                                                                                                                            11:01:00.969DEBUGgrafanacannot restore dashboard "signalstarke": {"message":"Unauthorized","traceID":""}                                                                                                                                                                            11:01:01.013DEBUGgrafanacannot restore dashboard "leistung-waschmaschiene": {"message":"Unauthorized","traceID":""}
            

            Nur die Data sources werden übernommen.

            Für die Wiederherstellung der Datasources ist lediglich Grafana Username und Passwort erforderlich, für die Dashboards zusätzlich der API Key. Also liegt die Vermutung nahe, dass der API Key falsch ist oder nicht die erforderlichen Rechte besitzt. Sagt auch die Fehlermeldung "message":"Unauthorized"

            W 1 Reply Last reply Reply Quote 1
            • W
              wibear @Marc Berg last edited by

              @marc-berg sagte in Fehler bei Wiederherstellung von Grafana:

              API Key falsch

              Durch IOB Backup wurden auch die API keys in übertragen:

              Screenshot #2.jpg

              Wenn ich sie jetzt neu generiere, passen sie vermutlich nicht zum Backup, oder?

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

                @wibear sagte in Fehler bei Wiederherstellung von Grafana:

                Wenn ich sie jetzt neu generiere, passen sie vermutlich nicht zum Backup, oder?

                Korrekt. Wenn Du Grafana neu installiert hast, müssen auch die API-Keys neu vergeben und eingetragen werden.

                EDIT: das Gleiche gilt auch für User und deren Passworte.

                W 3 Replies Last reply Reply Quote 1
                • W
                  wibear @Marc Berg last edited by

                  @marc-berg sagte in Fehler bei Wiederherstellung von Grafana:

                  Wenn Du Grafana neu installiert hast, müssen auch die API-Keys neu vergeben und eingetragen werden.

                  Danke für den Tipp. Nacchdem ich die keys neu generierte, konnte ich Grafana wiederherstellen.

                  Allrdings wurde die Ordner-Struktur für Dashboards nicht wiederhergestellt: die Ordner sind auch nicht sichtbar. Wenn ich aber einen neuen Ordner mit dem Namen eines bereit vorhandenen erstelle, kommt eine Fehlermeldung: er existiert bereits. Vermutlich ist ein Bug im Backitup.

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

                    @marc-berg

                    Auch Alerts wurden nicht wiederhergestellt. Der Backup-Prozess ist aus meiner Sicht unvollständig.
                    Soll ich es als Bug einstellen?

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

                      @marc-berg

                      Eine Ergänzung: Die Ordner werden in der Log als Dashboards übertragen und erscheinen auch in Grafana so.

                      17:28:31.138INFOguistarting Restore...
                      17:28:31.344DEBUGgrafanaStart Grafana Restore ...
                      17:28:31.512DEBUGgrafanafilename for restore: /opt/iobroker/backups/grafana_2024_12_08-02_41_41_backupiobroker.tar.gz
                      17:28:31.517DEBUGgrafanaGrafana tmp directory created: /opt/iobroker/backups/grafana_tmp
                      17:28:31.523DEBUGgrafanastart decompress
                      17:28:42.548DEBUGgrafanaGrafana request started
                      17:28:42.891DEBUGgrafanaGrafana is available ... Status: 200
                      17:28:42.992DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/datasource/infinity.json
                      17:28:43.034DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/datasource/influxdb.json
                      17:28:43.092DEBUGgrafanacannot restore datasource "infinity": "data source with the same name already exists"
                      17:28:43.120DEBUGgrafanacannot restore datasource "influxdb": "data source with the same name already exists"
                      17:28:44.093DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/batterie-ladeleistung.json
                      17:28:44.100DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/batterie-soc.json
                      17:28:44.111DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/energie.json
                      17:28:44.120DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/funk.json
                      17:28:44.148DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/gauges.json
                      17:28:44.152DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/heizung.json
                      17:28:44.158DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/leistung-solar.json
                      17:28:44.165DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/leistung-waschmaschiene.json
                      17:28:44.169DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/temperatur-shelly.json
                      17:28:44.174DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/umwalzpumpe.json
                      17:28:44.192DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/verbrauch-hz-taglich.json
                      17:28:44.198DEBUGgrafanaTry to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/verbrauch-ww-taglich.json
                      17:28:45.369DEBUGgrafanadashboard restore for "verbrauch-ww-taglich" finish: {"folderUid":"","id":10,"slug":"verbrauch-ww-taglich","status":"success","uid":"edr8ax5wzaozka","url":"/d/edr8ax5wzaozka/verbrauch-ww-taglich","version":2}
                      17:28:45.504DEBUGgrafanadashboard restore for "energie" finish: {"folderUid":"","id":4,"slug":"energie","status":"success","uid":"cb02597b-dcca-4815-bee4-2d2af0b541f2","url":"/d/cb02597b-dcca-4815-bee4-2d2af0b541f2/energie","version":2}
                      17:28:45.681DEBUGgrafanadashboard restore for "batterie-ladeleistung" finish: {"folderUid":"","id":13,"slug":"batterie-ladeleistung","status":"success","uid":"cdmrf8v69vf9ce","url":"/d/cdmrf8v69vf9ce/batterie-ladeleistung","version":3}
                      17:28:45.975DEBUGgrafanadashboard restore for "gauges" finish: {"folderUid":"","id":11,"slug":"gauges","status":"success","uid":"a51720fc-9ef3-4cb3-8646-410af4052f15","url":"/d/a51720fc-9ef3-4cb3-8646-410af4052f15/gauges","version":2}
                      17:28:46.074DEBUGgrafanadashboard restore for "temperatur-shelly" finish: {"folderUid":"","id":14,"slug":"temperatur-shelly","status":"success","uid":"bdiis07joxiiof","url":"/d/bdiis07joxiiof/temperatur-shelly","version":2}
                      17:28:46.175DEBUGgrafanadashboard restore for "verbrauch-hz-taglich" finish: {"folderUid":"","id":15,"slug":"verbrauch-hz-taglich","status":"success","uid":"cdrbhjzqr76kgb","url":"/d/cdrbhjzqr76kgb/verbrauch-hz-taglich","version":2}
                      17:28:46.478DEBUGgrafanadashboard restore for "funk" finish: {"folderUid":"","id":7,"slug":"funk","status":"success","uid":"ef88e264-c3b5-4576-98e3-6d79bf1e45f0","url":"/d/ef88e264-c3b5-4576-98e3-6d79bf1e45f0/funk","version":2}
                      17:28:46.669DEBUGgrafanadashboard restore for "heizung" finish: {"folderUid":"","id":16,"slug":"heizung","status":"success","uid":"d19fb77b-2604-4e15-8b64-992f5c70a40b","url":"/d/d19fb77b-2604-4e15-8b64-992f5c70a40b/heizung","version":2}
                      17:28:46.820DEBUGgrafanadashboard restore for "leistung-solar" finish: {"folderUid":"","id":8,"slug":"leistung-solar","status":"success","uid":"a998f478-50b0-4707-9e0e-ba587d052c41","url":"/d/a998f478-50b0-4707-9e0e-ba587d052c41/leistung-solar","version":2}
                      17:28:46.971DEBUGgrafanadashboard restore for "batterie-soc" finish: {"folderUid":"","id":5,"slug":"batterie-soc","status":"success","uid":"ddkomyxkzjdvkb","url":"/d/ddkomyxkzjdvkb/batterie-soc","version":3}
                      17:28:47.109DEBUGgrafanadashboard restore for "temperaturen-ww-hz" finish: {"folderUid":"","id":17,"slug":"temperaturen-ww-hz","status":"success","uid":"f0af631a-f93d-433f-af45-580eb590c18b","url":"/d/f0af631a-f93d-433f-af45-580eb590c18b/temperaturen-ww-hz","version":2}
                      17:28:47.223DEBUGgrafanadashboard restore for "umwalzpumpe" finish: {"folderUid":"","id":6,"slug":"umwalzpumpe","status":"success","uid":"bdtlwgmd34iyoa","url":"/d/bdtlwgmd34iyoa/umwalzpumpe","version":2}
                      17:28:47.374DEBUGgrafanadashboard restore for "signalstarke" finish: {"folderUid":"","id":12,"slug":"signalstarke","status":"success","uid":"f5c6aaad-a8af-48b8-a06e-c31f681f85ba","url":"/d/f5c6aaad-a8af-48b8-a06e-c31f681f85ba/signalstarke","version":2}
                      17:28:52.878DEBUGgrafanadashboard restore for "leistung-waschmaschiene" finish: {"folderUid":"","id":9,"slug":"leistung-waschmaschiene","status":"success","uid":"a8916d8e-00b0-4ee4-a03d-c9f10cbc8d06","url":"/d/a8916d8e-00b0-4ee4-a03d-c9f10cbc8d06/leistung-waschmaschiene","version":2}
                      17:28:52.920DEBUGgrafanaGrafana request ended
                      17:28:52.927DEBUGgrafanaTry deleting the Grafana tmp directory
                      17:28:52.934DEBUGgrafanaGrafana tmp directory was successfully deleted
                      17:28:54.881DEBUGgrafanaGrafana Restore completed successfully
                      

                      Sie sehen sie in Grafana aus:
                      Screenshot #1.jpg

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

                        @wibear

                        Ich weiß nicht, ob die Fehler mit den Ordnern vielleicht auch durch das mehrfache Wiederherstellen hervorgerufen wurde. Ich glaube nicht, dass vor dem Wiederherstellen alles gelöscht wird. Aber da ist @simatec der bessere Ansprechpartner.

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

                          @simatec
                          marc-berg sagte in Fehler bei Wiederherstellung von Grafana:

                          Aber da ist der @simatec bessere Ansprechpartner.

                          Guten Abend, würdest Du bitte das Dir anschauen?
                          Danke und Grüße

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

                            @wibear

                            Ich konnte das jetzt auch nachstellen. Beim Backup wird keine Unterscheidung zwischen Folders und Dashboards vorgenommen. Entsprechend gibt es beim Wiederherstellen ein Durcheinander. Dazu gab es schon mal ein Issue. Das wurde aber etwas entnervt geschlossen (meine Interpretation). Wenn ich mal Zeit habe, kann ich das mal sauber aufbereiten und ein neues Issue erstellen.

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

                              @marc-berg
                              Guten Morgen Marc und vielen Dank.
                              Auch Alerting wird nicht wiederhergestellt.
                              Viele Grüße

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

                                @wibear sagte in Fehler bei Wiederherstellung von Grafana:

                                Auch Alerting wird nicht wiederhergestellt.

                                ... weil es noch nie im Backup enthalten war. Das wird meines Wissens so explizit nicht in der Doku erwähnt.

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

                                  @marc-berg sagte in Fehler bei Wiederherstellung von Grafana:

                                  Dazu gab es schon mal ein Issue. Das wurde aber etwas entnervt geschlossen (meine Interpretation).

                                  Ja damals gab es keine klaren Infos vom Issue Ersteller. Wenn du das irgendwie nachstellen kannst, dann würde ich mich freuen, wenn du mir da ein paar Infos gibst.
                                  Laut meiner Interpretation wird der Restore anhand der ID ausgeführt. Dabei bekommen Dashboards und Folder eine ID. Ist die ID vom Folder höher, als die von den Dashboards, kommt es zu dem Problem... Kann mich da aber auch irren....

                                  Marc Berg W 2 Replies Last reply Reply Quote 1
                                  • Marc Berg
                                    Marc Berg Most Active @simatec last edited by

                                    @simatec sagte in Fehler bei Wiederherstellung von Grafana:

                                    Wenn du das irgendwie nachstellen kannst, dann würde ich mich freuen, wenn du mir da ein paar Infos gibst.

                                    Siehe hier:

                                    https://github.com/simatec/ioBroker.backitup/issues/1192

                                    Marc-Berg created this issue in simatec/ioBroker.backitup

                                    closed Grafana Folder werden nicht wiederhergestellt #1192

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

                                      Hallo @simatec
                                      Bei der Wiederherstellung von Grafana werden reproduzierbar die Ordner als Dashoards widerhergestellt. Ferner werden keine Einstellungen des Alerting inkl. Alerts selbst übertragen. Danke für Deine Mühe und Grüße

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

                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      957
                                      Online

                                      31.7k
                                      Users

                                      79.7k
                                      Topics

                                      1.3m
                                      Posts

                                      4
                                      36
                                      1092
                                      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