question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Airflow 2.3.1 - gunicorn keeps removing and adding Permission menu access on Permissions to role Admin

See original GitHub issue

Apache Airflow version

2.3.1 (latest released)

What happened

gunicorn log file is full of these messages.

This behavior was present also in release 2.3.0

I don’t think that was a problem in Airflow 2.2.x

The problem is that web server now is much weekier than before and it is the second time in a week that I found it not running.

[2022-05-26 05:50:55,083] {manager.py:585} INFO - Removed Permission menu access on Permissions to role Admin
[2022-05-26 05:50:55,098] {manager.py:543} INFO - Removed Permission View: menu_access on Permissions
[2022-05-26 05:50:55,159] {manager.py:508} INFO - Created Permission View: menu access on Permissions
[2022-05-26 05:50:55,164] {manager.py:568} INFO - Added Permission menu access on Permissions to role Admin
[2022-05-26 05:51:25,688] {manager.py:585} INFO - Removed Permission menu access on Permissions to role Admin
[2022-05-26 05:51:25,704] {manager.py:543} INFO - Removed Permission View: menu_access on Permissions
[2022-05-26 05:51:25,763] {manager.py:508} INFO - Created Permission View: menu access on Permissions
[2022-05-26 05:51:25,769] {manager.py:568} INFO - Added Permission menu access on Permissions to role Admin
[2022-05-26 05:51:56,283] {manager.py:585} INFO - Removed Permission menu access on Permissions to role Admin
[2022-05-26 05:51:56,297] {manager.py:543} INFO - Removed Permission View: menu_access on Permissions
[2022-05-26 05:51:56,353] {manager.py:508} INFO - Created Permission View: menu access on Permissions
[2022-05-26 05:51:56,358] {manager.py:568} INFO - Added Permission menu access on Permissions to role Admin
[2022-05-26 05:52:26,954] {manager.py:585} INFO - Removed Permission menu access on Permissions to role Admin
[2022-05-26 05:52:26,971] {manager.py:543} INFO - Removed Permission View: menu_access on Permissions
[2022-05-26 05:52:27,033] {manager.py:508} INFO - Created Permission View: menu access on Permissions
[2022-05-26 05:52:27,040] {manager.py:568} INFO - Added Permission menu access on Permissions to role Admin
[2022-05-26 05:52:57,595] {manager.py:585} INFO - Removed Permission menu access on Permissions to role Admin
[2022-05-26 05:52:57,610] {manager.py:543} INFO - Removed Permission View: menu_access on Permissions
[2022-05-26 05:52:57,679] {manager.py:508} INFO - Created Permission View: menu access on Permissions
[2022-05-26 05:52:57,684] {manager.py:568} INFO - Added Permission menu access on Permissions to role Admin
[2022-05-26 05:53:28,130] {manager.py:585} INFO - Removed Permission menu access on Permissions to role Admin
[2022-05-26 05:53:28,148] {manager.py:543} INFO - Removed Permission View: menu_access on Permissions
[2022-05-26 05:53:28,209] {manager.py:508} INFO - Created Permission View: menu access on Permissions
[2022-05-26 05:53:28,214] {manager.py:568} INFO - Added Permission menu access on Permissions to role Admin

What you think should happen instead

Log must be clear and gunicorn stable as a rock.

How to reproduce

Just launch gunicorn

Operating System

Ubuntu 20.04.4 LTS

Versions of Apache Airflow Providers

apache-airflow-providers-celery==2.1.4
apache-airflow-providers-ftp==2.1.2
apache-airflow-providers-http==2.1.2
apache-airflow-providers-imap==2.2.3
apache-airflow-providers-microsoft-mssql==2.1.3
apache-airflow-providers-microsoft-winrm==2.0.5
apache-airflow-providers-mysql==2.2.3
apache-airflow-providers-openfaas==2.0.3
apache-airflow-providers-oracle==2.2.3
apache-airflow-providers-postgres==4.1.0
apache-airflow-providers-samba==3.0.4
apache-airflow-providers-sftp==2.6.0
apache-airflow-providers-sqlite==2.1.3
apache-airflow-providers-ssh==2.4.4

Deployment

Virtualenv installation

Deployment details

gunicorn is configured with AUTH_LDAP option

Anything else

no

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gbonazzolicommented, May 27, 2022

@ashb On Linux (Ubuntu 20.04) AIRFLOW__WEBSERVER__UPDATE_FAB_PERMS=False is a valid work around !

Many thanks.

2reactions
ashbcommented, May 27, 2022

@lukas-at-harren A possible workaround for now is to set AIRFLOW__WEBSERVER__UPDATE_FAB_PERMS=False env var. That should disable the code that is causing this, and I think have minimal impact (the only possibly one is if you have DAG level permissions set you might need to run a CLI command to update the perms.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GitHub] [airflow] analystgav commented on issue #23926: Airflow ...
... [airflow] analystgav commented on issue #23926: Airflow 2.3.1 - gunicorn keeps removing and adding Permission menu access on Permissions to role Admin....
Read more >
Access Control — Airflow Documentation
But it is not recommended that Admin users alter these default roles in any way by removing or adding permissions to these roles....
Read more >
Apache Airflow: Some Permissions On New Role Are Reset
I remove several permissions, like menu access on Documentation ... see the permission changes I made on the "List Roles" page before they ......
Read more >
apache-airflow Changelog - pyup.io
Show ``DAGs`` and ``Datasets`` menu links based on role permission (26183) ... Add indexes for CASCADE deletes for ``task_instance`` (24488)
Read more >
Changelog - Apache Airflow Documentation
Add permission “extra_links” for Viewer role and above (#10719) ... [AIRFLOW-5562] Skip grant single DAG permissions for Admin role.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found