Ahmedn1 opened a new issue #14553: URL: https://github.com/apache/airflow/issues/14553
https://github.com/apache/airflow/blob/b6a4804702711d473c5c55b7aeca2774cd342e22/airflow/providers/google/cloud/log/gcs_task_handler.py#L126 Steps to reporduce: I set these variables: ``` export AIRFLOW_HOME=/path/to/home export AIRFLOW__CORE__SQL_ALCHEMY_CONN='<DB_CONN>' export AIRFLOW__CORE__DAGS_FOLDER=/path/to/dags export AIRFLOW__CORE__LOAD_EXAMPLES=False export AIRFLOW__LOGGING__REMOTE_LOGGING=True export AIRFLOW__LOGGING__GOOGLE_KEY_PATH=/path/to/json_key export AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER=gs:///path/to/bucket export AIRFLOW__LOGGING__DAG_PROCESSOR_MANAGER_LOG_LOCATION=/path/to/logs export AIRFLOW__SCHEDULER__CHILD_PROCESS_LOG_DIRECTORY=/path/to/logs export AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID=google_cloud_default export AIRFLOW__CORE__PLUGINS_FOLDER=/path/to/plugins export GOOGLE_APPLICATION_CREDENTIALS=/path/to/json_key export AIRFLOW__LOGGING__BASE_LOG_FOLDER=/path/to/logs export AIRFLOW__LOGGING__LOGGING_LEVEL=INFO airflow scheduler ``` The local log files are created fine but they are not uploaded. After some debugging and breakpoints, I discovered that on the mentioned line the variable `self.log_relative_path` is always empty. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
