Closed github-sunildhiddi closed 3 years ago
(pycdc) airfcdcd@xxxxxxx:/airflow/etl/pyenv/pycdc/bin> airflow db init DB: mysql+mysqlconnector://afcdcsqld:***@rn000017833:3306/afcdcd [2021-06-24 00:58:58,333] {db.py:674} INFO - Creating tables INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running upgrade 27c6a30d7c24 -> 86770d1215c0, add kubernetes scheduler uniqueness Traceback (most recent call last):
raw_as_string=raw_as_string)
_mysql_connector.MySQLInterfaceError: Table 'kube_workeruuid' already exists
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/airflow/etl/pyenv/pycdc/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context cursor, statement, parameters, context File "/airflow/etl/pyenv/pycdc/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute cursor.execute(statement, parameters) File "/airflow/etl/pyenv/pycdc/lib/python3.7/site-packages/mysql/connector/cursor_cext.py", line 266, in execute raw_as_string=self._raw_as_string) File "/airflow/etl/pyenv/pycdc/lib/python3.7/site-packages/mysql/connector/connection_cext.py", line 509, in cmd_query sqlstate=exc.sqlstate) mysql.connector.errors.ProgrammingError: 1050 (42S01): Table 'kube_worker_uuid' already exists
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/airflow/etl/pyenv/pycdc/bin/airflow", line 8, in
] (Background on this error at: http://sqlalche.me/e/13/f405)
@github-sunildhiddi why are you trying to run airflow db init
this chart will automatically run it after you run helm install
by deploying a job resource: https://github.com/airflow-helm/charts/blob/main/charts/airflow/templates/jobs/job-upgrade-db.yaml
@github-sunildhiddi did you resolve this issue? Can it be closed?
What is your question?
A clear description of your question.