You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fabrice Dossin (JIRA)" <ji...@apache.org> on 2018/01/27 16:45:00 UTC

[jira] [Commented] (AIRFLOW-2040) Could not access Task log file from Task Instances browser

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

Fabrice Dossin commented on AIRFLOW-2040:
-----------------------------------------

If somebody can point me the proper place to do that, I am open to advises.

> Could not access Task log file from Task Instances browser
> ----------------------------------------------------------
>
>                 Key: AIRFLOW-2040
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2040
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>    Affects Versions: 1.10.0
>            Reporter: Fabrice Dossin
>            Assignee: Fabrice Dossin
>            Priority: Major
>
> When opening the task logs from Browse-Task Instances list, I have the following error message in the panel that should contains the log :
> {code:java}
> Task instance did not exist in the DB
> {code}
>  
> Dag timezone : "Eurrope/Brussels" (+01:00) 
> Job Execution date is 2017-12-31T23:10:00+00:00 
> On Web interface http://localhost:28080/admin/taskinstance/ the Log URL is 
> http://localhost:28080/admin/airflow/log?dag_id=duplicate_task_instance&task_id=do_something&execution_date=2017-12-31T23:10:00+00:00 
> In code from the debugger in views.py
> "dag_id" = str: duplicate_task_instance 
> "task_id" str: do_something 
> "execution_date" str: 2017-12-31T23:10:00 00:00 
> Then the execution_date is parsed with pendulum:
> "dttm" Pendulum: 2017-12-31T00:00:00+00:00
> As you see, the "+" was lost in the request, so pendulum is truncating the date and nothing is found.
> If I try to change manually the URL into 
> http://localhost:28080/admin/airflow/log?dag_id=duplicate_task_instance&task_id=do_something&execution_date=2017-12-31T23:10:00%2B00:00
> It works !
> So I probably have to find where to change the URL encoding of the Task Instances list.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)