[Solved] UCS 4.4-1 update fails on OPSI server

opsi

#1

Hello @all,

we have a virtual server holding our opsi installation. It’s update to UCS 4.4-1 via command line fails with this message:

Checking for release updates: The update to UCS 4.4 is blocked because the component 'opsi_20190109143503' is marked as required.

The update.log says:

Starting univention-upgrade. Current UCS version is 4.4-0 errata186

Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                          2019-07-21 15:07:37,776 ERROR:updater.Updater:Missing component opsi_20190109143503
none

Any explanation is welcome. :slight_smile:

Best greets,

Mario Minati


#2

You should check for a update of opsi. “opsi_20190109143503” seems to be quite old.

But maybe there is only some old repository active. What’s the output of

ucr search --brief component

?


#3

Hello @SirTux,

I thought calling univention-upgrade installs all available updates, even for apps from the app store.

The reuslts are:

# ucr search --brief component
repository/online/component/.*/clean: <empty>
repository/online/component/.*/description: <empty>
repository/online/component/.*/localmirror: <empty>
repository/online/component/.*/password: <empty>
repository/online/component/.*/port: <empty>
repository/online/component/.*/prefix: <empty>
repository/online/component/.*/server: <empty>
repository/online/component/.*/unmaintained: <empty>
repository/online/component/.*/username: <empty>
repository/online/component/.*/version: <empty>
repository/online/component/.*: <empty>
repository/online/component/4.1-0-errata/description: Errata updates for UCS 4.1-0
repository/online/component/4.1-0-errata/localmirror: true
repository/online/component/4.1-0-errata/version: 4.1
repository/online/component/4.1-0-errata: false
repository/online/component/4.1-1-errata/description: Errata updates for UCS 4.1-1
repository/online/component/4.1-1-errata/localmirror: true
repository/online/component/4.1-1-errata/version: 4.1
repository/online/component/4.1-1-errata: false
repository/online/component/4.1-2-errata/description: Errata updates for UCS 4.1-2
repository/online/component/4.1-2-errata/localmirror: true
repository/online/component/4.1-2-errata/version: 4.1
repository/online/component/4.1-2-errata: false
repository/online/component/4.1-3-errata/description: Errata updates for UCS 4.1-3
repository/online/component/4.1-3-errata/localmirror: true
repository/online/component/4.1-3-errata/version: 4.1
repository/online/component/4.1-3-errata: false
repository/online/component/4.1-4-errata/description: Errata updates for UCS 4.1-4
repository/online/component/4.1-4-errata/localmirror: true
repository/online/component/4.1-4-errata/version: 4.1
repository/online/component/4.1-4-errata: false
repository/online/component/4.1-5-errata/description: Errata updates for UCS 4.1-5
repository/online/component/4.1-5-errata/version: 4.1
repository/online/component/4.1-5-errata: enabled
repository/online/component/4.2-0-errata/description: Errata updates for UCS 4.2-0
repository/online/component/4.2-0-errata/localmirror: true
repository/online/component/4.2-0-errata/version: 4.2
repository/online/component/4.2-0-errata: false
repository/online/component/4.2-1-errata/description: Errata updates for UCS 4.2-1
repository/online/component/4.2-1-errata/localmirror: true
repository/online/component/4.2-1-errata/version: 4.2
repository/online/component/4.2-1-errata: false
repository/online/component/4.2-2-errata/description: Errata updates for UCS 4.2-2
repository/online/component/4.2-2-errata/localmirror: true
repository/online/component/4.2-2-errata/version: 4.2
repository/online/component/4.2-2-errata: false
repository/online/component/4.2-3-errata/description: Errata updates for UCS 4.2-3
repository/online/component/4.2-3-errata/localmirror: true
repository/online/component/4.2-3-errata/version: 4.2
repository/online/component/4.2-3-errata: false
repository/online/component/4.2-4-errata/description: Errata updates for UCS 4.2-4
repository/online/component/4.2-4-errata/localmirror: true
repository/online/component/4.2-4-errata/version: 4.2
repository/online/component/4.2-4-errata: false
repository/online/component/4.2-5-errata/description: Errata updates for UCS 4.2-5
repository/online/component/4.2-5-errata/version: 4.2
repository/online/component/4.2-5-errata: enabled
repository/online/component/4.3-0-errata/description: Errata updates for UCS 4.3-0
repository/online/component/4.3-0-errata/localmirror: true
repository/online/component/4.3-0-errata/version: 4.3
repository/online/component/4.3-0-errata: false
repository/online/component/4.3-1-errata/description: Errata updates for UCS 4.3-1
repository/online/component/4.3-1-errata/localmirror: true
repository/online/component/4.3-1-errata/version: 4.3
repository/online/component/4.3-1-errata: false
repository/online/component/4.3-2-errata/description: Errata updates for UCS 4.3-2
repository/online/component/4.3-2-errata/localmirror: true
repository/online/component/4.3-2-errata/version: 4.3
repository/online/component/4.3-2-errata: false
repository/online/component/4.3-3-errata/description: Errata updates for UCS 4.3-3
repository/online/component/4.3-3-errata/localmirror: true
repository/online/component/4.3-3-errata/version: 4.3
repository/online/component/4.3-3-errata: false
repository/online/component/4.4-0-errata/description: Errata updates for UCS 4.4-0
repository/online/component/4.4-0-errata/version: 4.4
repository/online/component/4.4-0-errata: enabled
repository/online/component/opsi_20190109143503/description: opsi - Client Management
repository/online/component/opsi_20190109143503/localmirror: false
repository/online/component/opsi_20190109143503/server: https://appcenter.software-univention.de
repository/online/component/opsi_20190109143503/version: current
repository/online/component/opsi_20190109143503: enabled
repository/online/component/prometheus-node-exporter_20181119120420/description: UCS Dashboard Client
repository/online/component/prometheus-node-exporter_20181119120420/localmirror: false
repository/online/component/prometheus-node-exporter_20181119120420/server: https://appcenter.software-univention.de
repository/online/component/prometheus-node-exporter_20181119120420/version: current
repository/online/component/prometheus-node-exporter_20181119120420: enabled

Thanks for your help :slight_smile:

Best greets,

Mario


#4

Strange. How do have done the upgrade to UCS 4.4? The upgrade should have been blocked by opsi_20190109143503.


#5

We just ran univention-upgrade --ignoressh in a screen session within a ssh connection.


#6

If i remember correctly that OPSI version was removed shortly after the UCS 4.4 release. The repository is not detected as an active app, and the app center cannot update the configuration correctly, blocking the update. univention-app info should show that opsi is currently not installed, although the packages are installed on the server.

In that case, deactivate the old app component and install the first opsi app version for 4.4 (you will see an available app update afterwards):

ucr set repository/online/component/opsi_20190109143503=disabled
univention-app install opsi=4.1.1.9-4

Now it should be possible to update your UCS version.


#7

Hello @damrose,

that did it! Thanks a lot.

Best greets,

Mario