<p dir="auto"><strong>Apache Airflow version</strong>: 1.10.14</p>
<p dir="auto"><strong>Environment</strong>:  docker -&gt; FROM python:3.6.8</p>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">the webserver at launch crash but do not stop the process. So the container stay up , until I restart</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">The process should fail and stop</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto">When I run <strong>docker-compose up -d</strong> it launch</p>
<p dir="auto">1 container for the backend database ( postgre 13.1)<br>
1 container for the webserver<br>
1 container for the scheduler<br>
1 container for the init_db  ( only running <strong>airflow db init</strong> )<br>
1 container for the create user  ( only running <strong>airflow create_user -r Admin -f admin -l admin -e None -u admin -p admin</strong> )</p>
<p dir="auto">If I kill the webserver container and relaunch it , it work well. (So it's apparently a case of when the database is not yet fully setup )</p>
<p dir="auto">logs of the webserver</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
[SQL: INSERT INTO ab_permission_view (id, permission_id, view_menu_id) VALUES (nextval('ab_permission_view_id_seq'), %(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id]
[parameters: {'permission_id': 84, 'view_menu_id': 96}]
(Background on this error at: http://sqlalche.me/e/13/gkpj)
[2021-04-09 11:12:38,582] {security.py:210} INFO - Initializing permissions for role:Viewer in the database.
Traceback (most recent call last):
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1257, in _execute_context
    cursor, statement, parameters, context
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py&quot;, line 898, in do_executemany
    cursor.executemany(statement, parameters)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint &quot;ab_permission_view_role_permission_view_id_role_id_key&quot;
DETAIL:  Key (permission_view_id, role_id)=(47, 3) already exists.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File &quot;/opt/venv/bin/myflow&quot;, line 8, in &lt;module&gt;
    sys.exit(main())
  File &quot;/opt/venv/lib/python3.6/site-packages/myflow/myflow_cli.py&quot;, line 75, in main
    args.func(args)
  File &quot;/opt/venv/lib/python3.6/site-packages/airflow/utils/cli.py&quot;, line 81, in wrapper
    return f(*args, **kwargs)
  File &quot;/opt/venv/lib/python3.6/site-packages/airflow/bin/cli.py&quot;, line 1179, in webserver
    app = cached_app_rbac(None) if settings.RBAC else cached_app(None)
  File &quot;/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/app.py&quot;, line 297, in cached_app
    app, _ = create_app(config, session, testing)
  File &quot;/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/app.py&quot;, line 213, in create_app
    security_manager.sync_roles()
  File &quot;/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/security.py&quot;, line 487, in sync_roles
    self.init_role(role, vms, perms)
  File &quot;/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/security.py&quot;, line 216, in init_role
    self.get_session.merge(role)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/scoping.py&quot;, line 163, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py&quot;, line 2160, in merge
    self._autoflush()
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py&quot;, line 1633, in _autoflush
    util.raise_(e, with_traceback=sys.exc_info()[2])
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_
    raise exception
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py&quot;, line 1622, in _autoflush
    self.flush()
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py&quot;, line 2540, in flush
    self._flush(objects)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py&quot;, line 2682, in _flush
    transaction.rollback(_capture_exception=True)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 70, in __exit__
    with_traceback=exc_tb,
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_
    raise exception
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py&quot;, line 2642, in _flush
    flush_context.execute()
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 422, in execute
    rec.execute(self)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 540, in execute
    self.dependency_processor.process_saves(uow, states)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/dependency.py&quot;, line 1177, in process_saves
    uowcommit, secondary_insert, secondary_update, secondary_delete
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/dependency.py&quot;, line 1239, in _run_crud
    connection.execute(statement, secondary_insert)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1011, in execute
    return meth(self, multiparams, params)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py&quot;, line 298, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1130, in _execute_clauseelement
    distilled_params,
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1317, in _execute_context
    e, statement, parameters, cursor, context
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1511, in _handle_dbapi_exception
    sqlalchemy_exception, with_traceback=exc_info[2], from_=e
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_
    raise exception
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1257, in _execute_context
    cursor, statement, parameters, context
  File &quot;/opt/venv/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py&quot;, line 898, in do_executemany
    cursor.executemany(statement, parameters)
sqlalchemy.exc.IntegrityError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
(psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint &quot;ab_permission_view_role_permission_view_id_role_id_key&quot;
DETAIL:  Key (permission_view_id, role_id)=(47, 3) already exists.

[SQL: INSERT INTO ab_permission_view_role (id, permission_view_id, role_id) VALUES (nextval('ab_permission_view_role_id_seq'), %(permission_view_id)s, %(role_id)s)]
[parameters: ({'permission_view_id': 47, 'role_id': 3}, {'permission_view_id': 101, 'role_id': 3}, {'permission_view_id': 57, 'role_id': 3}, {'permission_view_id': 70, 'role_id': 3}, {'permission_view_id': 207, 'role_id': 3}, {'permission_view_id': 167, 'role_id': 3}, {'permission_view_id': 96, 'role_id': 3}, {'permission_view_id': 68, 'role_id': 3}  ... displaying 10 of 41 total bound parameter sets ...  {'permission_view_id': 161, 'role_id': 3}, {'permission_view_id': 85, 'role_id': 3})]
(Background on this error at: http://sqlalche.me/e/13/gkpj)
"><pre class="notranslate">[SQL: INSERT INTO ab_permission_view (id, permission_id, view_menu_id) VALUES (nextval(<span class="pl-s"><span class="pl-pds">'</span>ab_permission_view_id_seq<span class="pl-pds">'</span></span>), %(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id]
[parameters: {<span class="pl-s"><span class="pl-pds">'</span>permission_id<span class="pl-pds">'</span></span>: 84, <span class="pl-s"><span class="pl-pds">'</span>view_menu_id<span class="pl-pds">'</span></span>: 96}]
(Background on this error at: http://sqlalche.me/e/13/gkpj)
[2021-04-09 11:12:38,582] {security.py:210} INFO - Initializing permissions <span class="pl-k">for</span> <span class="pl-smi">role:Viewer</span> <span class="pl-k">in</span> the database.
Traceback (most recent call last):
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1257, <span class="pl-k">in</span> _execute_context
    cursor, statement, parameters, context
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py<span class="pl-pds">"</span></span>, line 898, <span class="pl-k">in</span> do_executemany
    cursor.executemany(statement, parameters)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint <span class="pl-s"><span class="pl-pds">"</span>ab_permission_view_role_permission_view_id_role_id_key<span class="pl-pds">"</span></span>
DETAIL:  Key (permission_view_id, role_id)=(47, 3) already exists.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/bin/myflow<span class="pl-pds">"</span></span>, line 8, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span>
    <span class="pl-en">sys.exit(main</span>())
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/myflow/myflow_cli.py<span class="pl-pds">"</span></span>, line 75, <span class="pl-k">in</span> main
    args.func(args)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/airflow/utils/cli.py<span class="pl-pds">"</span></span>, line 81, <span class="pl-k">in</span> wrapper
    <span class="pl-k">return</span> f(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/airflow/bin/cli.py<span class="pl-pds">"</span></span>, line 1179, <span class="pl-k">in</span> webserver
    app = cached_app_rbac(None) <span class="pl-k">if</span> settings.RBAC <span class="pl-k">else</span> cached_app(None)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/app.py<span class="pl-pds">"</span></span>, line 297, <span class="pl-k">in</span> cached_app
    app, _ = create_app(config, session, testing)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/app.py<span class="pl-pds">"</span></span>, line 213, <span class="pl-k">in</span> create_app
    <span class="pl-en">security_manager.sync_roles</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/security.py<span class="pl-pds">"</span></span>, line 487, <span class="pl-k">in</span> sync_roles
    self.init_role(role, vms, perms)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/airflow/www_rbac/security.py<span class="pl-pds">"</span></span>, line 216, <span class="pl-k">in</span> init_role
    self.get_session.merge(role)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/scoping.py<span class="pl-pds">"</span></span>, line 163, <span class="pl-k">in</span> <span class="pl-k">do</span>
    <span class="pl-k">return</span> <span class="pl-en">getattr(self.registry</span>(), name)(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py<span class="pl-pds">"</span></span>, line 2160, <span class="pl-k">in</span> merge
    <span class="pl-en">self._autoflush</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py<span class="pl-pds">"</span></span>, line 1633, <span class="pl-k">in</span> _autoflush
    util.raise_(e, with_traceback=sys.exc_info()[2])
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py<span class="pl-pds">"</span></span>, line 182, <span class="pl-k">in</span> raise_
    raise exception
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py<span class="pl-pds">"</span></span>, line 1622, <span class="pl-k">in</span> _autoflush
    <span class="pl-en">self.flush</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py<span class="pl-pds">"</span></span>, line 2540, <span class="pl-k">in</span> flush
    self._flush(objects)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py<span class="pl-pds">"</span></span>, line 2682, <span class="pl-k">in</span> _flush
    transaction.rollback(_capture_exception=True)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py<span class="pl-pds">"</span></span>, line 70, <span class="pl-k">in</span> __exit__
    with_traceback=exc_tb,
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py<span class="pl-pds">"</span></span>, line 182, <span class="pl-k">in</span> raise_
    raise exception
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py<span class="pl-pds">"</span></span>, line 2642, <span class="pl-k">in</span> _flush
    <span class="pl-en">flush_context.execute</span>()
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py<span class="pl-pds">"</span></span>, line 422, <span class="pl-k">in</span> execute
    rec.execute(self)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py<span class="pl-pds">"</span></span>, line 540, <span class="pl-k">in</span> execute
    self.dependency_processor.process_saves(uow, states)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/dependency.py<span class="pl-pds">"</span></span>, line 1177, <span class="pl-k">in</span> process_saves
    uowcommit, secondary_insert, secondary_update, secondary_delete
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/orm/dependency.py<span class="pl-pds">"</span></span>, line 1239, <span class="pl-k">in</span> _run_crud
    connection.execute(statement, secondary_insert)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1011, <span class="pl-k">in</span> execute
    <span class="pl-k">return</span> meth(self, multiparams, params)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py<span class="pl-pds">"</span></span>, line 298, <span class="pl-k">in</span> _execute_on_connection
    <span class="pl-k">return</span> connection._execute_clauseelement(self, multiparams, params)
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1130, <span class="pl-k">in</span> _execute_clauseelement
    distilled_params,
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1317, <span class="pl-k">in</span> _execute_context
    e, statement, parameters, cursor, context
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1511, <span class="pl-k">in</span> _handle_dbapi_exception
    sqlalchemy_exception, with_traceback=exc_info[2], from_=e
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py<span class="pl-pds">"</span></span>, line 182, <span class="pl-k">in</span> raise_
    raise exception
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1257, <span class="pl-k">in</span> _execute_context
    cursor, statement, parameters, context
  File <span class="pl-s"><span class="pl-pds">"</span>/opt/venv/lib/python3.6/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py<span class="pl-pds">"</span></span>, line 898, <span class="pl-k">in</span> do_executemany
    cursor.executemany(statement, parameters)
sqlalchemy.exc.IntegrityError: (raised as a result of Query-invoked autoflush<span class="pl-k">;</span> consider using a session.no_autoflush block <span class="pl-k">if</span> this flush is occurring prematurely)
(psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint <span class="pl-s"><span class="pl-pds">"</span>ab_permission_view_role_permission_view_id_role_id_key<span class="pl-pds">"</span></span>
DETAIL:  Key (permission_view_id, role_id)=(47, 3) already exists.

[SQL: INSERT INTO ab_permission_view_role (id, permission_view_id, role_id) VALUES (nextval(<span class="pl-s"><span class="pl-pds">'</span>ab_permission_view_role_id_seq<span class="pl-pds">'</span></span>), %(permission_view_id)s, %(role_id)s)]
[parameters: ({<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 47, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 101, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 57, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 70, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 207, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 167, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 96, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 68, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}  ... displaying 10 of 41 total bound parameter sets ...  {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 161, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3}, {<span class="pl-s"><span class="pl-pds">'</span>permission_view_id<span class="pl-pds">'</span></span>: 85, <span class="pl-s"><span class="pl-pds">'</span>role_id<span class="pl-pds">'</span></span>: 3})]
(Background on this error at: http://sqlalche.me/e/13/gkpj)
</pre></div>
<p dir="auto">maybe this is a problem already fix with airflow 2.0.0 , in that case I'm sorry for opening this issue :)</p>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.2.4 (latest released)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">I executed the following command <code class="notranslate">pip install apache-airflow -U</code>, to upgrade to the latest version of Airflow.</p>
<p dir="auto">This was successful, I can execute <code class="notranslate">airflow info</code> and <code class="notranslate">airflow check</code> returning 2.2.4 and INFO - Connection successful respectively.</p>
<p dir="auto">When I run <code class="notranslate">airflow webserver</code>, I receive the following error in the browser:<br>
<code class="notranslate">sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: session [SQL: SELECT session.id AS session_id_1, session.session_id AS session_session_id, session.data AS session_data, session.expiry AS session_expiry  FROM session  WHERE session.session_id = ? LIMIT ? OFFSET ?] [parameters: ('228b8648-db66-4795-9379-040adb92c08e', 1, 0)] (Background on this error at: http://sqlalche.me/e/13/e3q8)</code></p>
<p dir="auto">I have tried</p>
<ul dir="auto">
<li>airflow db upgrade</li>
<li>airflow db reset</li>
</ul>
<p dir="auto">Neither correct the error, I am really lost to resolve the error and getting nervous as I need my local working for my job.</p>
<p dir="auto">Any help would be most appreciated.</p>
<h3 dir="auto">What you expected to happen</h3>
<p dir="auto">Airflow to successfully run after installation</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">apache-airflow-providers-amazon==2.5.0<br>
apache-airflow-providers-ftp==2.0.0<br>
apache-airflow-providers-http==2.0.0<br>
apache-airflow-providers-imap==2.0.0<br>
apache-airflow-providers-mysql==2.1.1<br>
apache-airflow-providers-sqlite==2.0.0</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Virtualenv installation</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">When running <code class="notranslate">airflow db init</code></p>
<p dir="auto">I see the following error<br>
<code class="notranslate">sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) duplicate column name: last_scheduling_decision [SQL: ALTER TABLE dag_run ADD COLUMN last_scheduling_decision TIMESTAMP]</code></p>
<p dir="auto">When running <code class="notranslate">airflow db reset</code></p>
<p dir="auto">I receive the following error:</p>
<p dir="auto"><code class="notranslate">sqlite3.OperationalError: table _alembic_tmp_dag already exists</code></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>