GitHub user dosubot[bot] added a comment to the discussion: unable to setup 
using docker compose for 5.0.0

<!-- Answer -->
The 502 errors for static assets indicate [a race condition where nginx is 
trying to proxy requests to the webpack dev server, but the server isn't ready 
yet](https://github.com/apache/superset/pull/38161). This is a known issue - 
the `superset-node` container needs time to run `npm install` and start 
webpack, which [can take 10+ 
minutes](https://github.com/apache/superset/issues/31890#issuecomment-2644044130).

Check if the webpack dev server is running:
```bash
docker compose logs superset-node
```

Look for a message like `"webpack 5.x.x compiled successfully"`. If you don't 
see that yet, the build is still in progress.

Also, I notice you're accessing `http://localhost/superset/welcome/` - are you 
using a custom nginx configuration or reverse proxy? The default Docker dev 
setup serves on port 9000 directly (`http://localhost:9000`). If you have nginx 
in front, make sure it's configured to wait for the webpack server to be 
healthy before starting, or simply wait until the build completes.

If waiting doesn't help, try restarting just the node container after the other 
services are up:
```bash
docker compose restart superset-node
```


<!-- 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/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0178b0c1-f6e2-4c63-ab4a-3e8e27154305?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20502%20errors%20for%20static%20assets%20indicate%20%5Ba%20race%20condition%20where%20nginx%20is%20trying%20to%20proxy%20requests%20to%20the%20webpack%20dev%20server%2C%20but%20the%20server%20isn%27t%20ready%20yet%5D%28https%3A//github.com/apache/superset/pull/38161%29.%20This%20is%20a%20known%20issue%20-%20the%20%60superset-node%60%20container%20needs%20time%20to%20run%20%60npm%20install%60%20and%20start%20webpack%2C%20which%20%5Bcan%20take%2010%2B%20minutes%5D%28https%3A//github.com/apache/superset/issues/31890%23issuecomment-2644044130%29.%0A%0ACheck%20if%20the%20webpack%20dev%20server%20is%20running%3A%0A%60%60%60bash%0Adocker%20compose%20logs%20superset-node%0A%60%60%60%0A%0ALook%20for%20a%20message%20like%20%60%22webpack%205.x.x%20compiled%2
 
0successfully%22%60.%20If%20you%20don%27t%20see%20that%20yet%2C%20the%20build%20is%20still%20in%20progress.%0A%0AAlso%2C%20I%20notice%20you%27re%20accessing%20%60http%3A//localhost/superset/welcome/%60%20-%20are%20you%20using%20a%20custom%20nginx%20configuration%20or%20reverse%20proxy%3F%20The%20default%20Docker%20dev%20setup%20serves%20on%20port%209000%20directly%20%28%60http%3A//localhost%3A9000%60%29.%20If%20you%20have%20nginx%20in%20front%2C%20make%20sure%20it%27s%20configured%20to%20wait%20for%20the%20webpack%20server%20to%20be%20healthy%20before%20starting%2C%20or%20simply%20wait%20until%20the%20build%20completes.%0A%0AIf%20waiting%20doesn%27t%20help%2C%20try%20restarting%20just%20the%20node%20container%20after%20the%20other%20services%20are%20up%3A%0A%60%60%60bash%0Adocker%20compose%20restart%20superset-node%0A%60%60%60)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on X](htt
 
ps://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/38439)

GitHub link: 
https://github.com/apache/superset/discussions/38439#discussioncomment-16007910

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to