NEWS
BackItUp für InfluxDB
-
seit einem Grafana Update auf v8 bekomme ich beim Backup einen Fehler:
[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] - Error on Grafana Dashoard backup: Error: Request failed with status code 404 [DEBUG] [grafana] - start Grafana backup compress ... [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] - cannot found Grafana Backup files [DEBUG] [grafana] - done [DEBUG] [cifs] - done [DEBUG] [cifs] start with {"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","backupDir":"/opt/iobroker/backups","deleteBackupAfter":0} [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [DEBUG] [historyHTML] start with {"type":"creator","time":"02:00","debugging":true,"everyXDays":"5","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2021_06_09-11_42_47_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null},"dir":"/opt/iobroker","grafana":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"cifs","host":"","debugging":true,"deleteOldBackup":false,"ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker","user":"","pass":"****","port":"21"},"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"backup","dirMinimal":"sharename/backupDir","user":"","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"webdav":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"username":"username","pass":"****","url":"https://example.com/remote.php/dav/files/username/","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"host":"192.168.0.10","port":"3000","username":"admin","pass":"****","apiKey":"****"},"historyHTML":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de","time":"09. Juni 2021 um 11:42 Uhr"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [historyJSON] start with {"type":"creator","time":"02:00","debugging":true,"everyXDays":"5","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2021_06_09-11_42_47_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null},"dir":"/opt/iobroker","grafana":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"cifs","host":"","debugging":true,"deleteOldBackup":false,"ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker","user":"","pass":"****","port":"21"},"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"backup","dirMinimal":"sharename/backupDir","user":"","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"webdav":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"username":"username","pass":"****","url":"https://example.com/remote.php/dav/files/username/","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"host":"192.168.0.10","port":"3000","username":"admin","pass":"****","apiKey":"****"},"historyHTML":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de","time":"09. Juni 2021 um 11:42 Uhr"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [umount] - mount activ, umount is started ... [DEBUG] [umount] start with {"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","backupDir":"/opt/iobroker/backups"} [DEBUG] [umount] - umount successfully completed [DEBUG] [umount] - done [EXIT] 0
-
@massiveattack hast du deine Grafana Konfig wieder angepasst(api-key)? sonst funktioniert das backup nicht, da du vorhin ja alles gelöscht hast!!
-
@crunchip
ja, hab einen neuen api key erzeugt, und im iobroker hinterlegt.
braucht die aktivierung etwas zeit? bis dato hat es ja funktioniert -
neuer user, neuer key bringt auch nix...
-
@massiveattack keinen Plan was du da für ne Baustelle hast. Siehe deinem anderen Thread.
Hast du dir, wie empfohlen, das Verzeichnis var/lib/grafana weggesichert? -
@crunchip
die andere baustelle ist behoben, meine dashboards und settings sind alle vorhanden.
das dir hab ich gesichert, wurde aber anscheinend eh nicht gelöscht. musste nichts wiederherstellen nach dem install von v8 -
@massiveattack vllt funktioniert v8 noch nicht mit backitup bzw wurde etwas geändert
-
vielleicht kann das jemand bestätigen?
-
@massiveattack wer weiss was du da überhaupt gesichert hast, mit dem backitup. Da du ja selbst geschrieben hattest, das du "grafana-rpi" installiert hattest.
-
@crunchip
ja du hast recht. aber die debug ausgabe verstehe ich nicht:[DEBUG] [grafana] - Grafana is available ... Status: 200 [DEBUG] [grafana] - Error on Grafana Dashoard backup: Error: Request failed with status code 404 [DEBUG] [grafana] - start Grafana backup compress ...
code 404 hat anscheinend irgendwas mit der api zu tun
-
@massiveattack sagte in BackItUp für InfluxDB:
irgendwas mit der api zu tun
Hast du den api key mit deinem admin erstellt oder mit einem Benutzer(viewer). ?
-
@crunchip
admin -
anscheinend kann er die uid nicht finden:
Status Codes:
200 – Found 401 – Unauthorized 403 – Access denied 404 – Not found
-
@massiveattack dann musst du @simatec mal um Hilfe bitten
-
-
@massiveattack Laut Doku hat sich da nichts in Grafana geändert ...
Der code 404 sagt "not found" aus.https://grafana.com/docs/grafana/latest/http_api/dashboard/#get-dashboard-by-uid
Zeige mal die Config deiner API-Keys und die von Backitup
-
@simatec said in BackItUp für InfluxDB:
Zeige mal die Config deiner API-Keys und die von Backitup
was meinst du mit config? wie?
-
-
@massiveattack Als Grafana User für das Backup bitte nur den Admin von Grafana verwenden ...
Zeige mal, wie du in Grafana den APIKey angelegt hast
-