GitHub user dosubot[bot] added a comment to the discussion: 
werkzeug.local.LocalProxy

<!-- Answer -->
The 504 error from ALB usually means the load balancer can't reach your 
Superset backend in time—often due to unhealthy pods, misconfigured health 
checks, or network/security group issues between ALB and your EKS cluster. For 
Superset, make sure your readiness and liveness probes target the /health 
endpoint on port 8088, and that your ingress manifest sets a valid DNS hostname 
in the hosts field (not empty) and ingressClassName: alb. Check that your ALB 
target group shows healthy targets and that the /health endpoint returns HTTP 
200 from inside the cluster. 

For the werkzeug.local.LocalProxy error: Superset uses LocalProxy for 
context-local objects like config and security manager, which require an active 
Flask request context. If requests hit endpoints outside of a valid context 
(for example, due to misrouted ALB/Ingress traffic or health checks hitting 
normal endpoints), you'll see LocalProxy errors. Misconfigured proxy headers or 
session management can also cause redirect loops or errors during login, which 
may surface as LocalProxy errors and/or 504s. 

Make sure ENABLE_PROXY_FIX = True in your Superset config, 
SESSION_COOKIE_SECURE = True, and that your ALB/Ingress forwards X-Forwarded 
headers correctly. Also, check for ingress annotations to extend proxy timeouts 
if you have long-running queries (e.g., 
nginx.ingress.kubernetes.io/proxy-read-timeout, proxy-send-timeout, 
proxy-connect-timeout) 
[source](https://github.com/apache/superset/discussions/34882) 
[source](https://github.com/apache/superset/discussions/31584).

If you still see issues, please share the full error message/stack trace and 
any relevant logs or config snippets for more targeted help.


<!-- 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/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/07b0c32c-ac11-499c-b747-5f11371a7cc6?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 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](https://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/35241)

GitHub link: 
https://github.com/apache/superset/discussions/35241#discussioncomment-14483120

----
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