superset icon indicating copy to clipboard operation
superset copied to clipboard

Error while changing data source in chart

Open hemantaggarwal opened this issue 7 years ago • 31 comments

I am getting an error while changing data source in chart after selecting new data source

Expected results

Data source should get changed to chosen source.

Actual results

Message "An error occurred"

Screenshots

image

image

Environment

  • superset version: 0.30.0
  • python version: 3.6.9 `

Checklist

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

  • [ ] 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.

hemantaggarwal avatar Nov 28 '19 13:11 hemantaggarwal

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.82. 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 Nov 28 '19 13:11 issue-label-bot[bot]

Thank you for reporting, yet I'm not able to replicate the issue, please upgrade superset to a newer version and re-test

dpgaspar avatar Nov 29 '19 15:11 dpgaspar

@dpgaspar: I will re-test it after upgrading it. I installed superset using "pip install superset" but now its changed to "apache-superset", so do I have first uninstall old version? and after upgrading If I am right I have to run "superset db upgrade" then will I loose all my current dashboards? Currently I am using postgres as superset metadata storage (by setting postgres uri in config.py).

hemantaggarwal avatar Nov 29 '19 18:11 hemantaggarwal

@dpgaspar : I tried upgrading using command "pip3 install apache-superset==0.35.1" but after successful installation, I got an error while running "superset version" or "superset db upgrade":

Traceback (most recent call last): File "/usr/local/bin/superset", line 21, in from superset.cli import create_app File "/usr/local/lib/python3.6/dist-packages/superset/init.py", line 133, in app.config["LOGGING_CONFIGURATOR"].configure_logging(app.config, app.debug) KeyError: 'LOGGING_CONFIGURATOR'

Then I tried to install version 0.34 using command "pip3 install apache-superset==0.34.0 and did "db upgrade" but it is still showing version as 0.30.0

hemantaggarwal avatar Nov 30 '19 10:11 hemantaggarwal

Update: Finally I was able to upgrade it to 0.35.1 and ran "db upgrade" and "init" command. 'Logging_configurator' error was due to pip3, only pip should be use to install. But I am still facing the issue of changing data source in chart and this issue is coming only on production server not in staging. Only difference between two setup is that on production we are using "nginx" reverse proxy and "gunicorn" for superset and using "postgres" to store superset metadata instead of default sqllite. Is it due to postgres database?

hemantaggarwal avatar Nov 30 '19 10:11 hemantaggarwal

@betodealmeida @dpgaspar : Any suggestions for this?

hemantaggarwal avatar Dec 03 '19 06:12 hemantaggarwal

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 Feb 14 '20 10:02 stale[bot]

I am also facing the same issue. And also I cannot see any logs in the superset. Superset version - 0.35.2

TheRum avatar Feb 18 '20 04:02 TheRum

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 Apr 18 '20 05:04 stale[bot]

Update: Finally I was able to upgrade it to 0.35.1 and ran "db upgrade" and "init" command. 'Logging_configurator' error was due to pip3, only pip should be use to install. But I am still facing the issue of changing data source in chart and this issue is coming only on production server not in staging. Only difference between two setup is that on production we are using "nginx" reverse proxy and "gunicorn" for superset and using "postgres" to store superset metadata instead of default sqllite. Is it due to postgres database?

Did you find any solution to it? I am still facing the issue in superset 0.36.0

sedhha avatar Jul 08 '20 06:07 sedhha

@sedhha : No, I am still facing this issue and haven't find any solution to this.

hemantaggarwal avatar Jul 08 '20 06:07 hemantaggarwal

It is working for me but not all times. I tried with mysql and postgres as metadata store for superset and it is working. This functionality is not working in our production superset server but works in our staging server.

Environment : Server - AWS EC2 - t3.small Docker - amancevice/superset:0.36.0

TheRum avatar Jul 08 '20 09:07 TheRum

@TheRum : Were you able to find the cause?

hemantaggarwal avatar Jul 08 '20 09:07 hemantaggarwal

@hemantaggarwal Nope. I tried reproducing but no luck. Also cannot see anything in logs as well.

TheRum avatar Jul 08 '20 09:07 TheRum

Also experiencing this consistently - would love a fix!

Jclevinson avatar Jul 08 '20 10:07 Jclevinson

@Jclevinson on what version of Superset are you on? Have you tried this on master branch?

villebro avatar Jul 08 '20 10:07 villebro

@villebro I am experiencing this on superset version 0.36.0. Machine: GCP Ubuntu 18.04 LTS

sedhha avatar Jul 08 '20 11:07 sedhha

Thanks @sedhha . This seems to be fixed on master branch, so all the more reason to release 0.37.0 as quickly as possible. I will try to push through the last blockers today so we can get the release vote started.

villebro avatar Jul 08 '20 11:07 villebro

Thanks @sedhha . This seems to be fixed on master branch, so all the more reason to release 0.37.0 as quickly as possible. I will try to push through the last blockers today so we can get the release vote started.

Hi @villebro alright awesome! When's it going to release? Are you on that slack channel as well?

sedhha avatar Jul 08 '20 12:07 sedhha

The minimum time that the vote will take is 6 days (3 days community vote, 3 days Incubator PMC vote), assuming no problems come up during testing/voting. I'm on that Slack channel, too (#apache-releases), I will post an update there as things progress.

villebro avatar Jul 08 '20 12:07 villebro