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 not migrating queries and dashboard #123

Open
ani1203 opened this issue Sep 17, 2022 · 0 comments
Open

Redash-migrate not migrating queries and dashboard #123

ani1203 opened this issue Sep 17, 2022 · 0 comments

Comments

@ani1203
Copy link

ani1203 commented Sep 17, 2022

Hi,

I am using Redash-migrate to migrate the Redash settings from existing instance to another , though the users , datasources and alert destinations are migrated successfully but it is giving error on queries and dashboard migration:

Queries error:

Query 1201 - OK  - importing
Query 1201 - FAIL - Query creation at destination failed: 403 Client Error: FORBIDDEN for url: https://redash/api/queries

Dashboard error

Importing dashboards...
Dashboard sales - SKIP - Already imported
importing: report
403 Client Error: FORBIDDEN for url: https://redash/api/dashboards
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.6/site-packages/redash_toolbelt/examples/migrate.py", line 1233, in wrapped
func(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/redash_toolbelt/examples/migrate.py", line 767, in import_dashboards
new_dashboard = user_client.create_dashboard(d["name"])
File "/home/ubuntu/.local/lib/python3.6/site-packages/redash_toolbelt/client.py", line 91, in create_dashboard
return self._post("api/dashboards", json={"name": name}).json()
File "/home/ubuntu/.local/lib/python3.6/site-packages/redash_toolbelt/client.py", line 206, in _post
return self._request("POST", path, **kwargs)
File "/home/ubuntu/.local/lib/python3.6/site-packages/redash_toolbelt/client.py", line 214, in _request
response.raise_for_status()
File "/home/ubuntu/.local/lib/python3.6/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: FORBIDDEN for url: https://redash/api/dashboards
Saving meta...

The thing to note here is , only one dashboard and one query is migrated here and is giving error for rest of the queries and dashboard.

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

1 participant