You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/04/23 13:07:00 UTC
[jira] [Closed] (AIRFLOW-3317) FTP Sensor fails immediately when
file doesn't exist
[ https://issues.apache.org/jira/browse/AIRFLOW-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor closed AIRFLOW-3317.
--------------------------------------
Resolution: Not A Bug
Re-open if the info Jack provided doesn't help
> FTP Sensor fails immediately when file doesn't exist
> ----------------------------------------------------
>
> Key: AIRFLOW-3317
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3317
> Project: Apache Airflow
> Issue Type: Bug
> Components: contrib
> Affects Versions: 1.10.0
> Reporter: Rolando Bernabe Tribo
> Priority: Major
>
> FTP Sensor outright fails when file does not exist in the FTP server.
> {code:java}
> Traceback (most recent call last):
> File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1633, in _run_raw_task
> result = task_copy.execute(context=context)
> File "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py", line 68, in execute
> while not self.poke(context):
> File "/usr/local/lib/python3.6/site-packages/airflow/contrib/sensors/ftp_sensor.py", line 56, in poke
> raise e
> File "/usr/local/lib/python3.6/site-packages/airflow/contrib/sensors/ftp_sensor.py", line 52, in poke
> hook.get_mod_time(self.path)
> File "/usr/local/lib/python3.6/site-packages/airflow/contrib/hooks/ftp_hook.py", line 234, in get_mod_time
> ftp_mdtm = conn.sendcmd('MDTM ' + path)
> File "/usr/local/lib/python3.6/ftplib.py", line 273, in sendcmd
> return self.getresp()
> File "/usr/local/lib/python3.6/ftplib.py", line 246, in getresp
> raise error_perm(resp)
> ftplib.error_perm: 550 The system cannot find the file specified.
> [2018-11-08 21:34:45,123] {{models.py:1756}} INFO - Marking task as UP_FOR_RETRY{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)