Incubator-superset: New chart save fails

Created on 9 Jun 2020  路  5Comments  路  Source: apache/incubator-superset

I'm evaluating Superset using the docker-compose quickstart on Linux, cloned from Git. I am unable to create new charts. However, opening an existing chart and saving it (with or without modifications) under a new name does work.

Expected results

Saving a new chart works.

Actual results

The save modal closes silently, but reopening shows the message "Failed to save slice". No new chart is created. A 500 error appears in the log, but no stack trace is available and the PostgreSQL container's /var/log/postgres is empty as logging does not seem to be configured.

superset_app             | 172.20.0.1 - - [09/Jun/2020 15:05:57] "POST /superset/explore/?action=saveas&slice_name&add_to_dash=noSave&goto_dash=false HTTP/1.1" 500 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [09/Jun/2020 15:05:57] "POST /superset/explore/?action=saveas&slice_name&add_to_dash=noSave&goto_dash=false HTTP/1.1" 500 -

Screenshots

1591714567

How to reproduce the bug

  1. Create a new chart from the birth names sample set (I've seen the problem with both tables and big number/trendlines). In the screenshot below I adjusted the time range and group by and ran the query to validate, but those don't appear strictly necessary.
  2. Save the chart, entering a name. The modal closes but nothing else happens.
  3. Reopen the save modal to see the error message.

Checklist

  • [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.
#bug inactive

Most helpful comment

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

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

All 5 comments

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

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

Same here.

Note: Overwriting works. I can't save a chart from scratch, but if I edit one of the existing chart examples, it successfully saves.

I had this behaviour too - until yesterday.

When I build from the master branch ( commit > cb1705fdae8cb53ac146ba946c67071f721c257c)
for me saving a new chart started working again.

You might try the new version and see if it works for you.

@stvacs yes, creation works fine, but what about deletion?a have an error when i'm trying to delete just created chart.

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.

Was this page helpful?
0 / 5 - 0 ratings