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 2021/03/02 00:14:16 UTC

[GitHub] [airflow] Ahmedn1 opened a new issue #14553: self.log_relative_path is empty when it comes to closing the log

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:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #14553: self.log_relative_path is empty when it comes to closing the log

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #14553:
URL: https://github.com/apache/airflow/issues/14553#issuecomment-938456477


   > Line the variable self.log_relative_path is always empty.
   
   This variable is empty until the task starts 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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #14553: self.log_relative_path is empty when it comes to closing the log

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #14553:
URL: https://github.com/apache/airflow/issues/14553#issuecomment-788420868


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #14553: self.log_relative_path is empty when it comes to closing the log

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #14553:
URL: https://github.com/apache/airflow/issues/14553


   


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