ValueError: Unable to configure handler 'task' #30959
Replies: 5 comments 2 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
You are using WasbTaskHandler that needs airflow/airflow/providers/microsoft/azure/log/wasb_task_handler.py Lines 30 to 44 in cb842dd This was changed in below commit to retrieve value from configuration commit b6392ae |
Beta Was this translation helpful? Give feedback.
-
you can fix the issue by updating the provided config file: elif REMOTE_BASE_LOG_FOLDER.startswith("wasb"):
WASB_REMOTE_HANDLERS: dict[str, dict[str, str | bool | None]] = {
"task": {
"class": "airflow.providers.microsoft.azure.log.wasb_task_handler.WasbTaskHandler",
"formatter": "airflow",
"base_log_folder": str(os.path.expanduser(BASE_LOG_FOLDER)),
"wasb_log_folder": REMOTE_BASE_LOG_FOLDER,
"wasb_container": "airflow-logs",
"filename_template": FILENAME_TEMPLATE,
+ "delete_local_copy": False,
},
} or upgrading the provider to the latest version which use False as default value, and in Airflow 2.6.0 you will be able to configure I'll check why do you have this problem, but can you test if this change can fix it? |
Beta Was this translation helpful? Give feedback.
-
@hussein-awala I added the line you suggested but now I'm getting a different error and the following is what I get for the server pod?
I passed the blob storage secret as a connection string. And this is how the values.yaml is referring to the secret:
|
Beta Was this translation helpful? Give feedback.
-
Converted it into discussion. Please in the future @ahmadfarhan97 avoid opening issues for troubleshooting. This is explained to you when you open an issue. It looks like you are missing azure CLI on the path. |
Beta Was this translation helpful? Give feedback.
-
Official Helm Chart version
1.9.0 (latest released)
Apache Airflow version
2.5.3
Kubernetes Version
1.26.3
Helm Chart configuration
Docker Image customizations
What happened
I was trying to connect to Azure blob Storage for logs from local machine.
I used the Airflow documentation to setup the configuration in values.yaml as well as creating and copying a log_config.py file into the docker image (as shown in the docker image customizations section). I keep getting the following error in the airflow-run-airflow-migrations-xxxxx pod:
What you think should happen instead
The pods keep getting error
How to reproduce
The following script is the log_config.py file which is copied using into `` the dockerfile
and the init.py empty file is copied to the image in the same directory
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions