superset icon indicating copy to clipboard operation
superset copied to clipboard

Superset dashboard or no data loading after login

Open swapnil-chenoa opened this issue 6 years ago • 40 comments

Even after successful docker-compose up with latest updates from master branch after login welcome page keeps loading no dashboards or no data can be seen. Checked the logs for PostgreSQL in image no error or exception in logs. Even executed docker-init.sh successfully.

Expected results

Superset should load default roles and dashboard after login.

Actual results

welcome page keeps loading after login, no dashboards or no data can be seen.

Screenshots

issue_superset

How to reproduce the bug

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Environment

(please complete the following information):

  • superset version: superset version
  • python version: python --version
  • node.js version: node -v
  • npm version: npm -v

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.

swapnil-chenoa avatar Dec 12 '19 04:12 swapnil-chenoa

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.93. 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 Dec 12 '19 04:12 issue-label-bot[bot]

Please post docker-init logs from the superset-init container

dpgaspar avatar Dec 12 '19 10:12 dpgaspar

I run the docker-init command twice (considering resources not downloaded on first attempt) so in logs it says admin user already exists. Please find attached logs.

superset-init.log

swapnil-chenoa avatar Dec 12 '19 11:12 swapnil-chenoa

ok, that seems more or less ok. Looking at the uploaded picture you provided it seems that the docker build step may have failed. Try issuing a docker-compose build first (after docker-compose down)

dpgaspar avatar Dec 12 '19 13:12 dpgaspar

@swapnil-chenoa Are you sure you've waited for superset-node container to finish before loading page? Looks like you're missing JS files generated from webpack.

TheMelter avatar Dec 12 '19 23:12 TheMelter

ok, that seems more or less ok. Looking at the uploaded picture you provided it seems that the docker build step may have failed. Try issuing a docker-compose build first (after docker-compose down)

Thanks for your response. The docker build was successful with all 32 steps executed few container initialization failed so used docker-compose build command which was successful.

It took hours for 11th step to complete.

Step 11/32 : RUN cd /app/superset/assets && npm run build && rm -rf node_modules ---> Running in ec3cd24edd7d

[email protected] build /app/superset/assets cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors --progress clean-webpack-plugin: /app/superset/assets/dist has been removed. Starting type checking service... Using 1 worker with 2048MB memory limit 92% chunk asset optimization OptimizeCssAssetsWebpackPluginBrowserslist: caniuse-lite is outdated. Please r 92% chunk asset optimization TerserPlugin

swapnil-chenoa avatar Dec 13 '19 05:12 swapnil-chenoa

I met the same problem as yours, how do you resolve it

flutterWang avatar Dec 13 '19 06:12 flutterWang

@swapnil-chenoa Are you sure you've waited for superset-node container to finish before loading page? Looks like you're missing JS files generated from webpack.

Thanks for your response. Yes we waited for same even for log-in page resources didn't load. If we missed something how to recover JS files from webpack.

swapnil-chenoa avatar Dec 13 '19 06:12 swapnil-chenoa

I met the same problem as yours, how do you resolve it

No that issue not yet resolved. We are looking for solution.

swapnil-chenoa avatar Dec 13 '19 06:12 swapnil-chenoa

WeChatd00a5f111c3d01add913dc6982cc7892

my superset-work is unhealthy, do you have the same situation ?

flutterWang avatar Dec 13 '19 06:12 flutterWang

WeChatd00a5f111c3d01add913dc6982cc7892

my superset-work is unhealthy, do you have the same situation ?

No. all were in healthy state.

swapnil-chenoa avatar Dec 13 '19 06:12 swapnil-chenoa

the default username & password is admin & admin ?

flutterWang avatar Dec 13 '19 06:12 flutterWang

the default username & password is admin & admin ?

Yes its written in docker-init.sh.

swapnil-chenoa avatar Dec 13 '19 06:12 swapnil-chenoa

I used cd superset/assets \ && npm install \ && npm run build \ && rm -rf node_modules to resolve it, but i met another problem: 713C7BF4-F050-4D20-B5C6-170E8E9D45D1

flutterWang avatar Dec 13 '19 07:12 flutterWang

@flutterWang you have to wait for the superset-init to finish, it takes a while since it's upgrading the db, and downloading all the data for the examples dashboards

dpgaspar avatar Dec 13 '19 09:12 dpgaspar

@dpgaspar WeChat9630a2aebda0a2dcc699cb7723ce734f

but my superset-init has been exited, did this mean it was finish?

flutterWang avatar Dec 15 '19 12:12 flutterWang

seems like superset-init failed, can you post the full log?

dpgaspar avatar Dec 20 '19 10:12 dpgaspar

This is happening to me as well on macosx

nabinkhadka avatar Dec 23 '19 13:12 nabinkhadka

@dpgaspar WeChat9630a2aebda0a2dcc699cb7723ce734f

but my superset-init has been exited, did this mean it was finish?

@flutterWang - looks like you were running this while github was having some issues, as you can see from the SSL error. Were you able to retry this at all?

craig-rueda avatar Dec 23 '19 16:12 craig-rueda

This is happening to me as well on macosx

@nabinkhadka - how much RAM are you allocating to your Docker VM? I'd recommend at least 4GB, as the default of 2 isn't enough to get Terser off the ground.

craig-rueda avatar Dec 23 '19 17:12 craig-rueda