NEWS
Backitup - Grafana - https - self-signed certificate
-
@simatec Ich bin nochmal die Einstellungen in den Service accounts in Grafana durchgegangen und habe sie nochmal neu gesetzt.
Wären diese Einstellungen so richtig?
Bei dem anschließendem Test kam leider das gleiche Ergebnis heraus.
[DEBUG] [grafana] - Start Grafana Backup ...
[DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
[DEBUG] [grafana] - Created dashboard directory
[DEBUG] [grafana] - Created dashboards_manually_restore directory
[DEBUG] [grafana] - Created datasource directory
[DEBUG] [grafana] - start Grafana request ...
[DEBUG] [grafana] - Grafana is not available: Error: self signed certificate
[DEBUG] [grafana] - Grafana is not available!
[DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
[DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
[DEBUG] [grafana] - Grafana Backup cannot created ...
[DEBUG] [grafana] - done -
@ravenmaster887 Da bist du völlig falsch.
Du musst einen API-Key erzeugen und diesen in Backitup eintragen -
@simatec Hab nochmal einen API-Key in Grafana erstellt und den Key im Backitup-Adapter eingefügt:
Leider trotzdem mit gleichem Ergebnis:
[DEBUG] [grafana] - Start Grafana Backup ...
[DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
[DEBUG] [grafana] - Created dashboard directory
[DEBUG] [grafana] - Created dashboards_manually_restore directory
[DEBUG] [grafana] - Created datasource directory
[DEBUG] [grafana] - start Grafana request ...
[DEBUG] [grafana] - Grafana is not available: Error: self signed certificate
[DEBUG] [grafana] - Grafana is not available!
[DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
[DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
[DEBUG] [grafana] - Grafana Backup cannot created ...
[DEBUG] [grafana] - doneMich stört an der Stelle die Fehlermeldung, die Ja explizit sagt, Grafana is not available: Error: self signed certificate.
-
@simatec sagte in Backitup - Grafana - https - self-signed certificate:
Da bist du völlig falsch.
Das ist nicht ganz korrekt.
Seit Grafana 9.1.x (welche genaue Version ist mir nicht bekannt) gibt es einen Button in der API-Keys Sektion mit welcher man API-Keys zu Service-Accounts migrieren kann. Einmal angeklickt ist das nicht mehr rückgängig zu machen.
Hat aber erstmal bei normalem Backup per HTTP keinen Einfluss.
Anscheinend aber per HTTPS ?!
Nutze selbst nur HTTP.
@ravenmaster887 stell doch einfach nochmal um auf HTTP und teste es nochmals damit.EDIT: sehe gerade dass er wohl doch noch nicht migriert hat
sorry
-
Nach Umstellung auf http funktioniert das Backup normal:
[DEBUG] [iobroker] - done [DEBUG] [grafana] - Start Grafana Backup ... [DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp" [DEBUG] [grafana] - Created dashboard directory [DEBUG] [grafana] - Created dashboards_manually_restore directory [DEBUG] [grafana] - Created datasource directory [DEBUG] [grafana] - start Grafana request ... [DEBUG] [grafana] - Grafana is available ... Status: 200 [DEBUG] [grafana] - found Dashboard: general-alerting [DEBUG] [grafana] - found Dashboard: heizungseinstellungen [DEBUG] [grafana] - found Dashboard: dasi [DEBUG] [grafana] - found Dashboard: ubersicht-strom [DEBUG] [grafana] - found Dashboard: verbraucher-1-jahr [DEBUG] [grafana] - found Dashboard: dashboard-rpi-dasi [DEBUG] [grafana] - found Dashboard: dashboard-rpi [DEBUG] [grafana] - start Grafana backup compress ... [DEBUG] [grafana] - Backup created: /opt/iobroker/backups/grafana_2022_10_13-15_44_42_backupiobroker.tar.gz [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp" [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted [DEBUG] [grafana] - done
-
@ravenmaster887 Mach mal bitte ein Issue auf, damit ich mir das anschauen kann.
Denke es liegt am selbstsignierten Zertifkat -
@simatec Issue ist erstellt. Danke fürs anschauen.
-
@ravenmaster887 ups, da fällt mir grad im Issue auf dass Dein System ja auch nicht unbedingt lebendig ist...
ob das u.U. auch damit zu tun hat ?
Jedenfalls ist es dringend ratsam das auf neusten Stand zu bringen ! -
Bitte testet mal die Version 2.5.4 und passt die Grafana Einstellungen dementsprechend an.
-
@simatec Nach dem Update auf 2.5.4 funktioniert das Backup jetzt auch mit dem selbst erstellten Zertifikat. Perfekt, Danke.
-
Du warst jetzt aber bei dem API Key Modus geblieben?
Ich habe dummerweise auf Migrate to ServiceAccount geklickt und habe jetzt auch nur noch das entsprechende Menü im Grafana und kann gar keine alten API Keys mehr generieren oder sehen.Ich hatte dazu auch einen issue im Git angelegt und @simatec hatte mich nach hier verwiesen. DANKE