Bug description
Bug description
docker 构建正常,启动并登录后跳转页面错误,并且superset_app出现错误,错误如下
2025-01-16 11:35:39,016:WARNING:superset.views.error_handling:HTTPException
superset_app | Traceback (most recent call last):
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
superset_app | rv = self.dispatch_request()
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
superset_app | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 502, in <lambda>
superset_app | view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/scaffold.py", line 317, in send_static_file
superset_app | return send_from_directory(
superset_app | ^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/helpers.py", line 557, in send_from_directory
superset_app | return werkzeug.utils.send_from_directory( # type: ignore[return-value]
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/werkzeug/utils.py", line 575, in send_from_directory
superset_app | raise NotFound()
superset_app | werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
superset_app | 10.100.5.188 - - [16/Jan/2025:11:35:39 +0000] "GET /static/assets/images/loading.gif HTTP/1.1" 404 334 "http://10.100.5.77:8088/superset/welcome/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0"

Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.11
Node version
18 or greater
Browser
Chrome
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: ludaxiansheng
docker构建命令如下 docker compose up --build
Comment From: dosubot[bot]
Hey @ludaxiansheng! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this docker issue together!
I found a similar closed issue related to a 404 error for static assets in Superset, but no solution was found in the comments [1]. Additionally, there are two unsolved discussions that might be relevant:
- Custom Logo with Docker + nginx-proxy not working [2].
- Docker for testing Superset Failed in local [3].
For your specific issue, the 404 error for the static asset loading.gif
suggests that the static files might not be correctly built or served. Here are a few steps you can take to troubleshoot and potentially resolve the issue:
-
Verify Static Asset Build: Ensure that the static assets are correctly built during the Docker image creation. The assets should be located in the
/app/superset/static/assets
directory within the Docker container [4]. -
Check Nginx Configuration: If you are using Nginx to serve static files, verify that the Nginx configuration is correctly set up to serve files from the static assets directory. The
nginx.conf
file should have the correct paths and permissions to access these files [5]. -
STATIC_ASSETS_PREFIX Configuration: Check the
STATIC_ASSETS_PREFIX
configuration in your Superset setup. This configuration determines the path for static assets. Ensure it is set correctly to match the location where your static files are served [6]. -
Docker Volumes: Ensure that the Docker volumes are correctly mounted and that the paths for static files are accessible within the container. This includes verifying the
docker-compose.yml
file for correct volume mappings [5].
By following these steps, you should be able to identify and resolve the issue with missing static assets in your Superset Docker deployment.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
Comment From: ludaxiansheng
@dosubot super_init容器运行失败, 但是docker logs 日志并未发现异常
docker logs superset_init Reinstalling the app in editable mode Resolved 147 packages in 1m 22s Prepared 1 package in 4.61s Uninstalled 1 package in 295ms Installed 1 package in 4ms ~ apache-superset==0.0.0.dev0 (from file:///app) Installing postgres requirements Audited 1 package in 63ms Skipping local overrides Unknown Operation!!!
Init Step 1/4 [Starting] -- Applying DB migrations
Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py] 2025-01-17 01:47:38,112:INFO:superset.initialization:Setting database isolation level to READ COMMITTED INFO [alembic.env] Starting the migration scripts. INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.env] Migration scripts completed. Duration: 00:00:00
Init Step 1/4 [Complete] -- Applying DB migrations
Init Step 2/4 [Starting] -- Setting up admin user ( admin / admin )
Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py] 2025-01-17 01:47:49,171:INFO:superset.initialization:Setting database isolation level to READ COMMITTED Recognized Database Authentications. Error! User already exists admin
Init Step 2/4 [Complete] -- Setting up admin user
Init Step 3/4 [Starting] -- Setting up roles and perms
Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py] 2025-01-17 01:47:56,818:INFO:superset.initialization:Setting database isolation level to READ COMMITTED 2025-01-17 01:48:02,475:INFO:superset.security.manager:Syncing role definition 2025-01-17 01:48:02,543:INFO:superset.security.manager:Syncing Admin perms 2025-01-17 01:48:02,551:INFO:superset.security.manager:Syncing Alpha perms 2025-01-17 01:48:02,562:INFO:superset.security.manager:Syncing Gamma perms 2025-01-17 01:48:02,572:INFO:superset.security.manager:Syncing sql_lab perms 2025-01-17 01:48:02,578:INFO:superset.security.manager:Fetching a set of all perms to lookup which ones are missing 2025-01-17 01:48:02,588:INFO:superset.security.manager:Creating missing datasource permissions. 2025-01-17 01:48:02,752:INFO:superset.security.manager:Creating missing database permissions. 2025-01-17 01:48:02,758:INFO:superset.security.manager:Cleaning faulty perms
Init Step 3/4 [Complete] -- Setting up roles and perms
Init Step 4/4 [Starting] -- Loading examples
Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py] 2025-01-17 01:48:08,233:INFO:superset.initialization:Setting database isolation level to READ COMMITTED 2025-01-17 01:48:10,909:INFO:superset.cli.examples:Loading examples metadata and related data into examples 2025-01-17 01:48:10,935:INFO:superset.cli.examples:Loading [World Bank's Health Nutrition and Population Stats] 2025-01-17 01:48:14,893:INFO:superset.cli.examples:Loading [Birth names] 2025-01-17 01:48:15,889:INFO:superset.cli.examples:Loading [Random long/lat data] 2025-01-17 01:48:16,264:INFO:superset.cli.examples:Loading [Country Map data] 2025-01-17 01:48:16,644:INFO:superset.cli.examples:Loading [San Francisco population polygons] 2025-01-17 01:48:17,020:INFO:superset.cli.examples:Loading [Flights data] 2025-01-17 01:48:17,493:INFO:superset.cli.examples:Loading [BART lines] 2025-01-17 01:48:17,804:INFO:superset.cli.examples:Loading [Misc Charts] dashboard 2025-01-17 01:48:17,844:INFO:superset.cli.examples:Loading DECK.gl demo
Init Step 4/4 [Complete] -- Loading examples
root@itgemini-ubuntu:/docker-share/superset# docker ps
Comment From: imamfchrj
I have the exact same problem as you @ludaxiansheng. Please provide me with a solution to resolve this issue.
Comment From: dosubot[bot]
The "Unknown Operation" message you encountered during the Superset initialization process doesn't seem to be causing any critical issues, as the subsequent steps in the initialization process completed successfully. Here's a breakdown of what happened:
- DB Migrations: The database migrations were applied without any issues.
- Admin User Setup: The process attempted to create an admin user, but it found that the user already exists. This is not an error; it simply means the user setup step was skipped because the user is already present.
- Roles and Permissions: The roles and permissions were set up correctly, as indicated by the logs showing the syncing of role definitions and permissions.
- Loading Examples: The example data was loaded successfully, which includes various datasets and dashboards.
The "Unknown Operation" message might be a benign log entry that doesn't affect the overall functionality. If everything else is working as expected, you can likely ignore this message. If you encounter any specific issues related to this message, further investigation might be needed, but based on the logs, the initialization process completed successfully.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
Comment From: imamfchrj
@dosubot an then How to ignore this error and proceed to access the Superset dashboard?
Comment From: sfirke
I am experiencing this too, it seems like the workflow from the instructions is broken. I cloned the repo, made no changes, and ran docker compose up --build
- I was able to login as admin, then got the same mostly-blank screen as in the issue here. Lots of this in the error logs:
superset_app | 2025-01-31 20:37:11,427:WARNING:superset.views.error_handling:HTTPException
superset_app | Traceback (most recent call last):
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
superset_app | rv = self.dispatch_request()
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
superset_app | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 502, in <lambda>
superset_app | view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/scaffold.py", line 317, in send_static_file
superset_app | return send_from_directory(
superset_app | ^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/helpers.py", line 557, in send_from_directory
superset_app | return werkzeug.utils.send_from_directory( # type: ignore[return-value]
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/werkzeug/utils.py", line 575, in send_from_directory
superset_app | raise NotFound()
superset_app | werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Comment From: dosubot[bot]
To proceed and access the Superset dashboard despite the "Unknown Operation" message, you can simply continue using Superset as the initialization process appears to have completed successfully. The message doesn't seem to impact the functionality, so you should be able to access the dashboard by navigating to http://<your-docker-host>:8088
in your web browser. If you encounter any specific issues while using the dashboard, those would need to be addressed separately, but based on the logs, you should be able to proceed without any problems.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
Comment From: sfirke
Possible fix here: https://github.com/apache/superset/discussions/18262#discussioncomment-6444046, haven't tried it yet but noting for later
Comment From: hughhhh
@sfirke what port do you goto to see the UI portion?
Comment From: sfirke
Port 8088
Comment From: drummerwolli
i have the same issue. i had a look at the possible fix from @sfirke but i can see in my docker build that the npm build is actually running and finishing without problems. so i somehow doubt that this is the problem. also, the comment does not specify which commands exactly to run, so hard to execute this workaround, maybe i was misunderstanding something.
Comment From: sfirke
@drummerwolli how long is your npm build taking to finish? In my broken new dev environment affected by this problem, it is taking 10 seconds. In my existing functioning environment on another machine, it takes more like 2000 seconds (30 minutes). I'm still stuck, but that feels like a clue.
Comment From: drummerwolli
@sfirke i tried now downgrading to 4.1.1, and then the build took 567.6s ... which was definately longer than on the latest master branch. but the issue unfortunately still persists, i still get no static assets 🤔
Comment From: drummerwolli
okay, good news: i just noticed that the docker container was still spitting out logs. and now it finished way later and i can see assets. so the actual build is taking longer than the docker-compose
build.
i will retry this once more with the latest master branch and will try to be more patient.
Comment From: sfirke
Eager to hear what you experience on master!
Is there an npm command I can/should run first to build those front-end assets? In my case, the docker-compose up --build
wasn't streaming logs anymore related to the front-end build.
Comment From: drummerwolli
@sfirke i found this recent PR: https://github.com/apache/superset/pull/32017 ... this looked suspicious to me. so i tried the commit before that PR, and that still works. can you try as well? wondering if this PR broke this, as it also touches caching with Docker and other things with the Docker build.
Comment From: mistercrunch
Oh! gotta hit up port 9000
now that we use npm run dev-server
in the main docker-compose.yml
. I think 8088
is still exposed, but may serve an older/lingering build (?)
Comment From: sfirke
@mistercrunch are you saying we should be visiting Superset at localhost:9000
? When I try that I get this error:
superset_node | [HPM] Error occurred while proxying request localhost:9000/ to http://host.docker.internal:8088/ [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)
Comment From: sfirke
@drummerwolli I tried git checkout a87a13c3abeb162b70e7f4db807f5ea223346f41
to take my repo state back to Jan 29, then docker compose up --build
and that did not change things for me. The npm build finishes in ten seconds and I get the original error experienced by OP here.
Comment From: mistercrunch
Yes, for the main/default dev environment docker-compose.yml
, the official port is 9000
now and it should be reflected in the docs. Now if you're getting [HPM] Error occurred while proxying request localhost:9000/
it seems that the app might not be served (or maybe the container is just not ready yet). Recently I changed some of the logic/dependencies so that the app doesn't start until superset-init
(loading examples, creating admin user) needs to finish and succeed first.
Any error messages in the docker-compose logs prior to the proxy error message?
Comment From: drummerwolli
@mistercrunch unfortunately not:
docker logs -f superset_node
Building Superset frontend in dev mode inside docker container
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g npm@11.1.0
npm notice
Running
up to date, audited 3980 packages in 14s
658 packages are looking for funding
run `npm fund` for details
33 vulnerabilities (22 moderate, 10 high, 1 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
up to date, audited 3980 packages in 4s
658 packages are looking for funding
run `npm fund` for details
33 vulnerabilities (22 moderate, 10 high, 1 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
Start webpack dev server
> superset@0.0.0-dev dev-server
> cross-env NODE_ENV=development BABEL_ENV=development node --max_old_space_size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development
[Superset Plugin] Use symlink source for @superset-ui/chart-controls @ ./packages/superset-ui-chart-controls
[Superset Plugin] Use symlink source for @superset-ui/core @ ./packages/superset-ui-core
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-calendar @ ./plugins/legacy-plugin-chart-calendar
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-chord @ ./plugins/legacy-plugin-chart-chord
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-country-map @ ./plugins/legacy-plugin-chart-country-map
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-horizon @ ./plugins/legacy-plugin-chart-horizon
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-map-box @ ./plugins/legacy-plugin-chart-map-box
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-paired-t-test @ ./plugins/legacy-plugin-chart-paired-t-test
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-parallel-coordinates @ ./plugins/legacy-plugin-chart-parallel-coordinates
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-partition @ ./plugins/legacy-plugin-chart-partition
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-rose @ ./plugins/legacy-plugin-chart-rose
[Superset Plugin] Use symlink source for @superset-ui/legacy-plugin-chart-world-map @ ./plugins/legacy-plugin-chart-world-map
[Superset Plugin] Use symlink source for @superset-ui/legacy-preset-chart-deckgl @ ./plugins/legacy-preset-chart-deckgl
[Superset Plugin] Use symlink source for @superset-ui/legacy-preset-chart-nvd3 @ ./plugins/legacy-preset-chart-nvd3
[Superset Plugin] Use symlink source for @superset-ui/plugin-chart-cartodiagram @ ./plugins/plugin-chart-cartodiagram
[Superset Plugin] Use symlink source for @superset-ui/plugin-chart-echarts @ ./plugins/plugin-chart-echarts
[Superset Plugin] Use symlink source for @superset-ui/plugin-chart-handlebars @ ./plugins/plugin-chart-handlebars
[Superset Plugin] Use symlink source for @superset-ui/plugin-chart-pivot-table @ ./plugins/plugin-chart-pivot-table
[Superset Plugin] Use symlink source for @superset-ui/plugin-chart-table @ ./plugins/plugin-chart-table
[Superset Plugin] Use symlink source for @superset-ui/plugin-chart-word-cloud @ ./plugins/plugin-chart-word-cloud
[Superset Plugin] Use symlink source for @superset-ui/switchboard @ ./packages/superset-ui-switchboard
[HPM] Proxy created: / -> http://host.docker.internal:8088
<s> [webpack.Progress] 3% setup watch run
<s> [webpack.Progress] 3% setup watch run webpack-cli
<s> [webpack.Progress] 3% setup watch run webpack-dev-middleware
<s> [webpack.Progress] 3% setup watch run WebpackManifestPlugin
<s> [webpack.Progress] 3% setup watch run
<s> [webpack.Progress] 4% setup normal module factory
<s> [webpack.Progress] 4% setup normal module factory
<s> [webpack.Progress] 5% setup context module factory
<s> [webpack.Progress] 5% setup context module factory
<s> [webpack.Progress] 6% setup before compile
<s> [webpack.Progress] 6% setup before compile ProgressPlugin
<s> [webpack.Progress] 6% setup before compile
<s> [webpack.Progress] 7% setup compile
<s> [webpack.Progress] 7% setup compile ExternalsPlugin
<s> [webpack.Progress] 7% setup compile ExternalsPlugin
<s> [webpack.Progress] 7% setup compile
<s> [webpack.Progress] 8% setup compilation
<s> [webpack.Progress] 8% setup compilation CopyPlugin
<s> [webpack.Progress] 8% setup compilation HtmlWebpackPlugin
<s> [webpack.Progress] 8% setup compilation HtmlWebpackPlugin
<s> [webpack.Progress] 8% setup compilation ArrayPushCallbackChunkFormatPlugin
<s> [webpack.Progress] 8% setup compilation JsonpChunkLoadingPlugin
<s> [webpack.Progress] 8% setup compilation StartupChunkDependenciesPlugin
<s> [webpack.Progress] 8% setup compilation ImportScriptsChunkLoadingPlugin
<s> [webpack.Progress] 8% setup compilation WorkerPlugin
<s> [webpack.Progress] 8% setup compilation SplitChunksPlugin
<s> [webpack.Progress] 8% setup compilation ResolverCachePlugin
<s> [webpack.Progress] 8% setup compilation WebpackManifestPlugin
<s> [webpack.Progress] 8% setup compilation
<s> [webpack.Progress] 9% setup compilation
<s> [webpack.Progress] 9% setup compilation ProvidePlugin
<s> [webpack.Progress] 9% setup compilation DefinePlugin
<s> [webpack.Progress] 9% setup compilation ProgressPlugin
<s> [webpack.Progress] 9% setup compilation ChunkPrefetchPreloadPlugin
<s> [webpack.Progress] 9% setup compilation ModuleInfoHeaderPlugin
<s> [webpack.Progress] 9% setup compilation EvalSourceMapDevToolPlugin
<s> [webpack.Progress] 9% setup compilation JavascriptModulesPlugin
<s> [webpack.Progress] 9% setup compilation JsonModulesPlugin
<s> [webpack.Progress] 9% setup compilation AssetModulesPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation RuntimePlugin
<s> [webpack.Progress] 9% setup compilation InferAsyncModulesPlugin
<s> [webpack.Progress] 9% setup compilation DataUriPlugin
<s> [webpack.Progress] 9% setup compilation FileUriPlugin
<s> [webpack.Progress] 9% setup compilation CompatibilityPlugin
<s> [webpack.Progress] 9% setup compilation HarmonyModulesPlugin
<s> [webpack.Progress] 9% setup compilation AMDPlugin
<s> [webpack.Progress] 9% setup compilation RequireJsStuffPlugin
<s> [webpack.Progress] 9% setup compilation CommonJsPlugin
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
<s> [webpack.Progress] 9% setup compilation NodeStuffPlugin
<s> [webpack.Progress] 9% setup compilation APIPlugin
<s> [webpack.Progress] 9% setup compilation ExportsInfoApiPlugin
<s> [webpack.Progress] 9% setup compilation WebpackIsIncludedPlugin
<s> [webpack.Progress] 9% setup compilation ConstPlugin
<s> [webpack.Progress] 9% setup compilation UseStrictPlugin
<s> [webpack.Progress] 9% setup compilation RequireIncludePlugin
<s> [webpack.Progress] 9% setup compilation RequireEnsurePlugin
<s> [webpack.Progress] 9% setup compilation RequireContextPlugin
<s> [webpack.Progress] 9% setup compilation ImportPlugin
<s> [webpack.Progress] 9% setup compilation ImportMetaContextPlugin
<s> [webpack.Progress] 9% setup compilation SystemPlugin
<s> [webpack.Progress] 9% setup compilation ImportMetaPlugin
<s> [webpack.Progress] 9% setup compilation URLPlugin
<s> [webpack.Progress] 9% setup compilation DefaultStatsFactoryPlugin
<s> [webpack.Progress] 9% setup compilation DefaultStatsPresetPlugin
<s> [webpack.Progress] 9% setup compilation DefaultStatsPrinterPlugin
<s> [webpack.Progress] 9% setup compilation JavascriptMetaInfoPlugin
<s> [webpack.Progress] 9% setup compilation EnsureChunkConditionsPlugin
<s> [webpack.Progress] 9% setup compilation RemoveEmptyChunksPlugin
<s> [webpack.Progress] 9% setup compilation MergeDuplicateChunksPlugin
<s> [webpack.Progress] 9% setup compilation SideEffectsFlagPlugin
<s> [webpack.Progress] 9% setup compilation FlagDependencyExportsPlugin
<s> [webpack.Progress] 9% setup compilation FlagDependencyUsagePlugin
<s> [webpack.Progress] 9% setup compilation NamedModuleIdsPlugin
<s> [webpack.Progress] 9% setup compilation NamedChunkIdsPlugin
<s> [webpack.Progress] 9% setup compilation DefinePlugin
<s> [webpack.Progress] 9% setup compilation TemplatedPathPlugin
<s> [webpack.Progress] 9% setup compilation RecordIdsPlugin
<s> [webpack.Progress] 9% setup compilation WarnCaseSensitiveModulesPlugin
<s> [webpack.Progress] 9% setup compilation AddBuildDependenciesPlugin
<s> [webpack.Progress] 9% setup compilation AddBuildDependenciesPlugin
<s> [webpack.Progress] 9% setup compilation AddBuildDependenciesPlugin
<s> [webpack.Progress] 9% setup compilation IgnoreWarningsPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation EntryPlugin
<s> [webpack.Progress] 9% setup compilation ProvidePlugin
<s> [webpack.Progress] 9% setup compilation HotModuleReplacementPlugin
<s> [webpack.Progress] 9% setup compilation WebpackManifestPlugin
<s> [webpack.Progress] 9% setup compilation
<s> [webpack.Progress] 10% building
<s> [webpack.Progress] 10% building 0/1 entries 0/0 dependencies 0/0 modules
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:9000/
<i> [webpack-dev-server] Content not from webpack is served from '/app/static/assets' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'
<s> [webpack.Progress] 10% building 0/14 entries 1/14 dependencies 0/0 modules
<s> [webpack.Progress] 10% building 1/14 entries 302/799 dependencies 32/168 modules
<s> [webpack.Progress] 10% building 2/14 entries 753/923 dependencies 60/448 modules
<s> [webpack.Progress] 10% building 3/14 entries 753/923 dependencies 60/448 modules
<s> [webpack.Progress] 10% building 4/14 entries 753/923 dependencies 60/448 modules
<s> [webpack.Progress] 10% building 5/14 entries 753/923 dependencies 60/448 modules
<s> [webpack.Progress] 10% building 6/14 entries 753/923 dependencies 61/448 modules
<s> [webpack.Progress] 21% building 7/14 entries 9003/16516 dependencies 1329/3914 modules
<s> [webpack.Progress] 38% building 7/14 entries 26200/27114 dependencies 6343/7883 modules
<s> [webpack.Progress] 45% building 7/14 entries 32789/33248 dependencies 7879/10100 modules
<s> [webpack.Progress] 63% building 8/14 entries 42529/42576 dependencies 12072/12280 modules
<s> [webpack.Progress] 63% building 9/14 entries 42529/42576 dependencies 12072/12280 modules
<s> [webpack.Progress] 63% building 10/14 entries 42529/42576 dependencies 12072/12280 modules
<s> [webpack.Progress] 63% building 11/14 entries 42529/42576 dependencies 12072/12280 modules
<s> [webpack.Progress] 63% building 12/14 entries 42529/42576 dependencies 12073/12280 modules
<s> [webpack.Progress] 64% building 13/14 entries 42697/42698 dependencies 12304/12323 modules
<s> [webpack.Progress] 65% building 14/14 entries 42699/42699 dependencies 12324/12324 modules
<s> [webpack.Progress] 65% building
<s> [webpack.Progress] 69% building finish
<s> [webpack.Progress] 69% building finish
<s> [webpack.Progress] 70% sealing finish module graph
<s> [webpack.Progress] 70% sealing finish module graph ResolverCachePlugin
<s> [webpack.Progress] 70% sealing finish module graph InferAsyncModulesPlugin
<s> [webpack.Progress] 70% sealing finish module graph FlagDependencyExportsPlugin
<s> [webpack.Progress] 70% sealing finish module graph
<s> [webpack.Progress] 70% sealing plugins
<s> [webpack.Progress] 70% sealing plugins WarnCaseSensitiveModulesPlugin
<s> [webpack.Progress] 70% sealing plugins
<s> [webpack.Progress] 71% sealing dependencies optimization
<s> [webpack.Progress] 71% sealing dependencies optimization SideEffectsFlagPlugin
<s> [webpack.Progress] 71% sealing dependencies optimization FlagDependencyUsagePlugin
<s> [webpack.Progress] 71% sealing dependencies optimization
<s> [webpack.Progress] 71% sealing after dependencies optimization
<s> [webpack.Progress] 71% sealing after dependencies optimization
<s> [webpack.Progress] 72% sealing chunk graph
<s> [webpack.Progress] 72% sealing chunk graph
<s> [webpack.Progress] 73% sealing after chunk graph
<s> [webpack.Progress] 73% sealing after chunk graph
<s> [webpack.Progress] 73% sealing optimizing
<s> [webpack.Progress] 73% sealing optimizing
<s> [webpack.Progress] 74% sealing module optimization
<s> [webpack.Progress] 74% sealing module optimization
<s> [webpack.Progress] 75% sealing after module optimization
<s> [webpack.Progress] 75% sealing after module optimization
<s> [webpack.Progress] 75% sealing chunk optimization
<s> [webpack.Progress] 75% sealing chunk optimization EnsureChunkConditionsPlugin
<s> [webpack.Progress] 75% sealing chunk optimization RemoveEmptyChunksPlugin
<s> [webpack.Progress] 75% sealing chunk optimization MergeDuplicateChunksPlugin
<s> [webpack.Progress] 75% sealing chunk optimization SplitChunksPlugin
<s> [webpack.Progress] 75% sealing chunk optimization RemoveEmptyChunksPlugin
<s> [webpack.Progress] 75% sealing chunk optimization
<s> [webpack.Progress] 76% sealing after chunk optimization
<s> [webpack.Progress] 76% sealing after chunk optimization
<s> [webpack.Progress] 77% sealing module and chunk tree optimization
<s> [webpack.Progress] 77% sealing module and chunk tree optimization PersistentChildCompilerSingletonPlugin
<s> [webpack.Progress] 77% sealing module and chunk tree optimization
<s> [webpack.Progress] 77% sealing after module and chunk tree optimization
<s> [webpack.Progress] 77% sealing after module and chunk tree optimization
<s> [webpack.Progress] 78% sealing chunk modules optimization
<s> [webpack.Progress] 78% sealing chunk modules optimization
<s> [webpack.Progress] 78% sealing after chunk modules optimization
<s> [webpack.Progress] 78% sealing after chunk modules optimization
<s> [webpack.Progress] 79% sealing module reviving
<s> [webpack.Progress] 79% sealing module reviving RecordIdsPlugin
<s> [webpack.Progress] 79% sealing module reviving
<s> [webpack.Progress] 80% sealing before module ids
<s> [webpack.Progress] 80% sealing before module ids
<s> [webpack.Progress] 80% sealing module ids
<s> [webpack.Progress] 80% sealing module ids NamedModuleIdsPlugin
<s> [webpack.Progress] 80% sealing module ids
<s> [webpack.Progress] 81% sealing module id optimization
<s> [webpack.Progress] 81% sealing module id optimization
<s> [webpack.Progress] 82% sealing module id optimization
<s> [webpack.Progress] 82% sealing module id optimization
<s> [webpack.Progress] 82% sealing chunk reviving
<s> [webpack.Progress] 82% sealing chunk reviving RecordIdsPlugin
<s> [webpack.Progress] 82% sealing chunk reviving
<s> [webpack.Progress] 83% sealing before chunk ids
<s> [webpack.Progress] 83% sealing before chunk ids
<s> [webpack.Progress] 84% sealing chunk ids
<s> [webpack.Progress] 84% sealing chunk ids NamedChunkIdsPlugin
<s> [webpack.Progress] 84% sealing chunk ids
<s> [webpack.Progress] 84% sealing chunk id optimization
<s> [webpack.Progress] 84% sealing chunk id optimization
<s> [webpack.Progress] 85% sealing after chunk id optimization
<s> [webpack.Progress] 85% sealing after chunk id optimization
<s> [webpack.Progress] 86% sealing record modules
<s> [webpack.Progress] 86% sealing record modules RecordIdsPlugin
<s> [webpack.Progress] 86% sealing record modules
<s> [webpack.Progress] 86% sealing record chunks
<s> [webpack.Progress] 86% sealing record chunks RecordIdsPlugin
<s> [webpack.Progress] 86% sealing record chunks
<s> [webpack.Progress] 87% sealing module hashing
<s> [webpack.Progress] 87% sealing module hashing
<s> [webpack.Progress] 87% sealing code generation
<s> [webpack.Progress] 87% sealing code generation
<s> [webpack.Progress] 88% sealing runtime requirements
<s> [webpack.Progress] 88% sealing runtime requirements
<s> [webpack.Progress] 89% sealing hashing
<s> [webpack.Progress] 89% sealing hashing
<s> [webpack.Progress] 89% sealing after hashing
<s> [webpack.Progress] 89% sealing after hashing
<s> [webpack.Progress] 90% sealing record hash
<s> [webpack.Progress] 90% sealing record hash
<s> [webpack.Progress] 91% sealing module assets processing
<s> [webpack.Progress] 91% sealing module assets processing
<s> [webpack.Progress] 91% sealing chunk assets processing
<s> [webpack.Progress] 91% sealing chunk assets processing
<s> [webpack.Progress] 92% sealing asset processing
<s> [webpack.Progress] 92% sealing asset processing copy-webpack-plugin
<s> [webpack.Progress] 92% sealing asset processing HotModuleReplacementPlugin
<s> [webpack.Progress] 92% sealing asset processing PersistentChildCompilerSingletonPlugin
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
<s> [webpack.Progress] 92% sealing asset processing WebpackManifestPlugin
<s> [webpack.Progress] 92% sealing asset processing
<s> [webpack.Progress] 93% sealing after asset optimization
<s> [webpack.Progress] 93% sealing after asset optimization
<s> [webpack.Progress] 93% sealing recording
<s> [webpack.Progress] 93% sealing recording HotModuleReplacementPlugin
<s> [webpack.Progress] 93% sealing recording
<s> [webpack.Progress] 94% sealing after seal
<s> [webpack.Progress] 94% sealing after seal
<s> [webpack.Progress] 95% emitting emit
<s> [webpack.Progress] 95% emitting emit
<s> [webpack.Progress] 98% emitting after emit
<s> [webpack.Progress] 98% emitting after emit SizeLimitsPlugin
<s> [webpack.Progress] 98% emitting after emit
<s> [webpack.Progress] 99% done plugins
<s> [webpack.Progress] 99% done plugins IdleFileCachePlugin
<s> [webpack.Progress] 99% done plugins webpack-dev-server
<s> [webpack.Progress] 99% done plugins webpack-dev-middleware
<s> [webpack.Progress] 99% done plugins
<s> [webpack.Progress] 99%
<s> [webpack.Progress] 99% cache store build dependencies
<s> [webpack.Progress] 99% cache store build dependencies IdleFileCachePlugin
<s> [webpack.Progress] 99% cache store build dependencies
<s> [webpack.Progress] 99% cache begin idle
<s> [webpack.Progress] 99% cache begin idle IdleFileCachePlugin
<s> [webpack.Progress] 99% cache begin idle
<s> [webpack.Progress] 100%
1057 assets
12425 modules
webpack 5.97.1 compiled successfully in 6897 ms
[HPM] Proxy created: / -> http://host.docker.internal:8088
[HPM] Error occurred while proxying request localhost:9000/ to http://host.docker.internal:8088/ [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while proxying request localhost:9000/favicon.ico to http://host.docker.internal:8088/ [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)
Comment From: drummerwolli
@sfirke mh, strange, i thought i was onto something with the PR 😄 ... but the original bug post here is also older than this PR, so that is also an indication that it's not caused by the PR mentioned.
Comment From: mistercrunch
could look at docker logs -f superset_init
and/or docker logs -f superset_app
, the superset_app
depends on the superset_init
completing successfully
Comment From: sfirke
Looks like superset_init
finished successfully, the last line of its logs is Init Step 4/4 [Complete] -- Loading examples
Comment From: drummerwolli
nothing suspicious in the container logs.
one thing i noticed today (which does not make sense to me but posting here anyways, maybe it helps someone else): everything works with a git clone of apache/superset repo, but it does not work when cloning my fork drummerwolli/superset ... same branch, same commit, just different folders. very strange ...
Comment From: mistercrunch
@drummerwolli that's super key information, it points in the direction that there's something in the filesystem that's throwing off your environment. That's as opposed to something funky happening in your docker state for instance (bad images, ...)
Trying to think through what might be in the filesystem...
- a .env
or .env-local
file that's been modified (I think .env-local are ".gitignored")
- similarly, something under superset_config_docker.py
or similar
- something that has to do with env vars (though that one should be easy to rule out by starting a new terminal/shell, or comparing the output of env
)
- something around numerous frontend build caches, running npm run prune
will clean up node_modules/
and other frontend-related caches
Troubleshooting ideas:
- compare the output of env
- look for local superset_config getting loaded up
- comparing the filesystem between the two cloned git repos (?) some sort of filesystem diffing tool or crafty shell commands
- maybe some git-fu like running some git clean
git reset
-type commands to identify or clean up some local files that are git-ignored.
Comment From: mistercrunch
@rusackas and I were talking about publishing an FAQ entry around cleaning up / fixing up a dev environment, things around docker prune
-type commands, git clean
, npm run prune
, nuking the local docker postgres DB, ...
It's a bit tricky as any of these commands can also removed desired states/local-env stuff, but maybe we just write a bit of a disclaimer "RUNNING SOME OF THESE COMMANDS MAY BREAK LOCAL CONFIGURATIONS"...
In any case, a fresh git clone
may be the most sensible recommendation here. Like when people report "my dev env is broken", maybe the first step is to ask if they can recreated the issue from a fresh git clone
Comment From: mistercrunch
@dosubot any thoughts around breaking up some of my recommendations into actionable steps that will lead to identify/fix issues?
Comment From: dosubot[bot]
To address the issue with missing static assets in the Apache Superset Docker environment, consider the following steps:
-
Ensure Complete Build Process: The build process for static assets might still be running even after
docker-compose
seems to have finished. Monitor the container logs to confirm when the asset building process is actually complete. This can take significantly longer than expected, so patience is key [1]. -
Access the Correct Port: For the main/default development environment, Superset's frontend is now served on port
9000
usingnpm run dev-server
. Ensure you are accessinghttp://localhost:9000
to view the UI. If you encounter proxy errors, it might indicate that the app isn't fully ready yet [2]. -
Check for Environment Differences: If the issue persists, consider differences between your working and non-working environments. This could include differences in
.env
files, local configurations likesuperset_config_docker.py
, or cached frontend build artifacts. Runningnpm run prune
can help clean up frontend-related caches. -
Re-clone the Repository: If troubleshooting doesn't resolve the issue, try starting fresh by cloning the repository again. This can help eliminate any local file system issues that might be affecting the build process.
These steps should help in identifying and resolving the issue with missing static assets in your Superset Docker setup.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
Comment From: drummerwolli
some more updates: i tried cloning now into a new fresh empty directory, and there i have now the same problem. i have now 3 directories (2x times apache org, 1x time my fork) and only one (apache org) works, the other two dont.
@mistercrunch if you clone the latest master into a completely empty dir and just run docker compose up -d
, does http://localhost:8088 work for you as expected?
Comment From: mistercrunch
it's http://localhost:9000 now for docker compose up --build
since we use the interactive webpack proxy (allows auto-refresh while you touch frontend files)
Comment From: seoungbae-park
same issue with 9000, 8088 port
Comment From: loliuy
Same problem, i change the port to 8087, but still meet the error http://IP:8087/superset/welcome/ 404.
Here is the error :
superset_app | 2025-03-11 02:01:55,236:INFO:werkzeug:39.144.124.53 - - [11/Mar/2025 02:01:55] "GET /static/appbuilder/css/fontawesome/solid.min.css HTTP/1.1" 200 -
superset_app | 2025-03-11 02:01:55,240:WARNING:superset.views.error_handling:HTTPException
superset_app | Traceback (most recent call last):
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
superset_app | rv = self.dispatch_request()
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
superset_app | return self.ensure_sync(self.view_functions[rule.endpoint])(view_args)
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 502, in
Comment From: mistercrunch
please send the output to:
17:46 $ python scripts/check-env.py
==================
System Information
==================
OS: Darwin 24.3.0
CPU: 12 cores at 3504.00 MHz
Docker Platform: Docker Desktop (Darwin)
====================================================================================================
Status Software Version Found Ideal Range Supported Range
====================================================================================================
✅ python 3.10.15 3.10.0 - 3.10.999 3.9.0 - 3.11.999
✅ npm 10.8.3 10.0.0 - 999.999.999 10.0.0 - 999.999.999
✅ node v20.16.0 20.0.0 - 20.999.999 20.0.0 - 20.999.999
✅ docker 28.0.1 20.10.0 - 999.999.999 19.0.0 - 999.999.999
✅ docker-compose 2.32.4 2.28.0 - 999.999.999 1.29.0 - 999.999.999
✅ git 2.44.0 2.30.0 - 999.999.999 2.20.0 - 999.999.999
✅ Memory: 16.00 GB
Comment From: sfirke
I spoke too soon in a comment I just deleted. Pulling the latest commits today, I no longer get the issue described earlier in this thread: I can load superset at both :8088
and :9000
. But as I browse around it, everything seeming to work, I'm still seeing this in the logs:
perset_app | 2025-03-13 01:56:04,259:WARNING:superset.views.error_handling:HTTPException
superset_app | Traceback (most recent call last):
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
superset_app | rv = self.dispatch_request()
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1458, in dispatch_request
superset_app | self.raise_routing_exception(req)
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1440, in raise_routing_exception
superset_app | raise request.routing_exception # type: ignore
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/flask/ctx.py", line 353, in match_request
superset_app | result = self.url_adapter.match(return_rule=True) # type: ignore
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/.venv/lib/python3.11/site-packages/werkzeug/routing/map.py", line 629, in match
superset_app | raise NotFound() from None
superset_app | werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Not quite as concerning as the original problem, which I was having, and was a complete blocker on developing Superset.
Comment From: sfirke
Update: I get the above in the logs if I'm using the (obsolete) localhost:8088
- everything loads and works but with those errors. When I use localhost:9000
I don't see those errors.
Comment From: drummerwolli
sry for the radio silence. but yes, whooraaay 🥳 , i also dont have the problems anymore with the latest master! so for me the issue seems to be solved.
Comment From: sfirke
I see this still says localhost:8088
: https://superset.apache.org/docs/installation/docker-compose/#3-log-in-to-superset
Comment From: mistercrunch
Mmmh, yeah should say 9000 if using docker-compose.yml
and 8088 if using either of the two other docker-compose.*.yml
files. All this is a bit confusing, would be great to simplify.
Was hoping we could set 8088 to proxy or redirect to 9000 using the nginx config file but someone would have to spend a moment messing with the nginx.conf
file there.
Comment From: rusackas
Sounds like this is working for folks now... I'll go ahead and close this one out, but if there's more to be done that's considered a bug here, I'm more than happy to reopen it.