Restoring dashboards returns 404 not found
Closed this issue · 1 comments
Hey!
I'm struggling with restoring dashboards - I receive resp body: {'message': 'Not found'}
, while running command:
grafana-backup restore --components dashboards <tar_archive_name> --config=grafana-backup.json
Saving backups for all of the components as well as specified works really well. I have also tested uploading dashboard extracted from the archive file manually with Postman following the app's logic:
- for dashboards located in folders I extracted the folder ID
- added
overwrite: true
dashboard.id
is set to""
- took only
dashboard
nested map from downloaded dashboard definition
so it looked similar to this:
{
"dashboard": {
"description": "REDACTED",
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": "",
"rest_of_the_config": {}
}
}
received 200 OK and response body with id
, slug
, status=success
, uid
, url
and version
Furthermore - restoring folders work well and I didn't get any 404.
I would be grateful for your help!
Here is my configuration:
grafana-backup-tool version: 1.3.0
Grafana version: v9.1.6
grafana-backup.json
configuration fil:
{
"general": {
"debug": true,
"verify_ssl": true,
"backup_dir": "_OUTPUT_"
},
"grafana": {
"url": "REDACTED",
"token": "REDACTED"
},
"aws": {
"s3_bucket_name": "REDACTED",
"s3_bucket_key": "grafana-backup",
"default_region": "eu-west-1"
}
}
Ok, my bad 😓
in grafana-backup.json
file, by mistake, I set grafana.url
with http
instead of https
. Since backup went smoothly I didn't even consider the issue might be with the URL.
Closing!