You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Henry Porter (JIRA)" <ji...@apache.org> on 2017/09/18 22:59:00 UTC

[jira] [Commented] (AIRFLOW-1061) Log URL in Task Instance list is incorrect when running locally

    [ https://issues.apache.org/jira/browse/AIRFLOW-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16170868#comment-16170868 ] 

Henry Porter commented on AIRFLOW-1061:
---------------------------------------

Looks like this also is an issue in Docker where you are running locally within the container e.g. distributions such as https://github.com/puckel/docker-airflow/

It's a frustrating bug as all other URLs seem to work - for logs you have to paste in the correct URL each time (in my case, a reference to a GKE container).

I will keep looking in case there is an easy fix I have missed, but right now I feel this issue is causing the behaviour I am seeing.

> Log URL in Task Instance list is incorrect when running locally
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-1061
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1061
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.8
>            Reporter: Nicholas Duffy
>
> The Log URL in the Task Instance list links to BASE_URL + /admin/airflow/log (https://github.com/apache/incubator-airflow/blob/d8c0f59d5d627efb65b47264d5169e3626195839/airflow/models.py#L936) while it should link to only /admin/airflow/log.
> The current behavior causes the link to be incorrect if you are running Airflow locally. 
> Example:
> - Running Airflow on Vagrant on my local machine
> - URL is http://127.0.0.1:8080
> - Browse to task instance list at http://127.0.0.1:8080/admin/taskinstance/
> - Click the Log URL book glyphicon
> - The link takes you to http://mybaseurl.com/admin/airflow/log/
> - I expect the link to go to http://127.0.0.1:8080/admin/airflow/log/



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)