I wanted to clear all example dags, so that I ran the command airflow initdb
. However, I was not able to enter the admin page after that, as there was something wrong:
File "/data/software/miniconda3/lib/python3.7/site-packages/flask_admin/menu.py", line 126, in is_accessible
return self._view.is_accessible()
File "/data/software/miniconda3/lib/python3.7/site-packages/airflow/www/utils.py", line 93, in is_accessible
(not current_user.is_anonymous and current_user.is_superuser())
File "/data/software/miniconda3/lib/python3.7/site-packages/airflow/contrib/auth/backends/password_auth.py", line 114, in is_superuser
return hasattr(self, 'user') and self.user.is_superuser()
AttributeError: 'NoneType' object has no attribute 'is_superuser'
I tried to create the same superuser as before, but it still got the same error.
Is there any idea how to fix it? Thanks in advance.
Setting up Google AuthenticationSelect 'Credentials' from the left hand nav. Click 'Create credentials' and choose 'OAuth client ID' Choose 'Web application' Fill in the required information (the 'Authorized redirect URIs' must be fully qualified e.g. http://airflow.example.com/oauth2callback)
default credentials -- user: admin - password: admin. How to create airflow users?
I solved it by cleaning the cookie and password stored
in the browser and refresh the admin login page again. It would be showing the login form as normal.
I don't know if this is counted as a bug.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With