ysde/grafana-backup-tool

Issues with folders, orgs, users when restoring

Opened this issue · 2 comments

ffisc commented

Getting stared with the tool. I have:

  1. run grafana-backup save -> backup 1 saved
  2. made a change (added a dashboard)
  3. run grafana-backup save -> backup 2 saved
  4. run grafana-backup restore {path_to_backup1}

On this last step I got several error messages:

  • For folders
[DEBUG] resp status: 412
[DEBUG] resp body: {'message': 'the folder has been changed by someone else', 'status': 'version-mismatch'}
create folder {folder_name}, status: 412, msg: {'message': 'the folder has been changed by someone else', 'status': 'version-mismatch'}
  • For organizations (except org 1 - I read from the docs that other orgs are not backed up but it appears that they are)
[DEBUG] resp status: 409
[DEBUG] resp body: {'message': 'Organization name taken', 'traceID': '00000000000000000000000000000000'}
create org "{org_name}" response status: 409, msg: {'message': 'Organization name taken', 'traceID': '00000000000000000000000000000000'}
  • For users
[DEBUG] resp status: 412
[DEBUG] resp body: {'message': "User with email 'admin@localhost' or username 'admin' already exists", 'traceID': '00000000000000000000000000000000'}
create user "admin" response status: 412, msg: {'message': "User with email 'admin@localhost' or username 'admin' already exists", 'traceID': '00000000000000000000000000000000'}

Is this beheviour expected?

@ffisc I have the same issue as you with version 1.2.5 of this tool, both with the python package version and docker container. Did you find a solution?

ffisc commented

@ffisc I have the same issue as you with version 1.2.5 of this tool, both with the python package version and docker container. Did you find a solution?

No @tschaffter unfortunately I gave up on this tool (and haven't used Grafana itself in a while) - best of luck