-
Notifications
You must be signed in to change notification settings - Fork 14.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
After upgrading from ver. 0.37.2 to ver. 1.2.0 I get error: Unexpected error: SupersetApiError: Not authorized #15626
Comments
have you run all the commands required after upgrading?
Are there any errors and stack trances from the backend logs? |
Hi Yes I have run these commands several times.
When I start apache I get this info on the server. Is there another way to see logs?
I think maybe it has to to with how I have created uuid-fields. I also found out that I missed the field in table dbs Can I find a code how to create these fields? Thanks Best regards, |
Hi again I can add that when I try to open a dashboard which gives this error Unexpected error: SupersetApiError: Not authorized I get this information in the backend log:
So I have not access to any of my dashboards Any ideas to solve this? |
Hi I have searched a lot more for a solution and I guess the issue has something to do with the missing uuid fields. According to this fix: #13216 I should be able to downgrade db with this command:
It should delete uuid fields. It doesn't for me. I deleted the field manually. I then upgraded the db again
Unfortunately it did not create uuid-fields in my MySQL-tables. According to this issue #13033 I should have uuid-fields created in several other tables than dbs and dashboards Adding uuids for dbs... Adding uuids for dashboards... Adding uuids for slices... Adding uuids for tables... Adding uuids for table_columns... Adding uuids for sql_metrics... Adding uuids for dashboard_email_schedules... Adding uuids for slice_email_schedules... How do I get this? I hope somebody can help me Thank you |
The statsd error log doesn't seem related this this. I'm not sure what the missing uuid fields would result in not authorized error, it may be caused by something else. Do you have any logs related to the As a last resort you could try bringing up 1.2 against a new database and then import your datasets/dashboards/charts/etc into the newly installed version. |
How could I do this ? |
Hi I bought a new VPS and installed Superset ver. 1.2.0 from scratch. I also connected to a mysql-database. It is now working but empty from data. How do I import my datasets/dashboards from my existing server? Best regards, |
Superset has an export feature for each of the objects, otherwise you could do a sql dump for each of the tables. |
Version 0.38 might be missing exports on some of the objects (database and datasets I think), so the sql dump might be necessary |
Hi nytai Thank you for your reply. I can easily get all data imported with a SQLdump, but how do I solve that some tables don't have uuids fields. Is there SQL-job which can add them? Is it possible to find in the upgrade files? Best regards, |
Hi I have now imported all data to my new VPS.
I get the exact same error, so it must be in my data Unexpected error: SupersetApiError: Not authorized An error occurred while fetching query info: Not authorized How can I solve this? Thanks |
Hi, I solved the issue. By copying this tables from the new installation to my old installation I got it to work again. I also found a lot of tables which missed fields - mostly uuid but also other fields and some tables. I anyone are interested in the exact changes I can write them here Best regards, |
Yea normally these db schema changes are applied via |
Thank you, nytai. Yes it is strange that my database it not updated with this command and that I don't get error messages. I have experienced this before. After many hours of searching and trying I feel like an expert on this issue :-) |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi
I hope someone can help me to get my Apache Superset running again.
I have upgraded to Superset ver. 1.2.0
First I get the error that the field dashboards.uuid was missing.
I created manually the field with phpMyAdmin with field type binary and length =16
I then created values with this command
UPDATE dashboards SET uuid=uuid()
But now I get this error when I log in to superset and opens a dashboard
Unexpected error: SupersetApiError: Not authorized
The dashboard is public, so everyone should be authorized to see it.
See error on screenshoots:
Can anyone help to solve this issue?
Thank you
Environment
1.2.0
3.7.2
10.16.3
I have searched a long time for a solution, but haven't found any similar problem.
The text was updated successfully, but these errors were encountered: