You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "rahulgang06 (via GitHub)" <gi...@apache.org> on 2024/02/13 07:50:44 UTC
[I] airflow db init error [airflow]
rahulgang06 opened a new issue, #37377:
URL: https://github.com/apache/airflow/issues/37377
### 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 <module>
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
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] airflow db init error [airflow]
Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis closed issue #37377: airflow db init error
URL: https://github.com/apache/airflow/issues/37377
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] airflow db init error [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #37377:
URL: https://github.com/apache/airflow/issues/37377#issuecomment-1940633358
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.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] airflow db init error [airflow]
Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on issue #37377:
URL: https://github.com/apache/airflow/issues/37377#issuecomment-1940793638
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:
- https://github.com/apache/airflow/issues/36883
- https://github.com/apache/airflow/issues/36897
- https://github.com/apache/airflow/pull/36895
- https://stackoverflow.com/questions/77846645/airflow-db-migrate-is-giving-typeerror-sqlalchemysessioninterface-init-mi/
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org