[ 
https://issues.apache.org/jira/browse/AIRFLOW-2040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fokko Driesprong resolved AIRFLOW-2040.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request #2982
[https://github.com/apache/incubator-airflow/pull/2982]

> 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
>             Fix For: 2.0.0
>
>
> 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 !
>  https://github.com/apache/incubator-airflow/pull/2982
>  



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

Reply via email to