dosubot[bot] commented on issue #33226:
URL: https://github.com/apache/superset/issues/33226#issuecomment-2827025191

   <!-- Answer -->
   To resolve the "404 Not Found" error, ensure that the Superset application 
is correctly configured to handle the `/analytics` sub_path. Here are some 
steps to verify and adjust your setup:
   
   1. **Superset Configuration**:
      - Ensure that `SUPERSET_APP_ROOT` is set to `/analytics` in your 
environment variables. This is crucial for Superset to recognize the sub_path.
      - Uncomment and set `SUPERSET_APP_ROOT` in your `superset_config.py`:
        ```python
        SUPERSET_APP_ROOT = '/analytics'
        ```
   
   2. **Nginx Configuration**:
      - Ensure that the `proxy_pass` directive in your Nginx configuration 
includes the `/analytics` path:
        ```nginx
        location /analytics/ {
            proxy_pass         http://10.11.1.142:8080/analytics/;
            proxy_set_header   X-Forwarded-Prefix /analytics/;
        }
        ```
   
   3. **Kubernetes Deployment**:
      - Verify that the `SUPERSET_APP_ROOT` environment variable is correctly 
set in your Kubernetes deployment:
        ```yaml
        env:
          - name: SUPERSET_APP_ROOT
            value: "/analytics"
        ```
   
   4. **Check for Redirects**:
      - Ensure that there are no additional redirects configured in Nginx or 
Superset that might be causing the application to redirect to 
`/superset/welcome/`.
   
   These configurations should help Superset correctly handle requests under 
the `/analytics` sub_path and prevent the "404 Not Found" error. If the issue 
persists, double-check the logs for any additional clues or misconfigurations.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/7791fe58-108c-44fd-b94b-9591e2d48663?feedback_type=other)</sup>
   


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

Reply via email to