Skip to content
New issue

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

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

Already on GitHub? # to your account

DETAIL: Key (permission_view_id, role_id)=(526, 1) already exists. #2

Open
bui-theanh opened this issue May 12, 2024 · 2 comments
Open

Comments

@bui-theanh
Copy link

[2024-05-12 09:36:57 +0000] [67] [ERROR] Exception in worker process
airflow-keycloak-docker-compose-airflow-webserver-1 | Traceback (most recent call last):
airflow-keycloak-docker-compose-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1803, in _execute_context
airflow-keycloak-docker-compose-airflow-webserver-1 | cursor, statement, parameters, context
airflow-keycloak-docker-compose-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
airflow-keycloak-docker-compose-airflow-webserver-1 | cursor.execute(statement, parameters)
airflow-keycloak-docker-compose-airflow-webserver-1 | psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "ab_permission_view_role_permission_view_id_role_id_uq"
airflow-keycloak-docker-compose-airflow-webserver-1 | DETAIL: Key (permission_view_id, role_id)=(526, 1) already exists.

I am using your docker-compose, I start docker-compose up and see this error, it seems I am wrong somewhere, can you help me?

@bui-theanh
Copy link
Author

airflow-init-1 | [2024-05-12 09:54:17,433] {init_security.py:64} CRITICAL - Cannot import user_auth for API authentication due to: No module named 'user_auth'
airflow-init-1 | Traceback (most recent call last):
airflow-init-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/extensions/init_security.py", line 60, in init_api_experimental_auth
airflow-init-1 | auth = import_module(backend.strip())
airflow-init-1 | File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
airflow-init-1 | return _bootstrap._gcd_import(name[level:], package, level)
airflow-init-1 | File "", line 1006, in _gcd_import
airflow-init-1 | File "", line 983, in _find_and_load
airflow-init-1 | File "", line 965, in _find_and_load_unlocked
airflow-init-1 | ModuleNotFoundError: No module named 'user_auth'

@Armadik
Copy link
Owner

Armadik commented May 22, 2024

restart should help

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants