radumas commented on issue #59349:
URL: https://github.com/apache/airflow/issues/59349#issuecomment-3730680112

   We're on Airflow 3.1.5 with `apache-airflow-providers-fab==3.1.0`. We get 
similar error message but also looks like it starts with (similar to 
https://github.com/apache/airflow/issues/57954)
   
   ```
   Jan 09 18:26:08 bash[7462]: [2026-01-09T18:26:08.918109Z] {_utils.py:59} 
ERROR - Exception when querying database (MessagePack data is malformed: 
trailing characters (byte 1)).Retrying (1/3) in 0.30s.
   Jan 09 18:26:08 bash[7462]: Traceback (most recent call last):
   Jan 09 18:26:08 bash[7462]:   File 
"/data/airflow/airflow_venv/lib/python3.10/site-packages/flask_session/_utils.py",
 line 52, in wrapper
   Jan 09 18:26:08 bash[7462]:     return func(*args, **kwargs)
   Jan 09 18:26:08 bash[7462]:   File 
"/data/airflow/airflow_venv/lib/python3.10/site-packages/flask_session/sqlalchemy/sqlalchemy.py",
 line 152, in _retrieve_session_data
   Jan 09 18:26:08 bash[7462]:     return 
self.serializer.decode(serialized_session_data)
   Jan 09 18:26:08 bash[7462]:   File 
"/data/airflow/airflow_venv/lib/python3.10/site-packages/airflow/providers/fab/www/session.py",
 line 35, in loads
   Jan 09 18:26:08 bash[7462]:     return decoder.decode(data)
   Jan 09 18:26:08 bash[7462]: msgspec.DecodeError: MessagePack data is 
malformed: trailing characters (byte 1)
   ``` 
   which then leads into
   
   ```
   Jan 09 18:26:21 bash[7459]: [2026-01-09T18:26:21.529922Z] {app.py:1744} 
ERROR - Exception on /login/ [POST]
   #Skipping stacktrace
   Jan 09 18:26:21 bash[7459]: sqlalchemy.exc.OperationalError: 
(psycopg2.OperationalError) SSL connection has been closed unexpectedly
   ```
   
   and then ultimately to the `sqlalchemy.exc.PendingRollbackError` error. Can 
post full stacktrace if helpful.


-- 
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