GitHub user dosubot[bot] added a comment to the discussion: How to enable 
Global Async Queries on v5.0.0 using helm chart in GKE

<!-- Answer -->
This error persists because Superset (via Flask) requires SERVER_NAME to be set 
for generating absolute URLs in background tasks like Global Async Queries, but 
in Kubernetes/Helm environments, setting SERVER_NAME is brittle—if it doesn't 
exactly match the external hostname (including port) that users and Celery 
workers use to access Superset, Flask will reject requests and you'll get 404s. 
Your ingress config looks correct for forwarding headers, but unless 
${HOSTNAME} is a static, known DNS name, there’s no robust way to set 
SERVER_NAME safely in this setup. 

If your ingress hostname is static, set SERVER_NAME in configOverrides to that 
exact value (no protocol, just the hostname, and include the port if not 
80/443). If it's dynamic or changes, there’s no supported workaround in 
Superset 5.0.0—this is a known limitation for async queries in cloud-native 
environments [reference](https://github.com/apache/superset/discussions/34517). 

Best practice: leave SERVER_NAME unset unless you have a static hostname, and 
make sure ENABLE_PROXY_FIX = True, PREFERRED_URL_SCHEME = "https", and 
SESSION_COOKIE_SECURE = True are set. If you want to experiment, you could try 
scripting SERVER_NAME injection at deployment time based on your ingress DNS, 
but this is brittle and not officially supported. 

If you can't use a static hostname, you may need to wait for upstream 
improvements or consider disabling GAQ for now 
[reference](https://github.com/apache/superset/discussions/34517).


<!-- 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/199335f6-aab0-46a2-9a4e-96bb50f13768?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/199335f6-aab0-46a2-9a4e-96bb50f13768?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/199335f6-aab0-46a2-9a4e-96bb50f13768?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/199335f6-aab0-46a2-9a4e-96bb50f13768?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/199335f6-aab0-46a2-9a4e-96bb50f13768?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/199335f6-aab0-46a2-9a4e-96bb50f13768?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/199335f6-aab0-46a2-9a4e-96bb50f13768?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/34517)

GitHub link: 
https://github.com/apache/superset/discussions/34517#discussioncomment-13968546

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