Open XChange User not Created in Context 10

Hello everyone, I have an issue I cannot resolve that is driving me crazy over the past few days. I can’t remember when it started but I believe it was after I restored from a backup, reinstalled AppSuite, then ran a domain re-join and commit-ox-ucr-variable command.

I can log in to AppSuite with previously created users that appear in listusers but when I try to log in to AppSuite using a newly created user, I get the error: Cannot find user with identifier “user” in context 10

The listuser shows the previously existing email-enabled users but not the newly created users.

I was able to find a way around it by creating users in LDAP and then creating the same users in OX using the createusers command.

There are no files in /var/spool/univention-directory-listener/ox-user/

Here’s a listener log after creating a new user with the OX template:

04.08.24 10:42:34.242 LISTENER ( INFO ) : postrun handler: nscd_update (prepared=-1)
04.08.24 10:42:34.253 LISTENER ( INFO ) : postrun handler: nfs-shares (prepared=0)
04.08.24 10:42:34.253 LISTENER ( INFO ) : postrun handler: portal_server (prepared=0)
04.08.24 10:42:34.253 LISTENER ( INFO ) : postrun handler: faillog (prepared=-1)
04.08.24 10:42:34.253 LISTENER ( INFO ) : postrun handler: dovecot (prepared=-1)
04.08.24 10:42:34.253 LISTENER ( INFO ) : postrun handler: bind (prepared=0)
04.08.24 10:42:34.253 LISTENER ( INFO ) : postrun handler: dovecot-shared-folder (prepared=0)
04.08.24 10:42:34.254 LISTENER ( INFO ) : postrun handler: nagios-client (prepared=0)
04.08.24 10:42:34.254 LISTENER ( INFO ) : postrun handler: pkgdb-watch (prepared=0)
04.08.24 10:42:34.254 LISTENER ( INFO ) : postrun handler: univention-admin-diary-backend (prepared=0)

04.08.24 10:45:03.434 LISTENER ( INFO ) : checking parent_dn of uid=james.kirk,cn=users,dc=cloud,dc=,dc=com in local LDAP
04.08.24 10:45:03.434 LDAP ( PROCESS ) : connecting to ldap://localhost:7389
04.08.24 10:45:03.443 LDAP ( INFO ) : simple_bind as cn=admin,dc=cloud,dc=
,dc=com
04.08.24 10:45:03.447 LISTENER ( ALL ) : cache_get_entry: Read Transaction begin
04.08.24 10:45:03.447 LISTENER ( INFO ) : dntree_get_id4dn: DN uid=james.kirk,cn=users,dc=cloud,dc=,dc=com not in id2dn
04.08.24 10:45:03.447 LISTENER ( ALL ) : cache_get_entry: Read Transaction abort
04.08.24 10:45:03.447 LISTENER ( ALL ) : blocking signals (was 0)
04.08.24 10:45:03.447 LISTENER ( INFO ) : running handlers for uid=james.kirk,cn=users,dc=cloud,dc=
,dc=com
04.08.24 10:45:03.447 LISTENER ( ALL ) : handler: replication considered
04.08.24 10:45:03.448 LISTENER ( INFO ) : replication: Running handler a for: uid=james.kirk,cn=users,dc=cloud,dc=,dc=com
04.08.24 10:45:03.449 LISTENER ( ALL ) : replication: LOCAL not found: uid=james.kirk,cn=users,dc=cloud,dc=
,dc=com {‘desc’: ‘No such object’, ‘matched’: ‘cn=users,dc=cloud,dc=falconitservices,dc=com’}
04.08.24 10:45:03.461 LISTENER ( INFO ) : handler: replication (successful)
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: ldap-cache-baa04df67e7af6bb0769f5cb7e72dba9 considered
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: ldap-cache-baa04df67e7af6bb0769f5cb7e72dba9 (filter doesn’t match)
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: ldap_extension considered
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: ldap_extension (filter doesn’t match)
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: nss considered
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: nss (filter doesn’t match)
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: keytab considered
04.08.24 10:45:03.461 LISTENER ( ALL ) : handler: keytab (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: monitoring-client considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: monitoring-client (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: license_uuid considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: license_uuid (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: ldap_server considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: ldap_server (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: univention-saml-idp-config considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: univention-saml-idp-config (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: gencertificate considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: gencertificate (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: umc-service-providers considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: umc-service-providers (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: univention-saml-servers considered
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: univention-saml-servers (filter doesn’t match)
04.08.24 10:45:03.462 LISTENER ( ALL ) : handler: quota considered

The Univention OX-connector logs shows:

024-08-04 10:55:41 WARNING utils._handle_output:299
2024-08-04 10:55:41 WARNING utils._handle_output:299 During handling of the above exception, another exception occurred:
2024-08-04 10:55:41 WARNING utils._handle_output:299
2024-08-04 10:55:41 WARNING utils._handle_output:299 Traceback (most recent call last):
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/requests/adapters.py”, line 589, in send
2024-08-04 10:55:41 WARNING utils._handle_output:299 resp = conn.urlopen(
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/urllib3/connectionpool.py”, line 755, in urlopen
2024-08-04 10:55:41 WARNING utils._handle_output:299 retries = retries.increment(
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/urllib3/util/retry.py”, line 574, in increment
2024-08-04 10:55:41 WARNING utils._handle_output:299 raise MaxRetryError(_pool, url, error or ResponseError(cause))
2024-08-04 10:55:41 WARNING utils._handle_output:299 urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘127.0.0.1’, port=80): Max retries exceeded with url: /webservices/OXContextService?wsdl (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8a553b00d0>: Failed to establish a new connection: [Errno 111] Connection refused’))
2024-08-04 10:55:41 WARNING utils._handle_output:299
2024-08-04 10:55:41 WARNING utils._handle_output:299 During handling of the above exception, another exception occurred:
2024-08-04 10:55:41 WARNING utils._handle_output:299
2024-08-04 10:55:41 WARNING utils._handle_output:299 Traceback (most recent call last):
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/tmp/univention-ox-connector.listener_trigger”, line 415, in run_on_files
2024-08-04 10:55:41 WARNING utils._handle_output:299 function(obj)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/provisioning/init.py”, line 69, in run
2024-08-04 10:55:41 WARNING utils._handle_output:299 create_context(obj)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/provisioning/contexts.py”, line 64, in create_context
2024-08-04 10:55:41 WARNING utils._handle_output:299 if context_exists(obj):
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/provisioning/contexts.py”, line 59, in context_exists
2024-08-04 10:55:41 WARNING utils._handle_output:299 return bool(get_obj_by_name_from_ox(Context, context_id, None))
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/provisioning/helpers.py”, line 41, in get_obj_by_name_from_ox
2024-08-04 10:55:41 WARNING utils._handle_output:299 return klass.from_ox(context_id, name=name)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/soap/backend.py”, line 278, in from_ox
2024-08-04 10:55:41 WARNING utils._handle_output:299 context_service = cls.service(DEFAULT_CONTEXT)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/soap/backend.py”, line 105, in service
2024-08-04 10:55:41 WARNING utils._handle_output:299 cls._service_objs[cls._object_type][context_id] = OxSoapServiceClass(cls.get_client_credentials(context_id))
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/soap/services.py”, line 155, in init
2024-08-04 10:55:41 WARNING utils._handle_output:299 self.Type = getattr(client_credentials.types, self._type_name, None)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/soap/credentials.py”, line 84, in types
2024-08-04 10:55:41 WARNING utils._handle_output:299 self.class._types = Types(self.server)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/soap/types.py”, line 71, in init
2024-08-04 10:55:41 WARNING utils._handle_output:299 self.class.wsdl_context = get_wsdl(server, ‘Context’)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/univention/ox/soap/services.py”, line 109, in get_wsdl
2024-08-04 10:55:41 WARNING utils._handle_output:299 return ZeepClient(WS_URLS[object_type].format(server=server)).wsdl
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/client.py”, line 76, in init
2024-08-04 10:55:41 WARNING utils._handle_output:299 self.wsdl = Document(wsdl, self.transport, settings=self.settings)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/wsdl/wsdl.py”, line 92, in init
2024-08-04 10:55:41 WARNING utils._handle_output:299 self.load(location)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/wsdl/wsdl.py”, line 95, in load
2024-08-04 10:55:41 WARNING utils._handle_output:299 document = self._get_xml_document(location)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/wsdl/wsdl.py”, line 155, in _get_xml_document
2024-08-04 10:55:41 WARNING utils._handle_output:299 return load_external(
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/loader.py”, line 89, in load_external
2024-08-04 10:55:41 WARNING utils._handle_output:299 content = transport.load(url)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/transports.py”, line 123, in load
2024-08-04 10:55:41 WARNING utils._handle_output:299 content = self._load_remote_data(url)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/zeep/transports.py”, line 135, in _load_remote_data
2024-08-04 10:55:41 WARNING utils._handle_output:299 response = self.session.get(url, timeout=self.load_timeout)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/requests/sessions.py”, line 602, in get
2024-08-04 10:55:41 WARNING utils._handle_output:299 return self.request(“GET”, url, **kwargs)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/requests/sessions.py”, line 589, in request
2024-08-04 10:55:41 WARNING utils._handle_output:299 resp = self.send(prep, **send_kwargs)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/requests/sessions.py”, line 703, in send
2024-08-04 10:55:41 WARNING utils._handle_output:299 r = adapter.send(request, **kwargs)
2024-08-04 10:55:41 WARNING utils._handle_output:299 File “/usr/lib/python3.9/site-packages/requests/adapters.py”, line 622, in send
2024-08-04 10:55:41 WARNING utils._handle_output:299 raise ConnectionError(e, request=request)
2024-08-04 10:55:41 WARNING utils._handle_output:299 requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, port=80): Max retries exceeded with url: /webservices/OXContextService?wsdl (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8a553b00d0>: Failed to establish a new connection: [Errno 111] Connection refused’))

Thank you for taking the time to read through this.

Mastodon