You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2026/02/22 05:51:55 UTC

Re: [I] docker bug: werkzeug/utils.py" in send_from_directory [superset]

rusackas commented on issue #30183:
URL: https://github.com/apache/superset/issues/30183#issuecomment-3940238496

   I've opened PR #38161 to fix this issue.
   
   **Root cause identified:** This is a race condition where nginx starts before the webpack dev server is ready. Nginx proxies `/static` requests to port 9000, but `superset-node` needs time to run `npm install` and start the dev server first.
   
   **The fix:**
   1. Added a health check to `superset-node` that verifies the webpack dev server is responding
   2. Added `depends_on: service_healthy` to nginx so it waits for the frontend to be ready
   
   This should resolve the 404 errors that occur during initial startup. The "workaround" of running `npm run build` manually worked because it created static assets that Flask could serve directly, bypassing the need for the webpack dev server - but that's not how the dev setup is supposed to work.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org