Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airflow db init error #37377

Closed
1 of 2 tasks
rahulgang06 opened this issue Feb 13, 2024 · 2 comments
Closed
1 of 2 tasks

airflow db init error #37377

rahulgang06 opened this issue Feb 13, 2024 · 2 comments
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

Comments

@rahulgang06
Copy link

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?

  • Yes I am willing to submit a PR!

Code of Conduct

@rahulgang06 rahulgang06 added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Feb 13, 2024
Copy link

boring-cyborg bot commented Feb 13, 2024

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

@Taragolis
Copy link
Contributor

If you want (i guess so) to install Airflow reproducibly, we would recommend to follow follow our way of installing airflow in reproducible way https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html

This error already discussed in other issues and Stack Overflow, and I'm pretty sure error SqlAlchemySessionInterface.__init__() missing 6 required positional arguments will show one of the link below in search engines:

@Taragolis Taragolis added the duplicate Issue that is duplicated label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants