Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redash-migrate doesn't migrate dashboards #120

Open
annpag opened this issue Apr 26, 2022 · 2 comments
Open

redash-migrate doesn't migrate dashboards #120

annpag opened this issue Apr 26, 2022 · 2 comments

Comments

@annpag
Copy link

annpag commented Apr 26, 2022

Hi,
I'm trying to migrate all settings of an instance of Redash, but when i run the command redash-migrate dashboards, i get this error:

500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:5000/api/dashboards/edifici Traceback (most recent call last): File "C:\.......\examples\migrate.py", line 1233, in wrapped func(*args, **kwargs) File "C:\.......\examples\migrate.py", line 752, in import_dashboards d = orig_client.dashboard(dashboard["slug"]) File "C:\.......\redash_toolbelt\client.py", line 85, in dashboard return self._get("api/dashboards/{}".format(slug)).json() File "C:\.......\redash_toolbelt\client.py", line 203, in _get return self._request("GET", path, **kwargs) File "C:\.......\redash_toolbelt\client.py", line 214, in _request response.raise_for_status() File "C:\.......\requests\models.py", line 960, in raise_for_status raise HTTPError(http_error_msg, response=self)

I run commands using the order that commands are shown in the output of the --help option and i'm using redash-migrate version 0.1.9 with 2 instance of Redash version 10.1.0.
Can you help me?
Thanks

@jagin
Copy link

jagin commented Jun 10, 2022

There is a bug here:

d = orig_client.dashboard(dashboard["slug"])

line d = orig_client.dashboard(dashboard["slug"]) should be d = orig_client.dashboard(dashboard["id"])

@susodapop
Copy link
Collaborator

Yes, this is a side-effect of the migration script being written primarily to move legacy users of Hosted Redash onto V10. The script will not work between V10 -> V10 until @jagin's change is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants