omkar-foss commented on PR #46932: URL: https://github.com/apache/airflow/pull/46932#issuecomment-2672149763
### Guide for specific error code: ```bash $ airflow error-guide --error-code AERR100 The error you're facing would be with this message: "Invalid DAG structure". As per our observations, a possible cause could be as follows: Triggered when a DAG's dependencies or attributes are incorrectly defined. To resolve this, as first step, you can try the following: Review the DAG structure for errors. Ensure that all dependencies are correctly defined and that no circular dependencies exist. If this doesn't resolve your problem, you can check out the docs for more info: https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html You may also ask your questions on the Airflow Slack #user-troubleshooting channel: https://apache-airflow.slack.com/messages/user-troubleshooting Happy Debugging! 🐞 ``` ### Listing all exceptions covered in guide: ```bash airflow error-guide --list-exceptions Exception Type ========================= AirflowApiException AirflowCliException AirflowConfigException AirflowDagCycleException AirflowDagImportException AirflowDagNotFound AirflowDagPausedException AirflowDatabaseException AirflowException AirflowExecutorException AirflowParseException AirflowSchedulerException AirflowTaskException AirflowTaskTimeout AirflowTemplateException AirflowTriggerException AirflowWebServerException AirflowWorkerException AirflowXComException AttributeError FileNotFoundError ImportError KeyError ModuleNotFoundError PermissionError UnpicklingError ValueError ``` ### Dump entire guide as yaml: ```bash airflow error-guide --list-guide AERR001: description: Happens when dynamically mapped tasks exceed the maximum number of tasks allowed. documentation: https://airflow.apache.org/docs/apache-airflow/stable/concepts/dynamic-task-mapping.html error_message: Dynamic task mapping exceeded limit exception_type: AirflowException first_steps: Check the task count limit in the configuration. Consider increasing the task limit or optimizing task mapping logic. AERR002: description: Happens when the scheduler or webserver cannot locate a task instance in the database. documentation: https://airflow.apache.org/docs/apache-airflow/stable/administration/task-instances.html error_message: Task instance not found exception_type: AirflowException first_steps: Verify that the database connection is stable. Check if the task instances exist in the metadata database and consider re-running the DAG. ...truncated ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
