Skip to content
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

Superset dashboard or no data loading after login #8818

Closed
3 tasks done
swapnil-chenoa opened this issue Dec 12, 2019 · 40 comments
Closed
3 tasks done

Superset dashboard or no data loading after login #8818

swapnil-chenoa opened this issue Dec 12, 2019 · 40 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days

Comments

@swapnil-chenoa
Copy link

swapnil-chenoa commented Dec 12, 2019

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!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • 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.

@issue-label-bot
Copy link

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

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

@issue-label-bot issue-label-bot bot added the !deprecated-label:bug Deprecated label - Use #bug instead label Dec 12, 2019
@dpgaspar
Copy link
Member

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

@swapnil-chenoa
Copy link
Author

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

@dpgaspar
Copy link
Member

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)

@TheMelter
Copy link

@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.

@swapnil-chenoa
Copy link
Author

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

superset@0.999.0-dev 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

@flutterWang
Copy link

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

@swapnil-chenoa
Copy link
Author

@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
Copy link
Author

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

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

@flutterWang
Copy link

WeChatd00a5f111c3d01add913dc6982cc7892

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

@swapnil-chenoa
Copy link
Author

WeChatd00a5f111c3d01add913dc6982cc7892

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

No. all were in healthy state.

@flutterWang
Copy link

the default username & password is admin & admin ?

@swapnil-chenoa
Copy link
Author

the default username & password is admin & admin ?

Yes its written in docker-init.sh.

@flutterWang
Copy link

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

@dpgaspar
Copy link
Member

@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

@flutterWang
Copy link

@dpgaspar
WeChat9630a2aebda0a2dcc699cb7723ce734f

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

@dpgaspar
Copy link
Member

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

@nabinkhadka
Copy link
Contributor

This is happening to me as well on macosx

@craig-rueda
Copy link
Member

@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
Copy link
Member

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.

@nabinkhadka
Copy link
Contributor

nabinkhadka commented Dec 23, 2019

Screen Shot 2019-12-23 at 10 46 14 PM

This is what I have. @craig-rueda

@craig-rueda
Copy link
Member

Ok, I'll take a deeper look at this. I'm wondering if there's a way to disable Terser for local development 🤔 ...

@jpatdalton
Copy link

@nabinkhadka I looked into the issue you merged #8883 , as I had the same error message.. turns out I was missing webpack. npm update then retrying docker-compose up fixed the issue for me.

@gk1089
Copy link

gk1089 commented Jan 16, 2020

I have noticed another aspect of this bug while trying out the dremio support update. I have installed the latest superset using pip git+https://github.com/apache/incubator-superset in a Ubuntu 18.04 VM with 8 GB RAM. I have followed the steps outlined at default installation instructions page https://superset.incubator.apache.org/installation.html

However, I played around with saved states of my VM and realized that if I skip the command flask fab create-admin, at least the login page comes up. But, of course without any default credentials and not having created any credentials, I am unable to login.

I hope this helps in someway.

@feroult
Copy link

feroult commented Feb 5, 2020

@nabinkhadka I looked into the issue you merged #8883 , as I had the same error message.. turns out I was missing webpack. npm update then retrying docker-compose up fixed the issue for me.

That worked for me!

Outside docker, on your local repo, you should enter superset/assets/ folder and run npm update.

And the, as @nabinkhadka said run docker-compose up

@chongzixin
Copy link

@nabinkhadka I looked into the issue you merged #8883 , as I had the same error message.. turns out I was missing webpack. npm update then retrying docker-compose up fixed the issue for me.

That worked for me!

Outside docker, on your local repo, you should enter superset/assets/ folder and run npm update.

And the, as @nabinkhadka said run docker-compose up

superset/assets/ doesnt exist anymore. has it been renamed to something else?

@willbarrett
Copy link
Member

@chongzixin yes, superset/assets/ has been moved to superset-frontend/

@righttracknana
Copy link

righttracknana commented Mar 6, 2020

Hi all,
New to superset and your comments above have been really helpful.

I just downloaded superset yesterday and I am able to login without any errors but I am unable to view any charts or dashboards. I have run the npm update on superset/superset-frontend/
but still getting chart plugin errors when inspecting the code (screenshot attached).

Any help would be really useful.

image

image

@AramisN
Copy link

AramisN commented Mar 7, 2020

Just follow along with the Dockerfile configuration and your compose file and things will be OK.
you might get into some errors which I never bumped into and based on your resources(RAM+CPU) and your internet speed you will face delays, it will usually take about 1 hour to install cause lets face it, you are basically running 4 or 5 services and each will interfere with each other, if you wait for all stages to finish and if you found any "unhealthy" status, just do the docker container restart [container-id] and what @jpatdalton said about running the image as a build not docker up.

but also, do the npm update, do the restarting and give your server some fermentation time 😄

superset is a heavy software, it demands to check, restart and reboot a couple of times.

Good luck and thanks to the community.

@keehl1213
Copy link

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

I have the same problem. Have you resolved?

@EnixCoda
Copy link

EnixCoda commented Apr 17, 2020

If you get HTTP 401 errors from browser console, try remove admin accounts from superset's internal postgres database. (You'd need to know how to manipulate postgres)

I caught this error because I ran docker image pulled from docker hub before pull and run the source code version. And resolved that by removing up admin account and rerun docker-compose up

@stale
Copy link

stale bot commented Jun 17, 2020

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 stale bot added the inactive Inactive for >= 30 days label Jun 17, 2020
@stale stale bot closed this as completed Jun 26, 2020
@superrrrrrrrL
Copy link

WeChatd00a5f111c3d01add913dc6982cc7892

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

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

@0xpetersatoshi
Copy link

This issue has not been resolved yet. I have more than 4GB of RAM allocated to Docker, I ran npm update in superset-frontend, I have waited over two hours after running docker-compose up and allowed all the images to finish installing packages and setting things up but still not getting anything to load after the login page. What is the magic trick do get a hello-world example running on MacOS? For reference, tried on MacOS 10.15.7. Getting this as output:

superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /superset/welcome HTTP/1.1" 200 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/theme.d16f7015.entry.js HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/theme.d16f7015.entry.js HTTP/1.1" 404 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/images/loading.gif HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/images/loading.gif HTTP/1.1" 404 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/thumbnail.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/thumbnail.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/mathjs.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/mathjs.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/vendors.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:43] "GET /static/assets/vendors.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:44] "GET /static/assets/mathjs.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:44] "GET /static/assets/mathjs.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | 172.20.0.1 - - [21/Nov/2020 22:49:44] "GET /static/assets/thumbnail.d16f7015.chunk.js HTTP/1.1" 404 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [21/Nov/2020 22:49:44] "GET /static/assets/thumbnail.d16f7015.chunk.js HTTP/1.1" 404 -

@0xpetersatoshi
Copy link

Upon further inspection, I noticed that the superset_node container died. Here is the tail of the logs for it:

<s> [webpack.Progress] 94% after asset optimization
<s> [webpack.Progress] 94% after seal
<s> [webpack.Progress] 95% emitting
<s> [webpack.Progress] 95% emitting fork-ts-checker-webpack-plugin
<s> [webpack.Progress] 95% emitting clean-webpack-plugin
<s> [webpack.Progress] 95% emitting ManifestPlugin
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! superset@0.999.0-dev dev: `webpack --mode=development --colors --debug --watch`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the superset@0.999.0-dev dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-11-21T22_04_07_103Z-debug.log
npm WARN using --force I sure hope you know what you are doing.
/usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js
/usr/local/bin/webpack-cli -> /usr/local/lib/node_modules/webpack-cli/bin/cli.js
+ webpack-cli@4.2.0
+ webpack@5.6.0
updated 2 packages in 7.314s
npm WARN using --force I sure hope you know what you are doing.

@keehl1213
Copy link

Upon further inspection, I noticed that the superset_node container died. Here is the tail of the logs for it:

<s> [webpack.Progress] 94% after asset optimization
<s> [webpack.Progress] 94% after seal
<s> [webpack.Progress] 95% emitting
<s> [webpack.Progress] 95% emitting fork-ts-checker-webpack-plugin
<s> [webpack.Progress] 95% emitting clean-webpack-plugin
<s> [webpack.Progress] 95% emitting ManifestPlugin
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! superset@0.999.0-dev dev: `webpack --mode=development --colors --debug --watch`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the superset@0.999.0-dev dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-11-21T22_04_07_103Z-debug.log
npm WARN using --force I sure hope you know what you are doing.
/usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js
/usr/local/bin/webpack-cli -> /usr/local/lib/node_modules/webpack-cli/bin/cli.js
+ webpack-cli@4.2.0
+ webpack@5.6.0
updated 2 packages in 7.314s
npm WARN using --force I sure hope you know what you are doing.

Status 137 is out of memory. Maybe 4 GB of RAM is not enough. My docker has 5 GB of memory and 3 GB of swap on windows 10. It works fine for me.

@anivon
Copy link

anivon commented Dec 10, 2020

I had the same issue, in fact the container superset_node takes very long time for first npm-install (more than 20 minutes on my configuration)...
A tip if you want to check if still installing is to go into this container, then in /app/superset-frontend/node_modules or /app/superset-frontend/node_modules/.staging and do some ls -lah | wc -l. Normally, the number of folder will vary ;).

@cheunhong
Copy link
Contributor

For docker users on mac who are familiar with kubernetes, docker provides the option to start a kubernetes engine locally.
Just do helm upgrade --install superset ./helm/superset will get you going without all the troubles.
Remember to do kubectl port-forward service/superset 8088:8088 after the installation is done.

@aseem-poloniex
Copy link

aseem-poloniex commented Sep 24, 2021

docker-compose up - did not work . Showed same blank screen as mentioned in the question above.
After 5-10 minutes I was able to see the actual dashboard though. I guess it just takes time.

docker-compose -f docker-compose-non-dev.yml up - works immediately.

@MohamedKhattat
Copy link

could someone help me resolving the same error disccussed above. i will appreciate your collaboration 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests