Univention Bugzilla – Bug 43238
app upgrade in univention-upgrade fails if started without proper terminal (via ssh)
Last modified: 2017-10-25 14:49:32 CEST
UCS 4.1-4 + oxseforucs=7.8.1-7-ucs1 from another computer i started the update via ssh -> sshpass -p univention ssh -o StrictHostKeyChecking=no root@10.200.7.150 'univention-upgrade --noninteractive' in updater.log i get some weired error messages from the postinst scripts and the update fails (package status is broken) ... sed: couldn't close stdout: Ungültiger Dateideskriptor sed: couldn't close stdout: Ungültiger Dateideskriptor sed: couldn't close stdout: Ungültiger Dateideskriptor sed: couldn't close stdout: Ungültiger Dateideskriptor /opt/open-xchange/appsuite/share/update-themes.sh: Zeile 49: echo: Schreibfehler: Ungültiger Dateideskriptor Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück ... -> dpkg -C Die folgenden Pakete wurden entpackt, aber noch nicht konfiguriert. Sie müssen mit dpkg --configure oder dem Konfigurations-Menüeintrag in dselect konfiguriert werden, damit sie ordnungsgemäß funktionieren: open-xchange-meta-ui-appsuite The Open-Xchange Meta package for the OX App Sui open-xchange-appsuite-backend Backend extensions to serve OX App Suite fronten Die folgenden Pakete sind nur halb konfiguriert, wahrscheinlich durch Probleme während der ersten Konfiguration. Die Konfiguration sollte mit dpkg --configure <Paket> oder mit dem Konfigurations-Menüeintrag in dselect erneut versucht werden: open-xchange-appsuite-manifest Manifest and apps included in the OX App Suite This also happens when upgrading an app via univention-upgrade in jenkins.
Created attachment 8319 [details] updater.log
This breaks the package status, should be fixed for 4.2 and 4.1.
siehe auch https://forge.univention.org/bugzilla/show_bug.cgi?id=44031
best solution so far remove '-o', 'APT::Status-Fd=1' from python/appcenter/actions/install_base.py _apt_get()
The code exists since UCS 4.0 docker component svn r61049 Bug #38194.
Fixed in univention-appcenter 6.0.10-17A~4.2.0.201710191114 Could not reproduce, though.
i get now 3695 actions.upgrade 17-10-20 11:06:45 [ ERROR]: _install_packages() got multiple values for keyword argument 'update' Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace result = self.main(namespace) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/upgrade.py", line 75, in main return self.do_it(args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 98, in do_it self._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_upgrade.py", line 96, in _do_it return super(Upgrade, self)._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 66, in _do_it ret = super(Install, self)._do_it(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 88, in _do_it if self._install_app(app, args): File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_install.py", line 54, in _install_app return super(Install, self)._install_app(app, args) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 161, in _install_app self._install_master_packages(app) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install.py", line 103, in _install_master_packages ret = self._install_packages(app.default_packages_master) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/upgrade.py", line 99, in _install_packages super(Upgrade, self)._install_packages(packages, 0, update=update) TypeError: _install_packages() got multiple values for keyword argument 'update' 4.2-2 with an old ox app started update via ssh with -> sshpass -p univention ssh -o StrictHostKeyChecking=no root@10.200.7.150 'univention-upgrade --noninteractive --ignoressh --ignoreterm'
Fixed in univention-appcenter 6.0.10-19A~4.2.0.201710201120
OK - update via ssh works OK - yaml
<http://errata.software-univention.de/ucs/4.2/204.html>