小编And*_*rie的帖子

由于无法读取日志文件,任务失败

Composer 由于无法读取日志文件而导致任务失败,它抱怨编码不正确。

这是 UI 中显示的日志:

*** Unable to read remote log from gs://bucket/logs/campaign_exceptions_0_0_1/merge_campaign_exceptions/2019-08-03T10:00:00+00:00/1.log
*** 'ascii' codec can't decode byte 0xc2 in position 6986: ordinal not in range(128)

*** Log file does not exist: /home/airflow/gcs/logs/campaign_exceptions_0_0_1/merge_campaign_exceptions/2019-08-03T10:00:00+00:00/1.log
*** Fetching from: http://airflow-worker-68dc66c9db-x945n:8793/log/campaign_exceptions_0_0_1/merge_campaign_exceptions/2019-08-03T10:00:00+00:00/1.log
*** Failed to fetch log file from worker. HTTPConnectionPool(host='airflow-worker-68dc66c9db-x945n', port=8793): Max retries exceeded with url: /log/campaign_exceptions_0_0_1/merge_campaign_exceptions/2019-08-03T10:00:00+00:00/1.log (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1c9ff19d10>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Run Code Online (Sandbox Code Playgroud)

我尝试在谷歌云控制台中查看该文件,它也会引发错误:

Failed to load

Tracking Number: 8075820889980640204 …
Run Code Online (Sandbox Code Playgroud)

airflow google-cloud-composer

5
推荐指数
1
解决办法
3020
查看次数

标签 统计

airflow ×1

google-cloud-composer ×1