superset icon indicating copy to clipboard operation
superset copied to clipboard

Editing an existing schedule for Chart Email Delivery breaks with an error

Open visakhmurukes opened this issue 6 years ago • 8 comments

Try to modify the schedule of a chart added for email delivery

Expected results

The schedule will get modified based on given input

Actual results

Getting below error

Screenshots

supsersetsched

How to reproduce the bug

Go to Manage -> Chart Email Schedule Click on edit record option for an existing schedule Modify the given schedule On save you get error as given below

Environment

(please complete the following information):

superset version: 0.33.0rc1 python version: 3.6.9

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [x] I have reproduced the issue with at least the latest released version of superset.
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

visakhmurukes avatar Jan 06 '20 08:01 visakhmurukes

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jan 06 '20 08:01 issue-label-bot[bot]

Please Update your superset version and the error will be fixed!

blcksrx avatar Jan 06 '20 12:01 blcksrx

Please Update your superset version and the error will be fixed!

I updated. Now the above issue is gone. But instead lots of other functionalities are breaking Like rendering chart, refreshing druid datasource etc The error seems to be consistent and is in lines of the below

Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1246, in _execute_context cursor, statement, parameters, context File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 581, in do_execute cursor.execute(statement, parameters) psycopg2.ProgrammingError: column metrics.is_restricted does not exist LINE 1: ...type, metrics.description AS metrics_description, metrics.is...

Looks like issue with metadata objects stored in sqlite

visakhmurukes avatar Jan 08 '20 06:01 visakhmurukes

Actually because of you need to migrate you database to the latest version. Please be sure to follow the documentation

blcksrx avatar Jan 08 '20 08:01 blcksrx

how to migrate the database to latest version? Can you please point me to the correct documentation? my superset instance is using postgre as the metadatastore

visakhmurukes avatar Jan 09 '20 07:01 visakhmurukes

Please read this: https://superset.incubator.apache.org/installation.html#upgrading

blcksrx avatar Jan 09 '20 08:01 blcksrx

Ok. I finally created a new copy of the db after the upgrade and then it worked. Otherwise it was giving above error. In my case the metadatastore was initially setup in postgre

visakhmurukes avatar Jan 10 '20 09:01 visakhmurukes

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Mar 10 '20 09:03 stale[bot]