Skip to content

Airflow | Failed to fetch log file from worker 403 Client Error: FORBIDDEN  #83

@deen992

Description

@deen992

below is the error get it from log - :
Failed to fetch log file from worker. 403 Client Error: FORBIDDEN for url: http://app01.xxx.xxx.xxx.com.my:8793/log/example_bash_operator/also_run_this/2021-08-09T10:09:33.421241+00:00/1.log

then, i tried to curl link (http://xxxx.xxx.xxx.xxx.com.my:8793) in webserver, it getting details like this

GET / HTTP/1.1
Host: app01.xxxx.xxx.xxxx.com.my:8793
User-Agent: curl/7.61.1
Accept: /

  • HTTP 1.0, assume close after body
    < HTTP/1.0 403 FORBIDDEN
    < Content-Type: text/html; charset=utf-8
    < Content-Length: 234
    < Server: Werkzeug/1.0.1 Python/3.8.3
    < Date: Mon, 09 Aug 2021 14:27:44 GMT
    <
<title>403 Forbidden</title>

Forbidden

You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.

* Closing connection 0

so, i try to dig log also from airflow-worker.log

2021-08-09 10:13:56,671 INFO - * Running on http://0.0.0.0:8793/ (Press CTRL+C to quit)
2021-08-09 13:16:50,987 ERROR - 10.xx.xx.xx - - [09/Aug/2021 13:16:50] code 400, message Bad request syntax ('ÿôÿý\x06')
2021-08-09 13:16:50,989 INFO - 10.xx.xx.xx- - [09/Aug/2021 13:16:50] "ÿôÿý" HTTPStatus.BAD_REQUEST -
2021-08-09 14:51:02,865 INFO - 10.xx.xx.xx- - [09/Aug/2021 14:51:02] "GET /log/example_bash_operator/also_run_this/2021-08-09T06:37:40.096254+00:00/1.log HT
TP/1.1" 403 -
2021-08-09 15:01:33,089 INFO - 10.xx.xx.xx- - [09/Aug/2021 15:01:33] "GET /log/example_bash_operator/runme_0/2021-08-09T07:00:30.844023+00:00/1.log HTTP/1.1
" 403 -
2021-08-09 16:10:31,898 INFO - 10.xx.xx.xx - - [09/Aug/2021 16:10:31] "GET /log/example_bash_operator/also_run_this/2021-08-09T08:09:47.087292+00:00/1.log HT
TP/1.1" 403 -
2021-08-09 16:17:04,796 INFO - 10.xx.xx.xx- - [09/Aug/2021 16:17:04] "GET / HTTP/1.1" 403 -
2021-08-09 16:25:36,939 INFO - 10.xx.xx.xx- - [09/Aug/2021 16:25:36] "GET /log/example_bash_operator/run_after_loop/2021-08-09T08:24:59.289433+00:00/1.log H
TTP/1.1" 403 -
2021-08-09 16:29:05,398 INFO - 10.xx.xx.xx- - [09/Aug/2021 16:29:05] "GET /log/example_bash_operator/run_after_loop/2021-08-09T08:24:59.289433+00:00/1.log H
TTP/1.1" 403 -

can advise how to solve it? based on my understanding, from webserver trying to fetch log from worker but failed with error 403 as showing above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions