Taragolis commented on issue #34950:
URL: https://github.com/apache/airflow/issues/34950#issuecomment-1771831804

   Check again on fresh installed airflow, and I've got an error
   
   ```console
   [2023-10-19 22:57:46 +0000] [52] [ERROR] Error handling request /favicon.ico
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/util/_collections.py",
 line 1008, in __call__
       return self.registry[key]
   KeyError: <greenlet.greenlet object at 0x7f08400744c0 (otid=0x7f083f68ab10) 
current active started main>
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
2528, in wsgi_app
       ctx.push()
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/ctx.py", line 
375, in push
       self.session = session_interface.open_session(self.app, self.request)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_session/sessions.py", 
line 523, in open_session
       saved_session = self.sql_session_model.query.filter_by(
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py",
 line 552, in __get__
       return type.query_class(mapper, session=self.sa.session())
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/orm/scoping.py", 
line 47, in __call__
       sess = self.registry()
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/util/_collections.py",
 line 1010, in __call__
       return self.registry.setdefault(key, self.createfunc())
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", 
line 4279, in __call__
       return self.class_(**local_kw)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py",
 line 176, in __init__
       bind = options.pop('bind', None) or db.engine
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py",
 line 998, in engine
       return self.get_engine()
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py",
 line 1017, in get_engine
       return connector.get_engine()
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py",
 line 594, in get_engine
       self._engine = rv = self._sa.create_engine(sa_url, options)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py",
 line 1027, in create_engine
       return sqlalchemy.create_engine(sa_url, **engine_opts)
     File "<string>", line 2, in create_engine
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py",
 line 375, in warned
       return fn(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/engine/create.py", 
line 632, in create_engine
       raise TypeError(
   TypeError: Invalid argument(s) 'pool_size' sent to create_engine(), using 
configuration MySQLDialect_mysqldb/NullPool/Engine.  Please check that the 
keyword arguments are appropriate for this combination of components.
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.8/site-packages/gunicorn/workers/sync.py", 
line 135, in handle
       self.handle_request(listener, req, client, addr)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/gunicorn/workers/sync.py", 
line 178, in handle_request
       respiter = self.wsgi(environ, resp.start_response)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
2552, in __call__
       return self.wsgi_app(environ, start_response)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
2532, in wsgi_app
       response = self.handle_exception(e)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
1727, in handle_exception
       server_error = self.ensure_sync(handler)(server_error)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/www/views.py", line 
658, in show_traceback
       is_logged_in = get_auth_manager().is_logged_in()
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/auth/managers/fab/fab_auth_manager.py",
 line 58, in is_logged_in
       return not self.get_user().is_anonymous
     File "/home/airflow/.local/lib/python3.8/site-packages/werkzeug/local.py", 
line 316, in __get__
       obj = instance._get_current_object()
     File "/home/airflow/.local/lib/python3.8/site-packages/werkzeug/local.py", 
line 520, in _get_current_object
       return get_name(local())  # type: ignore
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_login/utils.py", line 
25, in <lambda>
       current_user = LocalProxy(lambda: _get_user())
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_login/utils.py", line 
372, in _get_user
       current_app.login_manager._load_user()
     File 
"/home/airflow/.local/lib/python3.8/site-packages/flask_login/login_manager.py",
 line 362, in _load_user
       user_id = session.get("_user_id")
   AttributeError: 'NoneType' object has no attribute 'get'
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to