Bug 54912 - appcenter/progress: objectExists: univentionAppID=nextcloud_23.0.5-0,cn=nextcloud,cn=apps,cn=univention,
appcenter/progress: objectExists: univentionAppID=nextcloud_23.0.5-0,cn=nextc...
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-06-29 17:07 CEST by Riya Bhattacharjee
Modified: 2023-07-06 14:15 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022062321000482, 2023051821000536, 2023042721000182
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Maximilian Janßen univentionstaff 2023-06-20 13:39:38 CEST
added full traceback, since there is no public one yet
this is owncloud, but its probably the same fix

Version: 5.0-3 errata668

Error:
Interner Server-Fehler in "appcenter/progress".
Request: appcenter/progress

Traceback (most recent call last):
  File "%PY3%/univention/admin/uldap.py", line 663, in search
    return self.lo.search(filter, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response)
  File "%PY3%/univention/uldap.py", line 212, in _decorated
    return func(self, *args, **kwargs)
  File "%PY3%/univention/uldap.py", line 519, in search
    res = self.__search(base, ldap_scope, filter, attr, serverctrls=serverctrls, clientctrls=None, timeout=timeout, sizelimit=sizelimit, response=response)
  File "%PY3%/univention/uldap.py", line 534, in __search
    return self.lo.search_ext_s(*args, **kwargs)
  File "%PY3%/ldap/ldapobject.py", line 1259, in search_ext_s
    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
  File "%PY3%/ldap/ldapobject.py", line 1197, in _apply_method_s
    return func(self,*args,**kwargs)
  File "%PY3%/ldap/ldapobject.py", line 846, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "%PY3%/ldap/ldapobject.py", line 738, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "%PY3%/ldap/ldapobject.py", line 742, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "%PY3%/ldap/ldapobject.py", line 749, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "%PY3%/ldap/ldapobject.py", line 756, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "%PY3%/ldap/ldapobject.py", line 329, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "%PY3%/ldap/compat.py", line 44, in reraise
    raise exc_value
  File "%PY3%/ldap/ldapobject.py", line 313, in _ldap_call
    result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'desc': 'No such object', 'matched': 'cn=owncloud,cn=apps,cn=univention,dc=**,dc=**'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/admin/objects.py", line 100, in get
    obj = univention.admin.modules.lookup(module.module, co, lo, base=dn, superordinate=superordinate, scope='base', unique=True, required=True)[0]
  File "%PY3%/univention/admin/modules.py", line 935, in lookup
    tmpres = module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1795, in lookup
    for dn, attrs in lo.search(filter_str, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response):
  File "%PY3%/univention/admin/uldap.py", line 665, in search
    raise univention.admin.uexceptions.noObject(_err2str(msg))
univention.admin.uexceptions.noObject: Das Objekt existiert nicht: No such object.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/appcenter/udm.py", line 192, in _reload
    self._udm_obj = init_object('appcenter/app', self._lo, self._pos, self.dn)
  File "%PY3%/univention/appcenter/udm.py", line 76, in init_object
    obj = udm_objects.get(module, None, lo, pos, dn)
  File "%PY3%/univention/admin/objects.py", line 105, in get
    raise univention.admin.uexceptions.noObject(dn)
univention.admin.uexceptions.noObject: Das Objekt existiert nicht: univentionAppID=owncloud_10.12.1,cn=owncloud,cn=apps,cn=univention,dc=**,dc=**.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/admin/uldap.py", line 663, in search
    return self.lo.search(filter, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response)
  File "%PY3%/univention/uldap.py", line 212, in _decorated
    return func(self, *args, **kwargs)
  File "%PY3%/univention/uldap.py", line 519, in search
    res = self.__search(base, ldap_scope, filter, attr, serverctrls=serverctrls, clientctrls=None, timeout=timeout, sizelimit=sizelimit, response=response)
  File "%PY3%/univention/uldap.py", line 534, in __search
    return self.lo.search_ext_s(*args, **kwargs)
  File "%PY3%/ldap/ldapobject.py", line 1259, in search_ext_s
    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
  File "%PY3%/ldap/ldapobject.py", line 1197, in _apply_method_s
    return func(self,*args,**kwargs)
  File "%PY3%/ldap/ldapobject.py", line 846, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "%PY3%/ldap/ldapobject.py", line 738, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "%PY3%/ldap/ldapobject.py", line 742, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "%PY3%/ldap/ldapobject.py", line 749, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "%PY3%/ldap/ldapobject.py", line 756, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "%PY3%/ldap/ldapobject.py", line 329, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "%PY3%/ldap/compat.py", line 44, in reraise
    raise exc_value
  File "%PY3%/ldap/ldapobject.py", line 313, in _ldap_call
    result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'desc': 'No such object', 'matched': 'cn=owncloud,cn=apps,cn=univention,dc=**,dc=**'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/admin/objects.py", line 100, in get
    obj = univention.admin.modules.lookup(module.module, co, lo, base=dn, superordinate=superordinate, scope='base', unique=True, required=True)[0]
  File "%PY3%/univention/admin/modules.py", line 935, in lookup
    tmpres = module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1795, in lookup
    for dn, attrs in lo.search(filter_str, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response):
  File "%PY3%/univention/admin/uldap.py", line 665, in search
    raise univention.admin.uexceptions.noObject(_err2str(msg))
univention.admin.uexceptions.noObject: Das Objekt existiert nicht: No such object.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/appcenter/udm.py", line 100, in create_object_if_not_exists
    init_object(_module, _lo, _pos, dn)
  File "%PY3%/univention/appcenter/udm.py", line 76, in init_object
    obj = udm_objects.get(module, None, lo, pos, dn)
  File "%PY3%/univention/admin/objects.py", line 105, in get
    raise univention.admin.uexceptions.noObject(dn)
univention.admin.uexceptions.noObject: Das Objekt existiert nicht: univentionAppID=owncloud_10.12.1,cn=owncloud,cn=apps,cn=univention,dc=**,dc=**.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/admin/uldap.py", line 761, in add
    return self.lo.add(dn, al, serverctrls=serverctrls, response=response)
  File "%PY3%/univention/uldap.py", line 212, in _decorated
    return func(self, *args, **kwargs)
  File "%PY3%/univention/uldap.py", line 704, in add
    rtype, rdata, rmsgid, resp_ctrls = self.lo.add_ext_s(dn, nal, serverctrls=serverctrls)
  File "%PY3%/ldap/ldapobject.py", line 1238, in add_ext_s
    return self._apply_method_s(SimpleLDAPObject.add_ext_s,*args,**kwargs)
  File "%PY3%/ldap/ldapobject.py", line 1197, in _apply_method_s
    return func(self,*args,**kwargs)
  File "%PY3%/ldap/ldapobject.py", line 414, in add_ext_s
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
  File "%PY3%/ldap/ldapobject.py", line 749, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "%PY3%/ldap/ldapobject.py", line 756, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "%PY3%/ldap/ldapobject.py", line 329, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "%PY3%/ldap/compat.py", line 44, in reraise
    raise exc_value
  File "%PY3%/ldap/ldapobject.py", line 313, in _ldap_call
    result = func(*args,**kwargs)
ldap.ALREADY_EXISTS: {'desc': 'Already exists'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 351, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 254, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 327, in _response
    result = _multi_response(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 447, in _response
    return list(function(self, iterator, *nones))
  File "%PY3%/univention/management/console/modules/decorators.py", line 295, in _fake_func
    yield function(self, *args)
  File "%PY3%/univention/management/console/modules/mixins.py", line 160, in progress
    ret = progress_obj.poll()
  File "%PY3%/univention/management/console/modules/mixins.py", line 105, in poll
    six.reraise(*self.exc_info)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/modules/decorators.py", line 318, in _thread
    result = _multi_response(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 186, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 447, in _response
    return list(function(self, iterator, *nones))
  File "%PY3%/univention/management/console/modules/decorators.py", line 295, in _fake_func
    yield function(self, *args)
  File "%PY3%/univention/management/console/modules/appcenter/__init__.py", line 303, in run
    host_result[app.id] = self._run_local(app, action, _settings, auto_installed, progress)
  File "%PY3%/univention/management/console/modules/appcenter/__init__.py", line 350, in _run_local
    success = action.call(app=[app], username=self.username, password=self.password, **kwargs)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 187, in call
    return obj.call_with_namespace(namespace)
  File "%PY3%/univention/appcenter/actions/__init__.py", line 194, in call_with_namespace
    result = self.main(namespace)
  File "%PY3%/univention/appcenter/actions/upgrade.py", line 88, in main
    return self.do_it(args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 171, in do_it
    success = self.do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/upgrade.py", line 92, in do_it_once
    return super(Upgrade, self).do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/install.py", line 210, in do_it_once
    return super(Install, self).do_it_once(app, args)
  File "%PY3%/univention/appcenter/actions/install_base.py", line 216, in do_it_once
    self._do_it(app, args)
  File "%PY3%/univention/appcenter/actions/docker_upgrade.py", line 131, in _do_it
    self._upgrade_image(app, args)
  File "%PY3%/univention/appcenter/actions/docker_upgrade.py", line 188, in _upgrade_image
    self._install_new_app(app, args)
  File "%PY3%/univention/appcenter/actions/docker_upgrade.py", line 74, in _install_new_app
    return Install._do_it(self, app, args)
  File "%PY3%/univention/appcenter/actions/docker_install.py", line 74, in _do_it
    ret = super(Install, self)._do_it(app, args)
  File "%PY3%/univention/appcenter/actions/install.py", line 117, in _do_it
    self._register_app(app, args)
  File "%PY3%/univention/appcenter/actions/register.py", line 444, in _register_app
    ldap_object = get_app_ldap_object(app, lo, pos, or_create=True)
  File "%PY3%/univention/appcenter/udm.py", line 274, in get_app_ldap_object
    return ApplicationLDAPObject(app, lo, pos, or_create)
  File "%PY3%/univention/appcenter/udm.py", line 180, in __init__
    self._reload(app, create_if_not_exists)
  File "%PY3%/univention/appcenter/udm.py", line 196, in _reload
    self._create_obj(app)
  File "%PY3%/univention/appcenter/udm.py", line 225, in _create_obj
    obj = create_object_if_not_exists('appcenter/app', self._lo, self._pos, **attrs)
  File "%PY3%/univention/appcenter/udm.py", line 102, in create_object_if_not_exists
    obj.create()
  File "%PY3%/univention/admin/handlers/__init__.py", line 557, in create
    dn = self._create(response=response, serverctrls=serverctrls)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1299, in _create
    six.reraise(exc[0], exc[1], exc[2])
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/admin/handlers/__init__.py", line 1281, in _create
    self.lo.add(self.dn, al, serverctrls=serverctrls, response=response)
  File "%PY3%/univention/admin/uldap.py", line 764, in add
    raise univention.admin.uexceptions.objectExists(dn)
univention.admin.uexceptions.objectExists: Das Objekt existiert bereits: univentionAppID=owncloud_10.12.1,cn=owncloud,cn=apps,cn=univention,dc=**,dc=**.

Role: domaincontroller_master
Comment 2 Maximilian Janßen univentionstaff 2023-07-06 14:15:53 CEST
Version: 5.0-3 errata645
univention.admin.uexceptions.objectExists: Object exists: univentionAppID=onlyoffice-ds_7.3.3.50,cn=onlyoffice-ds,cn=apps,cn=univention,dc=docinfo,dc=intranet.

Maybe related to Bug 51053 ?