Back to Airflow

Airflow Error Guide

dev/AIRFLOW_ERROR_GUIDE.md

3.2.153.4 KB
Original Source
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

Table of Contents generated with DocToc

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Airflow Error Guide

Error CodeException TypeUser-facing Error MessageDescriptionFirst StepsDocumentation
AERR001AirflowExceptionDynamic task mapping exceeded limitHappens when dynamically mapped tasks exceed the maximum number of tasks allowed.Check the task count limit in the configuration. Consider increasing the task limit or optimizing task mapping logic.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dynamic-task-mapping.html
AERR002AirflowExceptionTask instance not foundHappens when the scheduler or webserver cannot locate a task instance in the database.Verify that the database connection is stable. Check if the task instances exist in the metadata database and consider re-running the DAG.https://airflow.apache.org/docs/apache-airflow/stable/administration/task-instances.html
AERR003AirflowExceptionTask is in 'None' stateIndicates a task instance has not been assigned a proper state, often due to missing execution context.Ensure that the task is correctly configured and the execution context is provided, especially for dynamic tasks or task dependencies.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dag-run.html#execution-context
AERR004AirflowWebServerExceptionWebserver 502 Bad GatewayTriggered when the webserver encounters an upstream issue or fails to proxy requests.Check the webserver logs for more details. Ensure all upstream systems are working properly, and restart the webserver if necessary.https://airflow.apache.org/docs/apache-airflow/stable/webserver.html#troubleshooting
AERR005KeyErrorKeyError in Variable retrievalOccurs when a requested Airflow Variable is not found in the metadata database.Check if the Airflow variable exists. Ensure the correct database is used, and verify if the Airflow variable is defined in the Airflow UI or through code.https://airflow.apache.org/docs/apache-airflow/stable/concepts/variables.html
AERR006PermissionErrorAccess denied for SSH hookTriggered when the SSH hook cannot authenticate or connect to the target server.Verify the SSH credentials and network access to the target server. Test the connection using a manual SSH client before troubleshooting in Airflow.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/ssh.html
AERR007AirflowXComExceptionTaskInstance not recognized in XComHappens when a task's XCom entry is missing or corrupted in the metadata database.Check if the XCom data is being pushed correctly. Inspect the DAG code for issues in data push logic, and consider clearing any corrupted XCom entries.https://airflow.apache.org/docs/apache-airflow/stable/concepts/xcoms.html
AERR008AirflowDatabaseExceptionDuplicate XCom entry detectedOccurs when the same XCom key-value pair is inserted multiple times into the database.Ensure that the XCom key-value pair is unique for each task. Modify the DAG logic to avoid reusing keys or overwriting XCom entries.https://airflow.apache.org/docs/apache-airflow/stable/concepts/xcoms.html#avoiding-duplicate-keys
AERR009AirflowDatabaseExceptionError creating database sessionTriggered when Airflow cannot create a new database session.Check the database connection settings and ensure the database is running. Verify user permissions and the number of concurrent connections allowed.https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html
AERR010AirflowConfigExceptionStrict validation in Dataset URI breaks existing DAGsHappens when a dataset URI is not compliant with stricter validation rules introduced in newer versions.Review the dataset URI format for compliance with new validation rules. Update the URI if necessary to meet the required standards.https://airflow.apache.org/docs/apache-airflow/stable/datasets.html#uri-validation
AERR011AirflowExceptionFailed to upload logs to remote storageOccurs when Airflow cannot push task logs to a configured remote storage backend.Check the configuration for the remote storage backend. Ensure that the connection credentials are correct and the backend is accessible.https://airflow.apache.org/docs/apache-airflow/stable/logging.html#remote-logging
AERR012AirflowDatabaseExceptionCannot connect to airflow databaseHappens when the metadata database is unreachable due to network or configuration issues.Verify the network connection to the metadata database and check for any misconfigurations. Restart Airflow components if necessary.https://airflow.apache.org/docs/apache-airflow/stable/administration/metadata-database.html
AERR013KeyErrorKeyError in retrieving XCom valueOccurs when a requested XCom value is not found or incorrectly defined.Ensure the XCom key and value are properly defined and passed between tasks. Double-check task execution order and parameter passing.https://airflow.apache.org/docs/apache-airflow/stable/concepts/xcoms.html#pushing-and-pulling-xcoms
AERR014ImportErrorMissing dependency for KubernetesExecutorOccurs when the required dependencies for the KubernetesExecutor are not installed.Verify that all required dependencies for the KubernetesExecutor are installed. Use pip or your environment management tool to install missing packages.https://airflow.apache.org/docs/apache-airflow/stable/executors/kubernetes.html#kubernetes-executor
AERR015AirflowDagPausedExceptionDAG is paused and not runningIndicates the DAG is manually paused and will not trigger scheduled runs.Check the DAG status in the Airflow UI and unpause the DAG if needed. Verify the DAG configuration and dependencies.https://airflow.apache.org/docs/apache-airflow/stable/dag-run.html#paused-dags
AERR016AirflowTaskTimeoutTask execution delayed indefinitelyHappens when a task does not start execution within the specified timeout.Review the task timeout settings in the DAG configuration. Increase the timeout if necessary and check for system performance issues.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#timeouts
AERR017AirflowConfigExceptionCan't find executor classHappens when the executor specified in the configuration file is not recognized or available.Verify the executor configuration in the airflow.cfg file. Ensure the specified executor is installed and supported by your Airflow version.https://airflow.apache.org/docs/apache-airflow/stable/executors/index.html
AERR018AirflowConfigExceptionInvalid value in airflow.cfg fileTriggered when airflow.cfg contains an invalid or unsupported value.Review the airflow.cfg configuration file for errors or unsupported values. Consult the Airflow documentation for valid settings.https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html
AERR019AirflowCliExceptionAirflow CLI authentication failedOccurs when CLI commands cannot authenticate with the Airflow backend.Check if the Airflow CLI has the proper credentials to access the backend. Ensure the correct connection configurations and environment variables are set.https://airflow.apache.org/docs/apache-airflow/stable/cli-and-commands.html#authentication
AERR020AirflowTriggerExceptionError triggering external APIHappens when a trigger for an external API fails to execute.Check the API endpoint and ensure it is reachable. Review the Airflow logs to see if there is an error in the API trigger logic.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/external-task.html
AERR021AirflowDatabaseExceptionDatabase deadlock detectedOccurs when multiple processes are locked in conflicting database operations.Investigate the database for any deadlocks or conflicting operations. Optimize queries or increase database capacity to avoid locking issues.https://airflow.apache.org/docs/apache-airflow/stable/administration/database-optimizations.html
AERR022PermissionErrorPermission error in KubernetesPodOperatorOccurs when the KubernetesPodOperator lacks permissions to perform required actions.Review the KubernetesPodOperator configuration and ensure it has the necessary permissions to perform actions in your Kubernetes cluster.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/kubernetes.html#permissions
AERR023AirflowSchedulerExceptionScheduler loop errorTriggered when the scheduler encounters an unexpected condition during its loop.Check the scheduler logs for specific error messages. Review recent changes to the Airflow environment or DAGs that could affect scheduler behavior.https://airflow.apache.org/docs/apache-airflow/stable/administration/scheduler.html#troubleshooting-scheduler
AERR024AirflowParseExceptionBroken DAG: syntax errorOccurs when a syntax error in the DAG file prevents it from being parsed.Review the DAG file for any syntax errors and correct them. Use a linter or Python syntax checker to help identify issues.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#dags
AERR025AirflowDatabaseExceptionDagRun state update failedOccurs when Airflow fails to update the state of a DAG run in the database.Check the database connection and permissions. Review any database constraints or performance issues that could prevent state updates.https://airflow.apache.org/docs/apache-airflow/stable/administration/metadata-database.html
AERR026AirflowTaskTimeoutTask marked as failed due to timeoutHappens when a task exceeds its maximum allowable execution time.Increase the task execution timeout in the DAG configuration. Investigate the task logic for inefficiencies or external system delays.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#timeouts
AERR027FileNotFoundErrorTask log not foundHappens when task logs are missing from the local or remote storage.Check the task log configuration in Airflow. Ensure that logging paths are correctly configured and accessible. Verify permissions for remote storage.https://airflow.apache.org/docs/apache-airflow/stable/logging.html#task-logging
AERR028ImportErrorCannot import module in BashOperatorTriggered when a script run by BashOperator references missing Python modules.Ensure all required Python modules are installed in the environment. Check the requirements.txt or virtual environment for missing dependencies.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/bash.html#bashoperator
AERR029AirflowConfigExceptionError loading connections from secretHappens when Airflow fails to load connection credentials from a secret backend.Check the secret backend configuration and credentials. Ensure the secret backend is accessible and correctly set up in Airflow.https://airflow.apache.org/docs/apache-airflow/stable/security/secrets.html
AERR030AirflowWorkerExceptionWorker not respondingHappens when a worker node becomes unresponsive or fails to report its status.Check the worker node logs for errors. Restart the worker node if necessary and verify network connectivity between the scheduler and worker.https://airflow.apache.org/docs/apache-airflow/stable/administration/worker.html
AERR031AirflowExceptionResource not found in GCP hookTriggered when a GCP hook is unable to locate the specified resource.Verify the resource exists in GCP. Check the GCP credentials and ensure that the hook is correctly configured to access the resource.https://airflow.apache.org/docs/apache-airflow-providers-google/stable/index.html
AERR032AirflowExecutorExceptionBackend not reachable for CeleryOccurs when the CeleryExecutor cannot connect to the configured Celery backend.Check the Celery backend configuration in airflow.cfg. Verify network access and that the Celery worker is properly connected and running.https://airflow.apache.org/docs/apache-airflow/stable/executors/celery.html
AERR033AirflowExceptionInvalid cron expressionOccurs when the cron schedule provided in the DAG is invalid or unparsable.Check the cron expression syntax for errors. Use a cron expression validator tool to confirm it is valid and properly formatted.https://airflow.apache.org/docs/apache-airflow/stable/scheduler.html#scheduling-dags
AERR034UnpicklingErrorUnpicklingError while running taskHappens when Airflow cannot deserialize data, often due to incompatible Python versions or corrupted data.Ensure that Airflow and its dependencies are compatible with the Python version in use. Review any corrupted data and clear invalid entries.https://airflow.apache.org/docs/apache-airflow/stable/concepts/serialization.html
AERR035AirflowWorkerExceptionTask instance killed by external systemOccurs when an external system terminates a task instance during execution.Review the external system logs to determine why it terminated the task. Modify task handling to account for external termination events.https://airflow.apache.org/docs/apache-airflow/stable/operators.html#external-task-sensor
AERR036AirflowWorkerExceptionWorker died during task executionHappens when the worker process handling a task crashes or is terminated.Investigate the worker logs to identify the cause of the crash. Ensure that the worker environment has adequate resources and is properly configured.https://airflow.apache.org/docs/apache-airflow/stable/administration/worker.html#troubleshooting
AERR037AirflowDatabaseExceptionFailed to fetch task stateOccurs when the metadata database does not return a valid state for a task instance.Check the metadata database for data consistency and ensure that the database is responsive. Investigate for any database corruption or misconfigurations.https://airflow.apache.org/docs/apache-airflow/stable/administration/metadata-database.html
AERR038ValueErrorCron interval parsing failedOccurs when the cron expression for a DAG's schedule interval cannot be parsed.Review the cron expression in the DAG configuration. Use a cron expression validator to confirm the format is correct and supported by Airflow.https://airflow.apache.org/docs/apache-airflow/stable/scheduler.html#scheduling-dags
AERR039AirflowSchedulerExceptionScheduler throttled due to excessive DAGsHappens when the scheduler takes too long to process a large number of DAGs.Consider optimizing DAG execution and task scheduling. Check the scheduler logs for any performance bottlenecks, and adjust the scheduler settings to handle large DAGs efficiently.https://airflow.apache.org/docs/apache-airflow/stable/administration/scheduler.html#scheduler-performance
AERR040AirflowDatabaseExceptionDagRun execution_date conflictsOccurs when there is a mismatch in execution_date for a DAG run in the database.Ensure the execution_date is correctly defined and consistent across task instances. Check for any issues with time zone settings or manual overrides.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dag-run.html
AERR041AirflowTaskTimeoutTask is stuck in queued stateOccurs when a task remains queued without being picked up by an executor.Check the executor configuration and ensure that sufficient worker nodes are available. Verify the queue settings and make sure the task is being routed to the correct executor.https://airflow.apache.org/docs/apache-airflow/stable/administration/task-instance.html#queued
AERR042AirflowParseExceptionError while parsing DAG fileTriggered when the scheduler encounters syntax errors or invalid code in a DAG file.Review the DAG file for any code errors or invalid syntax. Use a Python linter to catch issues before loading the DAG into Airflow.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#dags
AERR043AirflowDagCycleExceptionTask dependency cycle detectedTriggered when task dependencies in a DAG create an infinite loop.Check task dependencies in the DAG and ensure that there are no circular references. Modify dependencies to prevent infinite loops.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#task-dependencies
AERR044AirflowTaskExceptionTask failed due to retries exceededTriggered when a task exhausts its retry limit without succeeding.Increase the retry limit in the DAG configuration or modify the task logic to handle failure scenarios more gracefully.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#retries
AERR045ValueErrorValueError in task argumentsHappens when a task operator is provided with invalid or incompatible arguments.Review the operator arguments and ensure they are correctly specified. Check the Airflow documentation for valid arguments for the operator used.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator.html
AERR046AirflowTaskExceptionTask queue not foundOccurs when the task's queue is not recognized by the executor.Ensure the specified queue exists in the Airflow configuration. Review the executor settings to confirm it can process tasks from the specified queue.https://airflow.apache.org/docs/apache-airflow/stable/concepts/queues.html
AERR047AirflowSchedulerExceptionExecutor cannot retrieve task instanceHappens when the executor fails to fetch task instance details from the database.Verify the database connection and ensure the task instance details are present in the metadata database. Check the executor logs for any errors.https://airflow.apache.org/docs/apache-airflow/stable/administration/task-instance.html#status
AERR048AirflowWebServerExceptionWebserver connection refusedOccurs when the webserver process is not running or accessible.Check the webserver logs for errors. Restart the webserver and verify that it is running and accessible through the configured URL.https://airflow.apache.org/docs/apache-airflow/stable/webserver.html
AERR049AirflowTaskExceptionInvalid return type from PythonOperatorHappens when a PythonOperator returns a value of an unexpected type.Ensure the Python function used in the PythonOperator returns the expected type. Review the function implementation for type correctness.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/python.html
AERR050AirflowConfigExceptionConfig error: executor not definedTriggered when the Airflow configuration does not specify a valid executor.Review the airflow.cfg file and verify that the executor is correctly specified. Ensure that the specified executor is installed and properly configured.https://airflow.apache.org/docs/apache-airflow/stable/executors/index.html
AERR051AirflowExceptionError in task failure hook executionTriggered when the failure hook defined for a task encounters an error.Check the failure hook configuration for errors. Review the task and hook logs to identify the cause of the failure and resolve any issues.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator.html#failure-hooks
AERR052AirflowTemplateExceptionFailed to resolve template variableTriggered when a task's templated field contains errors or undefined variables.Review the task templated fields for any errors or undefined variables. Ensure all variables are defined and passed correctly in the DAG.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operators.html#templating
AERR053AirflowSchedulerExceptionScheduler process killed unexpectedlyTriggered when the scheduler process is terminated due to resource or system issues.Investigate the system logs for resource-related issues. Increase system resources or adjust scheduler configurations to prevent termination.https://airflow.apache.org/docs/apache-airflow/stable/administration/scheduler.html
AERR054AirflowTaskTimeoutTask failed with exit code 1Occurs when a task script or subprocess exits with a non-zero code indicating failure.Check the task script or subprocess logs for the error code and cause of failure. Debug the script and address any underlying issues.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/bash.html
AERR055AirflowDatabaseExceptionTaskInstance already exists in databaseOccurs when a duplicate TaskInstance entry is created in the metadata database.Review task instance scheduling and ensure that duplicate entries are not being created. Investigate DAG scheduling logic for potential issues.https://airflow.apache.org/docs/apache-airflow/stable/administration/metadata-database.html
AERR056AirflowDatabaseExceptionCould not reach the databaseIndicates connectivity issues with the metadata database, often due to misconfiguration.Verify the connection settings in airflow.cfg for the metadata database. Ensure that the database is accessible and network connectivity is working.https://airflow.apache.org/docs/apache-airflow/stable/administration/metadata-database.html#troubleshooting
AERR057AirflowExecutorExceptionTask stuck in 'deferred' stateTriggered when a task using deferrable operators remains in 'deferred' longer than expected.Review the deferrable operator configuration and execution logic. Ensure that the task is properly resumed and that there are no long delays in task deferral.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/deferrable.html
AERR058AirflowExceptionError loading custom operatorIndicates a problem in importing or defining a custom operator in the DAG.Check the custom operator import path and ensure it is available. Verify that the custom operator class is correctly defined and instantiated.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator.html#creating-custom-operators
AERR059AirflowTriggerExceptionTrigger timeout for external taskOccurs when an ExternalTaskSensor exceeds its timeout waiting for an external task.Increase the timeout setting for the ExternalTaskSensor. Check if the external task is delayed and adjust the DAG dependencies accordingly.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/external-task.html
AERR060AirflowDagImportExceptionDagBag import errorsHappens when the scheduler encounters issues loading DAG files into the DagBag.Check the DAG files for syntax or configuration errors. Inspect the DagBag loading process to ensure no invalid DAGs are being included.https://airflow.apache.org/docs/apache-airflow/stable/scheduler.html#dagbag
AERR061AirflowDagNotFoundDAG not found in trigger DAG runTriggered when the DAG specified in a TriggerDagRunOperator does not exist.Check the name of the target DAG in the TriggerDagRunOperator. Ensure that the DAG exists and is correctly spelled in the configuration.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/trigger-dag.html
AERR062AirflowDagCycleExceptionCircular dependencies in DAGTriggered when tasks in a DAG form a circular dependency loop.Review the task dependencies and remove any circular references. Modify the DAG structure to avoid infinite dependency loops.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#task-dependencies
AERR063AirflowExceptionError in on_failure_callback for DAGOccurs when the on_failure_callback for a DAG raises an exception.Check the on_failure_callback function for errors. Ensure it handles exceptions correctly and does not raise additional errors during task failure.https://airflow.apache.org/docs/apache-airflow/stable/advanced/alerts.html
AERR064AirflowTriggerExceptionTriggerDagRunOperator failedHappens when the TriggerDagRunOperator cannot trigger the specified target DAG.Verify the configuration of the TriggerDagRunOperator. Ensure the target DAG exists and the trigger parameters are correct.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/trigger-dag.html
AERR065AirflowTaskExceptionDAG execution failedIndicates that the overall execution of a DAG run failed due to errors in one or more tasks.Check the logs for each task to determine which task failed. Review task dependencies, configurations, and retries.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dag-run.html#status
AERR066AirflowSchedulerExceptionScheduler heartbeat failedOccurs when the scheduler process stops sending heartbeats, often due to resource issues.Investigate the system resources, such as CPU and memory, and increase them if necessary. Restart the scheduler and monitor system performance.https://airflow.apache.org/docs/apache-airflow/stable/administration/scheduler.html
AERR067AirflowConfigExceptionScheduler crashes when passing invalid value to argument in default_argsOccurs when default_args in a DAG contains an invalid or incompatible parameter.Review the default_args section in the DAG definition. Ensure all parameters are valid and compatible with the Airflow version in use.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#default-args
AERR068AirflowApiExceptionHTTP error while connecting to APIOccurs when Airflow encounters connectivity issues or invalid responses from an external API.Check the API connection settings and ensure that the external service is reachable. Verify that the API is returning valid responses.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/http.html
AERR069AirflowSchedulerExceptionScheduler backlog due to excessive retriesHappens when too many tasks are retried, overloading the scheduler.Adjust the task retry logic and retry limits. Review task logs for patterns that lead to excessive retries and optimize DAG logic.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#retries
AERR070AirflowExceptionDAG folder not foundTriggered when the directory specified for DAGs does not exist or is inaccessible.Ensure that the DAG directory exists and is accessible by the Airflow scheduler and webserver. Check directory permissions and paths.https://airflow.apache.org/docs/apache-airflow/stable/administration/dags-directory.html
AERR071AirflowExceptionMax active tasks for DAG exceededTriggered when the number of concurrent tasks for a DAG exceeds the configured limit.Increase the task concurrency settings in the DAG configuration or adjust the task dependencies to limit the number of concurrent tasks.https://airflow.apache.org/docs/apache-airflow/stable/scheduler.html#concurrency
AERR072AirflowExceptionCannot find DAG run in the databaseHappens when the specified DAG run is missing or deleted from the metadata database.Verify the DAG run's existence in the metadata database. Ensure the run has not been manually deleted or corrupted.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dag-run.html
AERR073AirflowExceptionAirflow CLI not recognizedHappens when the Airflow CLI command is not installed or available in the PATH.Ensure that Airflow is properly installed and that the CLI is accessible in the environment PATH. Reinstall or reconfigure Airflow if necessary.https://airflow.apache.org/docs/apache-airflow/stable/cli-and-commands.html
AERR074AirflowDatabaseExceptionSQLAlchemy database connection errorHappens when the connection string for the metadata database is invalid or unreachable.Check the connection string in the Airflow configuration. Ensure the database is reachable and verify the credentials and network configuration.https://airflow.apache.org/docs/apache-airflow/stable/administration/database-setup.html
AERR075PermissionErrorPermission denied for Airflow logsOccurs when Airflow does not have the required permissions to read or write logs.Check the file permissions for the Airflow logs directory. Ensure that the user running Airflow has proper read and write access.https://airflow.apache.org/docs/apache-airflow/stable/logging.html
AERR076AirflowExceptionTask marked as 'up for retry' without retries availableHappens when a task is incorrectly marked for retry but has exceeded its limit.Check the task's retry configuration in the DAG. Ensure that the retry count is properly set in the task's arguments and verify if retries are needed.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#retries
AERR077AirflowConfigExceptionInvalid section in airflow.cfgTriggered when airflow.cfg contains an unrecognized configuration section.Review your airflow.cfg file to ensure that all sections are correctly defined and recognized. Consult the official Airflow configuration reference to verify your settings.https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html
AERR078AirflowExceptionTask dependencies are not metIndicates a task cannot start due to upstream dependencies not being completed.Ensure that all upstream tasks have been successfully completed before the task is triggered. Review the task dependencies in your DAG to make sure they are properly defined.https://airflow.apache.org/docs/apache-airflow/stable/concepts/task-instance.html
AERR079AirflowExceptionTask not found in serialized DAGOccurs when the task referenced is missing from the serialized DAG in the database.Check your DAG serialization settings and verify that all tasks are properly serialized. Ensure that the task is defined correctly in the DAG file.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#dag-serialization
AERR080AirflowExceptionWorker node not availableTriggered when an executor cannot find a suitable worker to run a task.Check if there are any worker nodes available and verify if the executor configuration is correct. Ensure the workers are running and properly configured in the Airflow setup.https://airflow.apache.org/docs/apache-airflow/stable/executors/index.html
AERR081ModuleNotFoundErrorPython dependency not installedOccurs when a Python package required by a DAG is missing.Verify that all required Python packages are installed in the environment where Airflow is running. Install any missing dependencies using pip or a virtual environment manager.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/python.html#python-packages
AERR082AirflowExecutorExceptionCelery task not acknowledgedOccurs when a Celery task is not acknowledged by a worker.Check the Celery worker logs to determine why the task was not acknowledged. Ensure that Celery is properly configured and running in your Airflow setup.https://airflow.apache.org/docs/apache-airflow/stable/executors/celery.html
AERR083AirflowTaskTimeoutTask duration exceeds timeoutHappens when a task exceeds its specified execution timeout.Review the task's execution timeout setting. If necessary, increase the timeout or optimize the task to ensure it completes within the allowed duration.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#timeouts
AERR084AirflowExceptionError migrating database to Airflow version 2.9.3Indicates issues during metadata database migration, often due to schema mismatches.Check the database schema and migration logs for errors. You may need to run manual database migrations or troubleshoot database connectivity and compatibility issues.https://airflow.apache.org/docs/apache-airflow/stable/administration/database-migrations.html
AERR085AirflowExceptionError writing metrics to statsdOccurs when Airflow fails to send metrics data to the configured statsd server.Verify the connection settings to your statsd server. Ensure that the statsd server is reachable and properly configured in Airflow's settings.https://airflow.apache.org/docs/apache-airflow/stable/metrics.html
AERR086AirflowExceptionDAG import timeoutOccurs when DAG files take too long to parse, possibly due to large files or inefficient code.Review your DAG files to identify any large or inefficient code. Optimize DAG parsing and consider splitting large DAGs into smaller ones to improve performance.https://airflow.apache.org/docs/apache-airflow/stable/scheduler.html#dag-parsing
AERR087AirflowTemplateExceptionInvalid template in BashOperator commandHappens when the command template in BashOperator contains errors.Check the BashOperator template for syntax errors. Ensure all placeholders and variables are correctly defined and are available in the context of the task.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/bash.html
AERR088AirflowDagCycleExceptionMultiple DAGs with same IDTriggered when two or more DAGs have the same ID, causing conflicts.Ensure that each DAG has a unique DAG ID. Review your DAG files to identify any duplicate DAG IDs and resolve the conflict.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#dag-id
AERR089AttributeErrorAttributeError in PythonOperatorOccurs when the Python callable in a PythonOperator is improperly defined or missing required attributes.Check the Python callable in your PythonOperator. Ensure that all required arguments and attributes are defined and passed correctly.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/python.html
AERR090AirflowExceptionError in callback execution for TaskInstanceOccurs when a failure callback defined for a task raises an error.Review the callback function for errors. Ensure that the function is correctly defined and handles exceptions as expected.https://airflow.apache.org/docs/apache-airflow/stable/advanced/alerts.html
AERR091AirflowTaskTimeoutOperator execution exceeded SLAHappens when a task operator runs longer than its Service Level Agreement (SLA).Review the task's execution time and optimize the code to ensure it completes within the specified SLA. Adjust the SLA if necessary to account for task duration.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#sla
AERR092AirflowDagNotFoundDAG not found in schedulerOccurs when a DAG file is not loaded into the scheduler, often due to parsing errors or missing files.Check for errors in the DAG parsing logs. Ensure that the DAG file exists in the DAGs folder and is properly formatted.https://airflow.apache.org/docs/apache-airflow/stable/scheduler.html#dagbag
AERR093AirflowExceptionError in email notification for taskTriggered when an email notification for a task failure cannot be sent.Verify the email configuration in Airflow. Check if the SMTP server is correctly configured and reachable from the Airflow instance.https://airflow.apache.org/docs/apache-airflow/stable/advanced/alerts.html#email-alerts
AERR094AirflowWebServerExceptionAirflow webserver won't startHappens when the webserver process fails, often due to misconfiguration or missing dependencies.Check the webserver logs for errors. Ensure that all required dependencies are installed and the configuration is correct.https://airflow.apache.org/docs/apache-airflow/stable/webserver.html
AERR095ModuleNotFoundErrorNo module named '...' in DAG fileOccurs when the DAG imports a Python module that is not installed or available.Install the missing Python module using pip or ensure the module is available in the environment where Airflow is running.https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/python.html
AERR096AirflowTemplateExceptionMissing template field in operatorHappens when a required templated field is not defined for a task operator.Review the task operator and ensure all required templated fields are defined. Add any missing fields to the operator's parameters.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operators.html#templating
AERR097AirflowExceptionError syncing DAGs to remote storageHappens when DAG files fail to sync with a remote storage backend like S3 or GCS.Verify the connection to the remote storage backend. Ensure that the correct credentials are configured and that the storage service is accessible.https://airflow.apache.org/docs/apache-airflow/stable/storage.html#remote-storage-backends
AERR098AirflowTaskTimeoutSubprocess in task exceeded timeoutHappens when a subprocess spawned by a task runs longer than its allowed time.Review the subprocess configuration and ensure it completes within the task's timeout. If needed, increase the timeout or optimize the subprocess execution.https://airflow.apache.org/docs/apache-airflow/stable/concepts/operator.html#timeouts
AERR099AirflowDatabaseExceptionInconsistent database schemaOccurs when the metadata database schema is outdated or corrupted.Check the database schema and run any necessary migrations. Ensure the database is in sync with the current Airflow version.https://airflow.apache.org/docs/apache-airflow/stable/administration/database-setup.html
AERR100AirflowExceptionInvalid DAG structureTriggered when a DAG's dependencies or attributes are incorrectly defined.Review the DAG structure for errors. Ensure that all dependencies are correctly defined and that no circular dependencies exist.https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html