You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vireshjivane (Jira)" <ji...@apache.org> on 2020/06/21 20:13:00 UTC
[jira] [Commented] (AIRFLOW-3084) Webserver Returns 404 When
base_url is set via Environment
[ https://issues.apache.org/jira/browse/AIRFLOW-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17141572#comment-17141572 ]
vireshjivane commented on AIRFLOW-3084:
---------------------------------------
Noted this in apache-airflow 1.10.6 as well with Python 3.7.4
> Webserver Returns 404 When base_url is set via Environment
> ----------------------------------------------------------
>
> Key: AIRFLOW-3084
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3084
> Project: Apache Airflow
> Issue Type: Bug
> Components: webserver
> Affects Versions: 1.10.0
> Environment: Docker
> Python 2.7
> Reporter: Toby Jennings
> Priority: Major
>
> Attempting to mount Airflow at a subpath beneath root (see AIRFLOW-1755).
> When Airflow is configured via the environment variable `AIRFLOW___WEBSERVER___BASE_URL` the web server returns a 404 for all paths. When "base_url" is set directly in airflow.cfg, the web server works as expected. Documentation suggests that using env to configure Airflow should be sufficient.
>
> Steps to reproduce:
> # Install Airflow.
> # Set AIRFLOW___WEBSERVER___BASE_URL to "http://localhost:8080/airflow"
> # Access Airflow at "/", "/airflow" or any other path.
> # Webserver returns 404 ("Apache Airflow is not at this location.")
>
> Workaround:
> # Install Airflow
> # Set "base_url" to "http://localhost:8080/airflow" in airflow.cfg
> # Access Airflow at "/airflow"
> # Webserver works as intended.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)