anujjamwal commented on issue #12400: URL: https://github.com/apache/airflow/issues/12400#issuecomment-729046330
@ashb Steps to reproduce ``` docker run -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -e MYSQL_DATABASE=airflow -e MYSQL_USER=airflow -e MYSQL_PASSWORD=airflow -v $(pwd)/data:/var/lib/mysql -p 33060:33060 mysql:latest docker run -e AIRFLOW__CORE__SQL_ALCHEMY_CONN=mysql+mysqlconnector://airflow:[email protected]:3306/airflow?use_pure=true -e AIRFLOW__CORE__EXECUTOR=LocalExecutor apache/airflow:2.0.0b2-python3.7 db upgrade docker run -e AIRFLOW__CORE__SQL_ALCHEMY_CONN=mysql+mysqlconnector://airflow:[email protected]:3306/airflow?use_pure=true -e AIRFLOW__CORE__EXECUTOR=LocalExecutor apache/airflow:2.0.0b2-python3.7 scheduler ``` Exception Snippet ``` DB_BACKEND=mysql+mysqlconnector DB_HOST=host.docker.internal DB_PORT=3306 ____________ _____________ ____ |__( )_________ __/__ /________ __ ____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / / ___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ / _/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ [2020-11-17 16:25:24,171] {scheduler_job.py:1249} INFO - Starting the scheduler [2020-11-17 16:25:24,172] {scheduler_job.py:1254} INFO - Processing each file at most -1 times [2020-11-17 16:25:24,343] {dag_processing.py:250} INFO - Launched DagFileProcessorManager with pid: 108 [2020-11-17 16:25:24,345] {scheduler_job.py:1761} INFO - Resetting orphaned tasks for active dag runs [2020-11-17 16:25:24,477] {settings.py:52} INFO - Configured default timezone Timezone('UTC') [2020-11-17 16:25:24,504] {scheduler_job.py:1301} ERROR - Exception when executing SchedulerJob._run_scheduler_loop Traceback (most recent call last): File "/home/airflow/.local/lib/python3.7/site-packages/mysql/connector/conversion.py", line 183, in to_mysql return getattr(self, "_{0}_to_mysql".format(type_name))(value) AttributeError: 'MySQLConverter' object has no attribute '_dagruntype_to_mysql' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/airflow/.local/lib/python3.7/site-packages/mysql/connector/cursor.py", line 410, in _process_params_dict conv = to_mysql(conv) File "/home/airflow/.local/lib/python3.7/site-packages/mysql/connector/conversion.py", line 186, in to_mysql "MySQL type".format(type_name)) TypeError: Python 'dagruntype' cannot be converted to a MySQL type During handling of the above exception, another exception occurred: ``` ---------------------------------------------------------------- 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]
