airflow db init error #37377
Labels
area:core
duplicate
Issue that is duplicated
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
2.8.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Installed airflow and while doing airflow db init it's showing error
Traceback (most recent call last):
File "/home/rahul/airflow_env/bin/airflow", line 8, in
sys.exit(main())
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/main.py", line 57, in main
args.func(args)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/cli/cli_config.py", line 49, in command
return func(*args, **kwargs)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/utils/providers_configuration_loader.py", line 55, in wrapped_function
return func(*args, **kwargs)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/cli/commands/db_command.py", line 53, in initdb
db.initdb()
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/utils/session.py", line 79, in wrapper
return func(*args, session=session, **kwargs)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/utils/db.py", line 733, in initdb
_create_db_from_orm(session=session)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/utils/db.py", line 718, in _create_db_from_orm
_create_flask_session_tbl(engine.url)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/utils/db.py", line 711, in _create_flask_session_tbl
db = _get_flask_db(sql_database_uri)
File "/home/rahul/airflow_env/lib/python3.10/site-packages/airflow/utils/db.py", line 700, in _get_flask_db
AirflowDatabaseSessionInterface(app=flask_app, db=db, table="session", key_prefix="")
TypeError: SqlAlchemySessionInterface.init() missing 6 required positional arguments: 'sequence', 'schema', 'bind_key', 'use_signer', 'permanent', and 'sid_length'
What you think should happen instead?
No response
How to reproduce
please resolve error
Operating System
ubuntu
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: