RESOLVED -- Cannot log into ox app suite user does not exist in context10 - brand new fresh install

I just tried setting up a brand new clean UCS / OX app suite system and no users except for oxadmin can log into the it.

Looks like the same as Can’t login into OX App Suite - Cannot find user with identifier “amo” in context 10. (USR-0015) - Apps & App Center - Univention Help

error in listener_modules/ox-connector.log

2024-09-15 23:07:24 INFO    Handling PosixPath('/var/lib/univention-appcenter/apps/ox-connector/data/listener/2024-09-15-22-57-25-130821.json')
2024-09-15 23:07:24 INFO    Creating Object('oxmail/oxcontext', 'cn=context10,cn=open-xchange,dc=domain,dc=com')
2024-09-15 23:07:24 INFO    Error while processing /var/lib/univention-appcenter/apps/ox-connector/data/listener/2024-09-15-22-57-25-130821.json
2024-09-15 23:07:25 WARNING Traceback (most recent call last):
2024-09-15 23:07:25 WARNING   File "/tmp/univention-ox-connector.listener_trigger", line 415, in run_on_files
2024-09-15 23:07:25 WARNING     function(obj)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/__init__.py", line 81, in run
2024-09-15 23:07:25 WARNING     create_context(obj)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/contexts.py", line 64, in create_context
2024-09-15 23:07:25 WARNING     if context_exists(obj):
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/contexts.py", line 59, in context_exists
2024-09-15 23:07:25 WARNING     return bool(get_obj_by_name_from_ox(Context, context_id, None))
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/helpers.py", line 42, in get_obj_by_name_from_ox
2024-09-15 23:07:25 WARNING     return klass.from_ox(context_id, name=name)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/soap/backend.py", line 280, in from_ox
2024-09-15 23:07:25 WARNING     soap_obj = context_service.get_data(context_obj)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/soap/services.py", line 490, in get_data
2024-09-15 23:07:25 WARNING     return self._call_ox(
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/soap/services.py", line 194, in _call_ox
2024-09-15 23:07:25 WARNING     return getattr(service, func)(**kwargs)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/zeep/proxy.py", line 46, in __call__
2024-09-15 23:07:25 WARNING     return self._proxy._binding.send(
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send
2024-09-15 23:07:25 WARNING     return self.process_reply(client, operation_obj, response)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
2024-09-15 23:07:25 WARNING     return self.process_error(doc, operation)
2024-09-15 23:07:25 WARNING   File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 329, in process_error
2024-09-15 23:07:25 WARNING     raise Fault(
2024-09-15 23:07:25 WARNING zeep.exceptions.Fault: Authentication failed; exceptionId -1000361996-94
2024-09-15 23:07:25 INFO    This is consecutive error #87
2024-09-15 23:07:25 INFO    Sleeping for 0 sec
2024-09-15 23:07:25 INFO    Successfully processed 0 files during this run

python3.9 directory does not exist.
EDIT: this is located in the docker container… made the suggested edit to /usr/lib/python3.9/site-packages/univention/ox/provisioning/accessprofiles.p line 55… but no change

root@ucs2:/var/log/univention# /opt/open-xchange/sbin/listuser -c 10 -A oxadmin -P $(< /etc/ox-secrets/context10.secret)
Id Name    Displayname Email              qmax qused
 2 oxadmin OX Admin    oxadmin@domain.com -1
root@ucs2:/var/log/univention#

Update for anyone else that runs into this

root@ucs2:~# univention-app shell ox-connector /usr/local/share/ox-connector/resources/get_current_error.py
{"errors": "10539", "message": "Authentication failed; exceptionId -437570925-20506", "filename": "/var/lib/univention-appcenter/apps/ox-connector/data/listener/2024-09-15-22-57-25-130821.json"}



root@ucs2:~# cat "/var/lib/univention-appcenter/apps/ox-connector/data/listener/2024-09-15-22-57-25-130821.json"
{
    "dn": "cn=context10,cn=open-xchange,dc=domain,dc=com",
    "id": "4a6f6684-083c-103f-8387-d70f089e65c4",
    "object": {
        "contextid": "10",
        "name": "context10",
        "oxQuota": "77759"
    },
    "options": [
        "default"
    ],
    "udm_object_type": "oxmail/oxcontext"
}
root@ucs2:~#

So… reading the documentation again (i don’t know how I missed this one)

remove the offending error indicated from get_current_error.py
rm /var/lib/univention-appcenter/apps/ox-connector/data/listener/2024-09-15-22-57-25-130821.json

root@ucs2:~# /opt/open-xchange/sbin/listuser -c 10 -A oxadmin -P $(< /etc/ox-secrets/context10.secret)
Id Name          Displayname          Email                    qmax qused
 3 Administrator Pghost Administrator administrator@domain.com -1
 6 FirstName LastName FirstName LastName         firstname.lastname@domain.com  -1
 2 oxadmin       OX Admin             oxadmin@domain.com       -1
root@ucs2:~#

Seems to have resolved the issue

Mastodon