Hi all
Recently ran a zypper upgrade and now seem to be having issues accessing the admin UI. Getting a 500 return, and uwsgi
logging the following:
2024-05-13T22:36:03.035069+00:00 hostname uwsgi[1358]: [ERROR] (flask.app) Traceback (most recent call last):
2024-05-13T22:36:03.037095+00:00 hostname uwsgi[1358]: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1838, in full_dispatch_request
2024-05-13T22:36:03.037394+00:00 hostname uwsgi[1358]: rv = self.dispatch_request()
2024-05-13T22:36:03.037594+00:00 hostname uwsgi[1358]: File "/usr/lib/python3.6/site-packages/flask/app.py", line 1824, in dispatch_request
2024-05-13T22:36:03.037791+00:00 hostname uwsgi[1358]: return self.view_functions[rule.endpoint](**req.view_args)
2024-05-13T22:36:03.038027+00:00 hostname uwsgi[1358]: File "./api/core.py", line 200, in wrapper
2024-05-13T22:36:03.038549+00:00 hostname uwsgi[1358]: return call()
2024-05-13T22:36:03.038850+00:00 hostname uwsgi[1358]: File "./api/core.py", line 165, in call
2024-05-13T22:36:03.039121+00:00 hostname uwsgi[1358]: ret = func(*args, **kwargs)
2024-05-13T22:36:03.039366+00:00 hostname uwsgi[1358]: File "./endpoints/service.py", line 32, in getUserSyncPolicy
2024-05-13T22:36:03.039686+00:00 hostname uwsgi[1358]: user = Users.query.filter(Users.username == username).first()
2024-05-13T22:36:03.039941+00:00 hostname uwsgi[1358]: File "./orm/__init__.py", line 32, in __get__
2024-05-13T22:36:03.040304+00:00 hostname uwsgi[1358]: mapper = class_mapper(type)
2024-05-13T22:36:03.040565+00:00 hostname uwsgi[1358]: File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/base.py", line 451, in class_mapper
2024-05-13T22:36:03.040860+00:00 hostname uwsgi[1358]: mapper = _inspect_mapped_class(class_, configure=configure)
2024-05-13T22:36:03.041138+00:00 hostname uwsgi[1358]: File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/base.py", line 430, in _inspect_mapped_class
2024-05-13T22:36:03.041379+00:00 hostname uwsgi[1358]: mapper._configure_all()
2024-05-13T22:36:03.041655+00:00 hostname uwsgi[1358]: File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/mapper.py", line 1352, in _configure_all
2024-05-13T22:36:03.042039+00:00 hostname uwsgi[1358]: configure_mappers()
2024-05-13T22:36:03.042358+00:00 hostname uwsgi[1358]: File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/mapper.py", line 3295, in configure_mappers
2024-05-13T22:36:03.042681+00:00 hostname uwsgi[1358]: raise e
2024-05-13T22:36:03.042974+00:00 hostname uwsgi[1358]: sqlalchemy.exc.InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: 'mapped class Users->users'. Original exception was: When initializing mapper mapped class Users->users, expression 'Users.domainID == Domains.ID' failed to locate a name ("name 'Domains' is not defined"). If this is a class name, consider adding this relationship() to the <class 'orm.users.Users'> class after both dependent classes have been defined.
2024-05-13T22:36:03.043346+00:00 hostname uwsgi[1358]: [WARNING] (flask.app) GET /api/v1/service/syncPolicy/user@domain.com? from ::1 -> 500 '{"message":"The server encountered an error while processing the request."}\n
Didn't run in to this issue in my dev environment. Doesn't appear to affect the webmail interface or mobile syncing. Any thoughts or guidance?