dosubot[bot] commented on issue #34505: URL: https://github.com/apache/superset/issues/34505#issuecomment-3144707596
<!-- Answer --> Your Dockerfile commands look correct for building the frontend in Superset 4.1.1, but persistent 404 errors for static assets almost always mean the frontend build didn't finish or the assets aren't being served from the right place. A few things to check: - Make sure BUILD_CMD is set to build (the default), so npm run build is executed. If it's set to anything else, or if DEV_MODE is true, the build might be skipped and assets will be missing. - After the build, check inside your container that superset/static/assets exists and contains files. If it's empty or missing, the build failed or didn't run. - Watch your build logs for any errors during npm run buildāsometimes memory issues or missing dependencies cause silent failures. - For Docker setups in 4.1.x, try accessing Superset on port 9000 instead of 8088, as assets are often served there by default in recent versions ([source](https://github.com/apache/superset/issues/33875)). - If assets are still missing, exec into the container, cd to superset-frontend, and run npm install and npm run build manually, then restart Superset ([source](https://github.com/apache/superset/issues/33875)). If you still have issues, please share the value of BUILD_CMD, whether DEV_MODE is set, and any errors from your build logs. This will help pinpoint the problem. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d7c62f59-34a6-4925-86cb-00b9b9b88d26?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34505) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
