You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "chsa21 (via GitHub)" <gi...@apache.org> on 2025/05/27 08:28:47 UTC

[I] empty Logfile [airflow]

chsa21 opened a new issue, #51104:
URL: https://github.com/apache/airflow/issues/51104

   ### Apache Airflow version
   
   3.0.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   The problem in our system is that the logging does not work.
   The log files are created empty in the specified folder. I get the following error message in the Airflow GUI:
   Log message source details: sources=[“/.../run_id=manual__2025-05-27T07:46:05.353328+00:00/task_id=say_hi/attempt=1.log”]
   ::group::Log message source details: sources=[“/.../run_id=manual__2025-05-27T07:46:05.353328+00:00/task_id=say_hi/attempt=1.log”]
   
   The log level is set to DEBUG.
   An update to version 3.0.1 could not solve the problem either. 
   
   
   ### What you think should happen instead?
   
   The log file should contain the task information and, in particular, an error message if the task is failed.
   
   ### How to reproduce
   
   We test the following test_dag:
   from airflow.decorators import dag, task
   from datetime import datetime
   
   @dag(schedule=None, start_date=datetime(2024, 1, 1), catchup=False)
   def log_test():
       @task
       def say_hi():
           import logging
           print(“hello from print()”)
           logging.getLogger(“airflow.task”).info(“hello from logging.info()”)
   
       say_hi()
   
   dag = log_test()
   
   The logfile is empty.
   
   ### Operating System
   
   Red Hat 9.5
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.apache.org

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


Re: [I] empty Logfile [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-3050648289

   This issue has been closed because it has not received response from the issue author.


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #51104: empty Logfile
URL: https://github.com/apache/airflow/issues/51104


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "birddevelper (via GitHub)" <gi...@apache.org>.
birddevelper commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-3558894385

   > [@birddevelper](https://github.com/birddevelper) I have the same problem. Could you help me to find solution. Thank you very much in advance.
   
   I removed this line related to log level env value in docker compose:
   
   AIRFLOW__LOGGING__LOGGING_LEVEL: WARNING
   
   and it worked. It was working in version 2, but it seems the behavior of airflow log is changed in version 3.


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "trahouston (via GitHub)" <gi...@apache.org>.
trahouston commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-2956841497

   I am having the same issue on 3.0.1. DAG run log files are being created, but nothing is being written to them, and I'm getting the same response in the UI. 
   
   `Log message source details: sources=["/usr/local/airflow/logs/dag_id=dbt_debug/run_id=manual__2025-06-09T19:33:42.198500+00:00/task_id=print_hello/attempt=1.log"]
   ::group::Log message source details: sources=["/usr/local/airflow/logs/dag_id=dbt_debug/run_id=manual__2[0](https://airflow.neon.tools/dags/dbt_debug/runs/manual__2025-06-09T19:33:42.198500+00:00/tasks/print_hello?try_number=1#0)25-06-09T19:33:42.198500+00:00/task_id=print_hello/attempt=1.log"]`
   
   The dag_processor logs in logs/dag_processor/ are being created and written to.
   
   Logging worked prior to upgrading to Airflow 3, but this seems to be preventing any dags from running.


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-2911643152

   Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
   


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-3025902424

   This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "chsa21 (via GitHub)" <gi...@apache.org>.
chsa21 commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-2934883085

   Hey, 
   thanks for your feedback!
   1. Yes, logging worked in version 2.10.5.
   2. We use the LocalExecutor
   3. config: 
   - base_log_folder = <path-to-airflow-folder>/logs
   - remote_logging = False
   - remote_log_conn_id = 
   - delete_local_logs = False
   - google_key_path = 
   - remote_base_log_folder = 
   - remote_task_handler_kwargs = 
   - encrypt_s3_logs = False
   - logging_level = DEBUG
   - fab_logging_level = WARNING
   - logging_config_class = 
   - colored_console_log = True
   - colored_log_format = [%%(blue)s%%(asctime)s%%(reset)s] {%%(blue)s%%(filename)s:%%(reset)s%%(lineno)d} %%(log_color)s%%(levelname)s%%(reset)s - %%(log_color)s%%(message)s%%(reset)s
   - colored_formatter_class = airflow.utils.log.colored_log.CustomTTYColoredFormatter
   - log_format = [%%(asctime)s] {%%(filename)s:%%(lineno)d} %%(levelname)s - %%(message)s
   - simple_log_format = %%(asctime)s %%(levelname)s - %%(message)s
   - dag_processor_log_target = file
   - dag_processor_log_format = [%%(asctime)s] [SOURCE:DAG_PROCESSOR] {%%(filename)s:%%(lineno)d} %%(levelname)s - %%(message)s
   - dag_processor_child_process_log_directory = <path-to-airflow-folder>/dag_processor (this logs are not empty)
   - log_formatter_class = airflow.utils.log.timezone_aware.TimezoneAware
   - secret_mask_adapter = 
   - min_length_masked_secret = 5
   - task_log_prefix_template = 
   - log_filename_template = dag_id={{ ti.dag_id }}/run_id={{ ti.run_id }}/task_id={{ ti.task_id }}/{%% if ti.map_index >= 0 %%}map_index={{ ti.map_index }}/{%% endif %%}attempt={{ try_number|default(ti.try_number) }}.log (this logs are empty)
   - task_log_reader = task
   - extra_logger_names = 
   - worker_log_server_port = 8793
   - trigger_log_server_port = 8794
   - file_task_handler_new_folder_permissions = 0o775
   - file_task_handler_new_file_permissions = 0o664
   - celery_stdout_stderr_separation = False
   - color_log_error_keywords = error,exception
   - color_log_warning_keywords = warn
   4. permissions 755
   
   Many thanks for your help and best regards


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "dmanikhine (via GitHub)" <gi...@apache.org>.
dmanikhine commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-3558104595

   @birddevelper I have the same problem. Could you help me to find solution. Thank you very much in advance.
   
   


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "dmanikhine (via GitHub)" <gi...@apache.org>.
dmanikhine commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-3558111454

   @martinuphoff  I have the same problem. Could you help me to find solution. Thank you very much in advance.


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "birddevelper (via GitHub)" <gi...@apache.org>.
birddevelper commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-3315046816

   I am facing the same issue on 3.0.6. 
   Win 10
   docker compose
   CeleryExecutor


-- 
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


Re: [I] empty Logfile [airflow]

Posted by "jameshyphen (via GitHub)" <gi...@apache.org>.
jameshyphen commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-2913560367

   Hey! Some quick questions to help me get an idea of your issue:
   
   1. Has this logging ever worked for you on your cluster?
   2. Which executor is the deployment using? (executor in values.yaml)
   3. Can you share how you've configured your logs in the helm chart? (logs: section)
   4. Can you check what permissions the log folder has inside one of your worker pods??
   ```bash
   kubectl exec -it <worker-pod> -- ls -ld /<path-to-airflow-folder>/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


Re: [I] empty Logfile [airflow]

Posted by "martinuphoff (via GitHub)" <gi...@apache.org>.
martinuphoff commented on issue #51104:
URL: https://github.com/apache/airflow/issues/51104#issuecomment-2979045064

   I am working with @chsa21 on this project and installed airflow on the system. Do you need any further information?


-- 
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