You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/19 14:11:19 UTC

[GitHub] [airflow] potiuk commented on issue #26492: Cannot fetch log from Celery worker

potiuk commented on issue #26492:
URL: https://github.com/apache/airflow/issues/26492#issuecomment-1251078527

   From the discussion:
   
   Sorry if not clear, but this already happened in 2.4.0, which I installed today (It was fine on 2.3.3 and before).
   Running on Python 3.10.5.
   
   This is the message from the web UI:
   
   ![image](https://user-images.githubusercontent.com/389091/191034865-84bfef74-7639-45ce-9338-d51b9f80deac.png)
   
   This is the relevant log from the remote celery worker when the web UI requests the task log:
   
   ```
   Sep 19 15:55:05 airflow[3734318]: [2022-09-19 15:55:05,027: INFO/ForkPoolWorker-15] Task airflow.executors.celery_executor.execute_command[af1dec61-b437-4605-980c-de2d65f60bd7] succeeded in 0.9207695280201733s: None
   Sep 19 15:55:11 airflow[3734281]: [2022-09-19 15:55:11,177] {serve_logs.py:104} WARNING - Unknown error
   Sep 19 15:55:11 airflow[3734281]: Traceback (most recent call last):
   Sep 19 15:55:11 airflow[3734281]:   File "/data/apps/.pyenv/versions/3.10.5/envs/airflow-py310/lib/python3.10/site-packages/airflow/utils/serve_logs.py", line 64, in validate_pre_signed_url
   Sep 19 15:55:11 airflow[3734281]:     request_filename = request.view_args['filename']
   Sep 19 15:55:11 airflow[3734281]: TypeError: 'NoneType' object is not subscriptable
   ```
   
   Looks like the `request.view_args` is `None` in the validation function. Don't know whether it's the root cause though.
   
   Do you need any additional logs?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org