question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UI not working in docker production setup.

See original GitHub issue

Expected results

what you expected to happen. After login with admin/admin for production docker running image, there is no menu/dashboard showing up.

Actual results

what actually happens.

Instead it shows up some blank page with a button.

Screenshots

2020-01-15_12-45-48

How to reproduce the bug

  1. changes in .env file as production for FLASK_ENV and SUPERSET_ENV.
  2. run sudo SUPERSET_LOAD_EXAMPLES=yes docker-compose run --rm superset ./docker-init.sh
  3. run sudo docker-compose up
  4. go to the endpoint login page in the browser. Enter admin/admin. You can see a blank page with a button in it and nothing else.

Environment

Latest from master branch

  • 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

Log attached below.

Log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:9

github_iconTop GitHub Comments

2reactions
DylanNWattcommented, Jan 19, 2020

I also came across this, and after a long debugging session I walked away, came back, and it was working. I’m pretty sure it’s just that you’re able to access the webpage long before the npm installation process has completed. If you inspect the source of the returned page when it’s in that state, there are no script tags embedded.

After waiting for about 15 minutes on a modern macbook pro, the logs progressed from npm ci step to the actual build, and it started working. The fix here is probably just not starting the web server until the build is complete, and adding more clear logging after npm ci of “Installing web dependencies, this may take a while.”

2reactions
issue-label-bot[bot]commented, Jan 15, 2020

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

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

UI not working in docker production setup. #8975 - GitHub
After login with admin/admin for production docker running image, there is no menu/dashboard showing up. Actual results. what actually happens.
Read more >
Use Compose in production - Docker Documentation
You can use Compose to deploy an app to a remote Docker host by setting the DOCKER_HOST , DOCKER_TLS_VERIFY , and DOCKER_CERT_PATH environment...
Read more >
Vue UI is not working through docker-compose - Stack Overflow
I experimented with starting the command this way and discovered that you want to run in headless mode and in particular the host...
Read more >
7 Cases When You Should Not Use Docker - freeCodeCamp
Docker does not suit applications that require rich UI. Docker is mainly intended for isolated containers with console-based applications. GUI- ...
Read more >
Developing inside a Container - Visual Studio Code
The Visual Studio Code Dev Containers extension lets you use a Docker ... Note: When using Alpine Linux containers, some extensions may not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found