OK... I got something:
Nov 1 11:00:54 localhost uwsgi[1583]: [ERROR] (grommunio Admin API) Traceback (most recent call last):
Nov 1 11:00:54 localhost uwsgi[1583]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request
Nov 1 11:00:54 localhost uwsgi[1583]: rv = self.dispatch_request()
Nov 1 11:00:54 localhost uwsgi[1583]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request
Nov 1 11:00:54 localhost uwsgi[1583]: return self.view_functions[rule.endpoint](**req.view_args)
Nov 1 11:00:54 localhost uwsgi[1583]: File "./api/core.py", line 179, in wrapper
Nov 1 11:00:54 localhost uwsgi[1583]: return call()
Nov 1 11:00:54 localhost uwsgi[1583]: File "./api/core.py", line 144, in call
Nov 1 11:00:54 localhost uwsgi[1583]: ret = func(*args, **kwargs)
Nov 1 11:00:54 localhost uwsgi[1583]: File "./endpoints/misc.py", line 43, in login
Nov 1 11:00:54 localhost uwsgi[1583]: success, val = loginUser(request.form["user"], request.form["pass"])
Nov 1 11:00:54 localhost uwsgi[1583]: File "./api/security.py", line 208, in loginUser
Nov 1 11:00:54 localhost uwsgi[1583]: user: Users = Users.query.filter((Users.username == username) | (Users.altname == username)).first()
Nov 1 11:00:54 localhost uwsgi[1583]: File "./orm/__init__.py", line 32, in __get__
Nov 1 11:00:54 localhost uwsgi[1583]: mapper = class_mapper(type)
Nov 1 11:00:54 localhost uwsgi[1583]: File "/usr/lib/python3/dist-packages/sqlalchemy/orm/base.py", line 451, in class_mapper
Nov 1 11:00:54 localhost uwsgi[1583]: mapper = _inspect_mapped_class(class_, configure=configure)
Nov 1 11:00:54 localhost uwsgi[1583]: File "/usr/lib/python3/dist-packages/sqlalchemy/orm/base.py", line 430, in _inspect_mapped_class
Nov 1 11:00:54 localhost uwsgi[1583]: mapper._configure_all()
Nov 1 11:00:54 localhost uwsgi[1583]: File "/usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py", line 1352, in _configure_all
Nov 1 11:00:54 localhost uwsgi[1583]: configure_mappers()
Nov 1 11:00:54 localhost uwsgi[1583]: File "/usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py", line 3295, in configure_mappers
Nov 1 11:00:54 localhost uwsgi[1583]: raise e
Nov 1 11:00:54 localhost uwsgi[1583]: sqlalchemy.exc.InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: 'mapped class MLists->mlists'. Original exception was: reverse_property 'mlist' on relationship MLists.user references relationship Users.mlist, which does not reference mapper mapped class MLists->mlists
Nov 1 11:00:54 localhost uwsgi[1583]: [WARNING] (grommunio Admin API) POST /api/v1/login? from 172.16.0.80 -> 500 '{"message":"The server encountered an error while processing the request."}\n'
Nov 1 11:00:54 localhost uwsgi[1583]: [pid: 1583|app: 0|req: 4/4] 172.16.0.80 () {44 vars in 724 bytes} [Wed Nov 1 11:00:54 2023] POST /api/v1/login => generated 76 bytes in 3 msecs (HTTP/1.1 500) 3 headers in 136 bytes (1 switches on core 3)
So... it's something related to python object/classes/mapper Mlists->mlists in relation to flask/flask-sqlalchemy
I'm using Debian 11 with the (updated few minutes ago)
this are all the python3* modules installed. Dependency issue maybe?
ii python3 3.9.2-3 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-acme 1.12.0-2+deb11u1 all ACME protocol library for Python 3
ii python3-apt 2.2.1 amd64 Python 3 interface to libapt-pkg
ii python3-argcomplete 1.8.1-1.5 all bash tab completion for argparse (for Python 3)
ii python3-attr 20.3.0-1 all Attributes without boilerplate (Python 3)
ii python3-blinker 1.4+dfsg1-0.3 all fast, simple object-to-object and broadcast signaling library
ii python3-certbot 1.12.0-2 all main library for certbot
ii python3-certbot-nginx 1.10.1-1 all Nginx plugin for Certbot
ii python3-certifi 2020.6.20-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-cffi-backend:amd64 1.14.5-1 amd64 Foreign Function Interface for Python 3 calling C code - runtime
ii python3-chardet 4.0.0-1 all universal character encoding detector for Python3
ii python3-click 7.1.2-1 all Wrapper around optparse for command line utilities - Python 3.x
ii python3-colorama 0.4.4-1 all Cross-platform colored terminal text in Python - Python 3.x
ii python3-configargparse 1.2.3-1 all replacement for argparse with config files and environment variables (Python 3)
ii python3-configobj 5.0.6-4 all simple but powerful config file reader and writer for Python 3
ii python3-cryptography 3.3.2-1 amd64 Python library exposing cryptographic recipes and primitives (Python 3)
ii python3-dateutil 2.8.1-6 all powerful extensions to the standard Python 3 datetime module
ii python3-dbg 3.9.2-3 amd64 debug build of the Python 3 Interpreter (version 3.9)
ii python3-dbus 1.2.16-5 amd64 simple interprocess messaging system (Python 3 interface)
ii python3-debconf 1.5.77 all interact with debconf from Python 3
ii python3-debian 0.1.39 all Python 3 modules to work with Debian-related data formats
ii python3-debianbts 3.1.0 all Python interface to Debian's Bug Tracking System
ii python3-decorator 4.4.2-2 all simplify usage of Python decorators by programmers
ii python3-dev 3.9.2-3 amd64 header files and a static library for Python (default)
ii python3-distro 1.5.0-1 all Linux OS platform information API
ii python3-distutils 3.9.2-1 all distutils package for Python 3.x
ii python3-dnspython 2.0.0-1 all DNS toolkit for Python 3
ii python3-firewall 0.9.3-2 all Python3 bindings for firewalld
ii python3-flask 1.1.2-2+deb11u1 all micro web framework based on Werkzeug and Jinja2 - Python 3.x
ii python3-flask-sqlalchemy 2.1-4 all adds SQLAlchemy support to your Python 3 Flask application
ii python3-gi 3.38.0-2 amd64 Python 3 bindings for gobject-introspection libraries
ii python3-httplib2 0.18.1-3 all comprehensive HTTP client library written for Python3
ii python3-icu 2.5-1+b2 amd64 Python 3 extension wrapping the ICU C++ API
ii python3-idna 2.10-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-importlib-metadata 1.6.0-2 all library to access the metadata for a Python package - Python 3.x
ii python3-isodate 0.6.0-2 all ISO 8601 date/time/duration parser and formatter (Python 3 module)
ii python3-itsdangerous 1.1.0-3 all Various helpers to pass trusted data to untrusted environment - Python 3.x
ii python3-jellyfish 0.8.2-1+b2 amd64 Library for approximate and phonetic matching of strings (Python 3)
ii python3-jinja2 2.11.3-1 all small but fast and easy to use stand-alone template engine
ii python3-josepy 1.2.0-2 all JOSE implementation for Python 3.x
ii python3-jsonschema 3.2.0-3 all An(other) implementation of JSON Schema (Draft 3 and 4) - Python 3.x
ii python3-jwt 1.7.1-2 all Python 3 implementation of JSON Web Token
ii python3-lazy-object-proxy 1.5.2-1 amd64 Python 3 fast and thorough lazy object proxy
ii python3-ldap3 2.8.1-1 all Pure Python LDAP client library
ii python3-lib2to3 3.9.2-1 all Interactive high-level object-oriented language (lib2to3)
ii python3-markupsafe 1.1.1-1+b3 amd64 HTML/XHTML/XML string library for Python 3
ii python3-mattermostdriver 7.3.2-1+14.5 all python3-mattermostdriver
ii python3-minimal 3.9.2-3 amd64 minimal subset of the Python language (default python3 version)
ii python3-more-itertools 8.12.0-1+1.8 all python3-more-itertools
ii python3-multidict 5.1.0-1 amd64 multidict implementation (Python library)
ii python3-mysqldb 1.4.4-2+b3 amd64 Python interface to MySQL
ii python3-nftables 0.9.8-3.1+deb11u1 amd64 nftables/libnftables python3 module
ii python3-openapi-core 0.13.7-1+7.17 all python3-openapi-core
ii python3-openapi-schema-validator 0.1.5-1+10.7 all python3-openapi-schema-validator
ii python3-openapi-spec-validator 0.2.9-1+8.7 all python3-openapi-spec-validator
ii python3-openssl 20.0.1-1 all Python 3 wrapper around the OpenSSL library
ii python3-parse 1.19.0-1+22.10 all python3-parse
ii python3-parsedatetime 2.6-1 all Python 3 module to parse human-readable date/time expressions
ii python3-pip 20.3.4-4+deb11u1 all Python package installer
ii python3-pkg-resources 52.0.0-4 all Package Discovery and Resource Access using pkg_resources
ii python3-psutil 5.8.0-1 amd64 module providing convenience functions for managing processes (Python3)
ii python3-pyasn1 0.4.8-1+1.6 all ASN.1 library for Python (Python 3 module)
ii python3-pycurl 7.43.0.6-5 amd64 Python bindings to libcurl (Python 3)
ii python3-pydantic 1.7.4-1 all Data validation and settings management using Python type hinting
ii python3-pyexmdb 1.11.0.58baa16-1+17.2 amd64 python3-pyexmdb
ii python3-pyinotify 0.9.6-1.3 all simple Linux inotify Python bindings
ii python3-pyparsing 2.4.7-1 all alternative to creating and executing simple grammars - Python 3.x
ii python3-pyrsistent:amd64 0.15.5-1+b3 amd64 persistent/functional/immutable data structures for Python
ii python3-pysimplesoap 1.16.2-3 all simple and lightweight SOAP Library (Python 3)
ii python3-redis 3.5.3-2 all Persistent key-value database with network interface (Python 3 library)
ii python3-reportbug 7.10.3+deb11u1 all Python modules for interacting with bug tracking systems
ii python3-requests 2.25.1+dfsg-2 all elegant and simple HTTP library for Python3, built for human beings
ii python3-requests-toolbelt 0.9.1-1 all Utility belt for advanced users of python3-requests
ii python3-rfc3339 1.1-2 all parser and generator of RFC 3339-compliant timestamps (Python 3)
ii python3-rfc3339-validator 0.1.5-1+9.3 all python3-rfc3339-validator
ii python3-selinux 3.1-3 amd64 Python3 bindings to SELinux shared libraries
ii python3-setuptools 52.0.0-4 all Python3 Distutils Enhancements
ii python3-simplejson 3.17.2-1 amd64 simple, fast, extensible JSON encoder/decoder for Python 3.x
ii python3-six 1.16.0-2 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-slip 0.6.5-2 all miscellaneous convenience, extension and workaround code for Python
ii python3-slip-dbus 0.6.5-2 all convenience functions for D-Bus services
ii python3-sqlalchemy 1.3.22+ds1-1 all SQL toolkit and Object Relational Mapper for Python 3
ii python3-sqlalchemy-ext:amd64 1.3.22+ds1-1 amd64 SQL toolkit and Object Relational Mapper for Python3 - C extension
ii python3-strict-rfc3339 0.1.5-1+13.2 all python3-strict-rfc3339
ii python3-systemd 234-3+b4 amd64 Python 3 bindings for systemd
ii python3-tz 2021.1-1 all Python3 version of the Olson timezone database
ii python3-urllib3 1.26.5-1~exp1 all HTTP library with thread-safe connection pooling for Python3
ii python3-uwsgidecorators 2.0.19.1-7.1 all module of decorators for elegant access to uWSGI API (Python 3)
ii python3-websockets 8.1-1 all implementation of the WebSocket Protocol (RFC 6455)
ii python3-werkzeug 1.0.1+dfsg1-2+deb11u1 all collection of utilities for WSGI applications (Python 3.x)
ii python3-wheel 0.34.2-1 all built-package format for Python
ii python3-yaml 5.3.1-5 amd64 YAML parser and emitter for Python3
ii python3-zipp 1.0.0-3 all pathlib-compatible Zipfile object wrapper - Python 3.x
ii python3-zope.component 4.3.0-3 all Zope Component Architecture
ii python3-zope.event 4.4-3 all Very basic event publishing system
ii python3-zope.hookable 5.0.1-1+b2 amd64 Hookable object support
ii python3-zope.interface 5.2.0-1 amd64 Interfaces for Python3
ii python3.9 3.9.2-1 amd64 Interactive high-level object-oriented language (version 3.9)
ii python3.9-dbg 3.9.2-1 amd64 Debug Build of the Python Interpreter (version 3.9)
ii python3.9-dev 3.9.2-1 amd64 Header files and a static library for Python (v3.9)
ii python3.9-minimal 3.9.2-1 amd64 Minimal subset of the Python language (version 3.9)