airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabrice Dossin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-2040) Could not access Task log file from Task Instances browser
Date Mon, 29 Jan 2018 09:26:00 GMT

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

Fabrice Dossin updated AIRFLOW-2040:
------------------------------------
    Description: 
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

 

  was:
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 !

 

 


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



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

Mime
View raw message