Univention Bugzilla – Bug 44957
appcenter/docker/progress: TypeError: execv() arg 2 must contain only strings
Last modified: 2020-07-01 09:46:48 CEST
Version: 4.1-4 errata435 (Vahr) Execution of command 'appcenter/docker/progress' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 281, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 371, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 196, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 202, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 67, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 109, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 82, in _do_it self._register_attributes(app, args) File "%PY2.7%/univention/appcenter/actions/register.py", line 217, in _register_attributes schema_obj.register(schema_file, opts, udm_passthrough_options) File "%PY2.7%/univention/lib/ldap_extension.py", line 178, in register rc, self.object_dn, stdout = self.udm_find_object_dn() File "%PY2.7%/univention/lib/ldap_extension.py", line 99, in udm_find_object_dn rc, stdout = self.udm_find_object() File "%PY2.7%/univention/lib/ldap_extension.py", line 92, in udm_find_object p = subprocess.Popen(cmd, stdout=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings
Reported again: Version: 4.2-3 errata254 (Lesum
Reported again: Version: 4.3-0 errata84 (Neustadt) Internal server error during "appcenter/docker/progress". Request: appcenter/docker/progress Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 426, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 73, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 105, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 63, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 88, in _do_it self._register_attributes(app, args) File "%PY2.7%/univention/appcenter/actions/register.py", line 216, in _register_attributes schema_obj.register(schema_file, opts, udm_passthrough_options) File "%PY2.7%/univention/lib/ldap_extension.py", line 178, in register rc, self.object_dn, stdout = self.udm_find_object_dn() File "%PY2.7%/univention/lib/ldap_extension.py", line 99, in udm_find_object_dn rc, stdout = self.udm_find_object() File "%PY2.7%/univention/lib/ldap_extension.py", line 92, in udm_find_object p = subprocess.Popen(cmd, stdout=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings
Reported again: Version: 4.3-1 errata112 (Neustadt) Internal server error during "appcenter/docker/progress". Request: appcenter/docker/progress Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 426, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 73, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 107, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 63, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 88, in _do_it self._register_attributes(app, args) File "%PY2.7%/univention/appcenter/actions/register.py", line 216, in _register_attributes schema_obj.register(schema_file, opts, udm_passthrough_options) File "%PY2.7%/univention/lib/ldap_extension.py", line 178, in register rc, self.object_dn, stdout = self.udm_find_object_dn() File "%PY2.7%/univention/lib/ldap_extension.py", line 99, in udm_find_object_dn rc, stdout = self.udm_find_object() File "%PY2.7%/univention/lib/ldap_extension.py", line 92, in udm_find_object p = subprocess.Popen(cmd, stdout=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings Role: domaincontroller_master
*** Bug 47036 has been marked as a duplicate of this bug. ***
This is an appcenter error. The appcenter passes None in self.udm_passthrough_options. Patch?: diff --git a/management/univention-appcenter/python/appcenter/actions/register.py b/management/univention-appcenter/python/appcenter/actions/register.py index d70a8b877c..3e761095c1 100644 --- a/management/univention-appcenter/python/appcenter/actions/register.py +++ b/management/univention-appcenter/python/appcenter/actions/register.py @@ -218,6 +218,8 @@ class Register(CredentialsAction): if app.automatic_schema_creation: schema_obj = UniventionLDAPSchema(ucr_instance()) userdn = self._get_userdn(args) + if userdn is None: + raise RegisterSchemaFileFailed('could not detect user dn') udm_passthrough_options = ['--binddn', userdn, '--bindpwdfile', password_file] opts = Values() opts.packagename = 'appcenter-app-%s' % app.id