Skip to content

Restore problem : AttributeError: type object 'Dashboard' has no attribute 'new' #31

@mmihayl0v

Description

@mmihayl0v

When restore I'm receiving :

./grafcli restore backup.tgz /remote/"remote_host/folder" Traceback (most recent call last): File "/home/username/grafcli/grafcli/scripts/./grafcli", line 27, in <module> sys.exit(main()) File "/home/username/grafcli/grafcli/scripts/./grafcli", line 13, in main result = cli.execute(*sys.argv[1:]) File "/home/username/grafcli/grafcli/scripts/venv/lib/python3.10/site-packages/climb/core.py", line 79, in execute return self._commands.execute(command, **kwargs) File "/homeusername/grafcli/grafcli/scripts/venv/lib/python3.10/site-packages/climb/commands.py", line 26, in execute return method(*args, **kwargs) File "/home/username/grafcli/grafcli/grafcli/cli/commands.py", line 221, in file_import document = Document.from_source(json.loads(content)) File "/home/username/grafcli/grafcli/grafcli/app/documents.py", line 34, in from_source return Dashboard.new(source, '') AttributeError: type object 'Dashboard' has no attribute 'new'

Grafana source : v7.5.4
Grafana target : v10.1.0
grafcli - experimental branch
grafcli.conf :
[grafcli]
editor = mcedit
mergetool = vimdiff
history = ~/.grafcli_history
verbose = off
force = on
colorize = on

[resources]
data-dir = ~/.grafcli

[hosts]
some_host = off
some_host_2 = on
some_host_3 = on

[some_host]
type = api
url = https:/some_host/api
user = user
password = password

[some_host_2]
type = api
url = https://some_host_2/api
#user = user
#password =
token = $token

[some_host_3]
type = api
url = https://some_host_3/api
user = user
password = password

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions