Update Master / Slave fails

Hi.
Problems while updating a master and his slave here:

UCS Master:

Checking for local repository:                          none
Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                          The update to UCS 4.2 is blocked because the component 'oxseforucs_20160421' is marked as required.
 none

UCS Slave: (with OX)

Checking for release updates:                           found: UCS 4.2-0
Starting update to UCS version 4.2-0 at Wed Aug  9 17:02:05 2017...
Starting update to UCS version 4.2-0
09.08.17 17:02:06.679  DEBUG_INIT
**** Starting univention-updater with parameter=['/usr/share/univention-updater/univention-updater', 'net', '--updateto', '4.2-0', '--silent', '--ignoressh', '--ignoreterm']
Version=4.1
Patchlevel=4
starting net mode
--->DBG:update_available(mode=net, cdrom_mount_point=/cdrom, iso=None)
Checking network repository
Update to = 4.2-0
**** Downloading scripts at Wed Aug  9 17:02:30 2017
**** Starting actual update at Wed Aug  9 17:02:53 2017
Running preup.sh script
Mi 9. Aug 17:02:53 CEST 2017

HINT:
Please check the release notes carefully BEFORE updating to UCS 4.2-0:
 English version: https://docs.software-univention.de/release-notes-4.2-0-en.html
 German version:  https://docs.software-univention.de/release-notes-4.2-0-de.html

Please also consider documents of following release updates and
3rd party components.

Do you want to continue [Y/n]?
Trying to detect if migration to dependency based boot will fail:
WARNING: Removed, but configured, package console-tools left /etc/init.d/console-screen.sh behind
WARNING: Removed, but configured, package hdparm left /etc/init.d/hdparm behind
WARNING: Removed, but configured, package plucs left /etc/init.d/plucs behind
WARNING: Removed, but configured, package portmap left /etc/init.d/portmap behind
insserv: warning: script 'K20univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'K21rdate' missing LSB tags and overrides
[...]
insserv: enable service ../init.d/bootmisc.sh -> /etc/init.d/../rcS.d/S21bootmisc.sh
insserv: remove service /etc/init.d/../rcS.d/S36udev-mtab
insserv: enable service ../init.d/udev-mtab -> /etc/init.d/../rcS.d/S12udev-mtab
insserv: remove service /etc/init.d/../rcS.d/S07hdparm
insserv: enable service ../init.d/hdparm -> /etc/init.d/../rcS.d/S06hdparm
insserv: remove service /etc/init.d/../rcS.d/S05bootlogd
insserv: enable service ../init.d/bootlogd -> /etc/init.d/../rcS.d/S04bootlogd
insserv: remove service /etc/init.d/../rcS.d/S30procps
insserv: enable service ../init.d/procps -> /etc/init.d/../rcS.d/S12procps
insserv: remove service /etc/init.d/../rcS.d/S70x11-common
insserv: enable service ../init.d/x11-common -> /etc/init.d/../rcS.d/S21x11-common
insserv: remove service /etc/init.d/../rcS.d/S12mtab.sh
insserv: enable service ../init.d/mtab.sh -> /etc/init.d/../rcS.d/S08mtab.sh
insserv: remove service /etc/init.d/../rcS.d/S70screen-cleanup
insserv: enable service ../init.d/screen-cleanup -> /etc/init.d/../rcS.d/S21screen-cleanup
insserv: remove service /etc/init.d/../rcS.d/S37plymouth-log
insserv: enable service ../init.d/plymouth-log -> /etc/init.d/../rcS.d/S21plymouth-log
insserv: remove service /etc/init.d/../rcS.d/S48kbd
insserv: enable service ../init.d/kbd -> /etc/init.d/../rcS.d/S20kbd
insserv: remove service /etc/init.d/../rcS.d/S20kmod
insserv: enable service ../init.d/kmod -> /etc/init.d/../rcS.d/S08kmod
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
insserv --dryrun: OK
         Aborting, because the update would likely fail.
         Please check and fix the aforementioned issues.
         (To ignore, set the UCRV variable update42/ignore_insserv to yes)
Error: Update aborted by pre-update script of release 4.2-0
exitcode of univention-updater: 1
ERROR: update failed. Please check /var/log/univention/updater.log

Not really sure how to proceed now…
The versions right now:

Master:

Server
ucs-master.foo.bar
UCS-Version
4.1-4 errata445 (Vahr)
UMC-Version
8.0.28-21.926.201611091130

Slave:

Server
ucs-slave.holz-joki.de
UCS-Version
4.1-4 errata445 (Vahr)
UMC-Version
8.0.28-21.926.201611091130

Any idea very welcome!

thanks
Sascha

Can you post the contents of the log mentioned above?

Hi, sure!

Master-updater.log (1.6 MB)
Slave-OX-updater.log (2.1 MB)

Thanks
Sascha

Always the master has to be upgraded first. For this you have to update OXSE

Hi,

yes, i know that. But OX should be only installed on the slave, not on the master, i think there should be no ox-packages at all on the master then, am i right?
So how to update the ucs-master?

Thanks
Sascha

You have to update OX with the AppCenter. You can use it directly on the slave or on the master.

Hi,
yes you’re right. the update wasn’t shown in the UI, therefore, we didn’t know about it. Only if you got to the appcenter and explicitly hit the OX icon, it was telling you about an existing update.
Will do the update now, and then see what it does with the system.

ok, the ox-update had no issues, but afterwards same problem on the master:

Checking for release updates: 2017-08-10 15:07:00,131 ERROR:updater.Updater:Missing component oxseforucs_20160421

Master:

Slave:

So the I think this component is not needed anymore on the master and you can delete it. But this should be confirmed first by Univention.

This means, that you have installed oxseforucs_20160421 (7.8.1-7-ucs1) which is not available for UCS 4.2. But you said that OX was updated, so you should have a newer version. That is strange :wink:

Could you please post the output of these commands

ucr search --brief component/ox
univention-app info

sure thing:

root@ucs-master:~# ucr search --brief component/ox
repository/online/component/oxseforucs_20160421/description: OX App Suite
repository/online/component/oxseforucs_20160421/localmirror: false
repository/online/component/oxseforucs_20160421/server: appcenter.software-univention.de
repository/online/component/oxseforucs_20160421/unmaintained: disabled
repository/online/component/oxseforucs_20160421/version: current
repository/online/component/oxseforucs_20160421: enabled

root@ucs-master:~# univention-app info
UCS: 4.1-4 errata446
App Center compatibility: 4
Installed: cups=1.5.3 samba4=4.5
Upgradable:

root@ucs-slave:~# ucr search --brief component/ox
repository/online/component/oxcalcengine782/description: Open-Xchange calc engine
repository/online/component/oxcalcengine782/password: **********
repository/online/component/oxcalcengine782/prefix: OX6/OXSEforUCS
repository/online/component/oxcalcengine782/server: software.open-xchange.com
repository/online/component/oxcalcengine782/username: holz-joki
repository/online/component/oxcalcengine782: enabled
repository/online/component/oxdocconv782/defaultpackage: univention-ox-text-meta-documentconverter open-xchange-documentconverter open-xchange-documentconverter-webservice
repository/online/component/oxdocconv782/description: Open-Xchange Text Documentconverter
repository/online/component/oxdocconv782/password: **********
repository/online/component/oxdocconv782/prefix: OX6/OXSEforUCS
repository/online/component/oxdocconv782/server: software.open-xchange.com
repository/online/component/oxdocconv782/username: holz-joki
repository/online/component/oxdocconv782: enabled
repository/online/component/oxdocconvapi782/description: Open-Xchange Text Documentconverter API
repository/online/component/oxdocconvapi782/password: **********
repository/online/component/oxdocconvapi782/prefix: OX6/OXSEforUCS
repository/online/component/oxdocconvapi782/server: software.open-xchange.com
repository/online/component/oxdocconvapi782/username: holz-joki
repository/online/component/oxdocconvapi782: enabled
repository/online/component/oxdrive782/defaultpackage: open-xchange-drive-restricted
repository/online/component/oxdrive782/description: Open-Xchange Drive
repository/online/component/oxdrive782/password: **********
repository/online/component/oxdrive782/prefix: OX6/OXSEforUCS
repository/online/component/oxdrive782/server: software.open-xchange.com
repository/online/component/oxdrive782/username: holz-joki
repository/online/component/oxdrive782: enabled
repository/online/component/oxdrivehelp140/description: Open-Xchange Drive Help
repository/online/component/oxdrivehelp140/password: **********
repository/online/component/oxdrivehelp140/prefix: OX6/OXSEforUCS
repository/online/component/oxdrivehelp140/server: software.open-xchange.com
repository/online/component/oxdrivehelp140/username: holz-joki
repository/online/component/oxdrivehelp140: enabled
repository/online/component/oxmobility782/defaultpackage: open-xchange-meta-mobility univention-ox-usm-ox
repository/online/component/oxmobility782/description: OXtender for Business Mobility
repository/online/component/oxmobility782/password: **********
repository/online/component/oxmobility782/prefix: OX6/OXSEforUCS
repository/online/component/oxmobility782/server: software.open-xchange.com
repository/online/component/oxmobility782/username: holz-joki
repository/online/component/oxmobility782: enabled
repository/online/component/oxoffice782/description: Open-Xchange Text
repository/online/component/oxoffice782/password: **********
repository/online/component/oxoffice782/prefix: OX6/OXSEforUCS
repository/online/component/oxoffice782/server: software.open-xchange.com
repository/online/component/oxoffice782/username: holz-joki
repository/online/component/oxoffice782: enabled
repository/online/component/oxofficeweb782/description: Open-Xchange Text Web
repository/online/component/oxofficeweb782/password: **********
repository/online/component/oxofficeweb782/prefix: OX6/OXSEforUCS
repository/online/component/oxofficeweb782/server: software.open-xchange.com
repository/online/component/oxofficeweb782/username: holz-joki
repository/online/component/oxofficeweb782: enabled
repository/online/component/oxoutlook782/defaultpackage: open-xchange-meta-outlook
repository/online/component/oxoutlook782/description: OXtender for MS Outlook
repository/online/component/oxoutlook782/password: **********
repository/online/component/oxoutlook782/prefix: OX6/OXSEforUCS
repository/online/component/oxoutlook782/server: software.open-xchange.com
repository/online/component/oxoutlook782/username: holz-joki
repository/online/component/oxoutlook782: enabled
repository/online/component/oxreaderengine782/defaultpackage: univention-ox-text-meta-documentconverter readerengine-writer
repository/online/component/oxreaderengine782/description: Open-Xchange document conversion engine
repository/online/component/oxreaderengine782/password: **********
repository/online/component/oxreaderengine782/prefix: OX6/OXSEforUCS
repository/online/component/oxreaderengine782/server: software.open-xchange.com
repository/online/component/oxreaderengine782/username: holz-joki
repository/online/component/oxreaderengine782: enabled
repository/online/component/oxseforucs_20170807140221/description: OX App Suite
repository/online/component/oxseforucs_20170807140221/localmirror: false
repository/online/component/oxseforucs_20170807140221/server: appcenter.software-univention.de
repository/online/component/oxseforucs_20170807140221/unmaintained: disabled
repository/online/component/oxseforucs_20170807140221/version: current
repository/online/component/oxseforucs_20170807140221: enabled
repository/online/component/oxusm782/description: Open-Xchange Server USM Bundle
repository/online/component/oxusm782/password: **********
repository/online/component/oxusm782/prefix: OX6/OXSEforUCS
repository/online/component/oxusm782/server: software.open-xchange.com
repository/online/component/oxusm782/username: holz-joki
repository/online/component/oxusm782: enabled

root@ucs-slave:~# univention-app info
UCS: 4.1-4 errata446
App Center compatibility: 4
Installed: cups=1.5.3 mailserver=10 open-xchange-text=7.8-2-4-ucs2 oxseforucs=7.8.2-4-ucs7
Upgradable:

looks like some orphan package, oesn’t it?

best
Sascha

Have you tried in the past to setup OX (install and uninstall) at the master?

But since it is not installed at the moment (“univention-app info” does not show any OX component at the master), you could deactivate the repository by

ucr set repository/online/component/oxseforucs_20160421='false'

and proceed with your upgrade.

Ok will do and report!
Wasn’t sure if that repo is needed for something on the master…
thanks and have a great weekend
Sascha

Damn…
we’re getting somehow further bit:

Do you want to continue [Y/n]?
WARNING: Please install netcat-openbsd and run
update-alternatives --auto nc
for the update to proceed.
Error: Update aborted by pre-update script of release 4.2-0
exitcode of univention-updater: 1

and after doing so (install netcat-openbsd and run update-alternatives --auto nc)

Do you want to continue [Y/n]?
Trying to detect if migration to dependency based boot will fail:
WARNING: Removed, but configured, package console-tools left /etc/init.d/console-screen.sh behind
WARNING: Removed, but configured, package plucs left /etc/init.d/plucs behind
WARNING: Removed, but configured, package portmap left /etc/init.d/portmap behind
WARNING: Removed, but configured, package univention-ad-connector left /etc/init.d/univention-ad-connector behind
insserv: warning: script 'K97univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'K99univention-firewall' missing LSB tags and overrides
insserv: warning: script 'K20univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'K20univention-directory-policy' missing LSB tags and overrides
insserv: warning: script 'K20univention-management-console-server' missing LSB tags and overrides
insserv: warning: script 'K21rdate' missing LSB tags and overrides
insserv: warning: script 'K50univention-directory-listener' missing LSB tags and overrides
[...]
insserv: enable service ../init.d/kbd -> /etc/init.d/../rcS.d/S20kbd
insserv: remove service /etc/init.d/../rcS.d/S70screen-cleanup
insserv: enable service ../init.d/screen-cleanup -> /etc/init.d/../rcS.d/S21screen-cleanup
insserv: remove service /etc/init.d/../rcS.d/S13checkroot-bootclean.sh
insserv: enable service ../init.d/checkroot-bootclean.sh -> /etc/init.d/../rcS.d/S08checkroot-bootclean.sh
insserv: remove service /etc/init.d/../rcS.d/S37plymouth-log
insserv: enable service ../init.d/plymouth-log -> /etc/init.d/../rcS.d/S21plymouth-log
insserv: remove service /etc/init.d/../rcS.d/S20kmod
insserv: enable service ../init.d/kmod -> /etc/init.d/../rcS.d/S08kmod
insserv: remove service /etc/init.d/../rcS.d/S99stop-bootlogd-single
insserv: enable service ../init.d/stop-bootlogd-single -> /etc/init.d/../rcS.d/S22stop-bootlogd-single
insserv: remove service /etc/init.d/../rcS.d/S70x11-common
insserv: enable service ../init.d/x11-common -> /etc/init.d/../rcS.d/S21x11-common
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
insserv --dryrun: OK
         Aborting, because the update would likely fail.
         Please check and fix the aforementioned issues.
         (To ignore, set the UCRV variable update42/ignore_insserv to yes)
Error: Update aborted by pre-update script of release 4.2-0
exitcode of univention-updater: 1
ERROR: update failed. Please check /var/log/univention/updater.log

We had some problems with systems which had old init scripts. Thus, we added this check. I think you can simply remove theses scripts.

Hi,

you mean set update42/ignore_insserv to yes?
Or delete something?

Thanks
Sascha

I would remove the initscripts, for example:

mv /etc/init.d/console-screen.sh /root/
mv /etc/init.d/plucs /root/
mv /etc/init.d/portmap /root/
mv /etc/init.d/univention-ad-connector /root/

ok, but how do i tell, which scripts inside /etc/init.d are needed, and which are not?
Seems like quite a radical action to me, not?

thanks
Sascha

If you update from 4.1 to 4.2 you also switch from System V init to systemd-sysv.
The Debian and Univention packages are adjusted for that.
So, moving the old init scripts should be fine.

Please also take a look at our release notes:

whoops…of course you’re right! :slight_smile:
Will do and report!
thanx
Sascha

Mastodon