UI not working in docker production setup.
See original GitHub issueExpected 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
How to reproduce the bug
- changes in .env file as production for FLASK_ENV and SUPERSET_ENV.
- run sudo SUPERSET_LOAD_EXAMPLES=yes docker-compose run --rm superset ./docker-init.sh
- run sudo docker-compose up
- 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:
- Created 4 years ago
- Reactions:6
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 afternpm ci
of “Installing web dependencies, this may take a while.”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.