UCS 4.3-0: Nach Upgrade PHP mapi extension not found

Hallo @fbartels,

vorerst vielen Dank für die rasche Reaktion.

Glücklicherweise können wir die Release-Aktualisierung von UCS 4.2.x auf 4.3.x mit einem Klon unseres Produktionsservers testen und mit Snapshots arbeiten.

Unsere Ausgangslage ist wie folgt:
Die momentan installierte Version ist 4.2-4 errata425, eine Kopano-Basic-Subscription ist vorhanden.
Die Kopano-Pakete werden direkt vom Kopano Download Server abgeholt, die Konfiguration wurde wie hier beschrieben durchgeführt: https://wiki.z-hub.io/display/K4U/Updating+Kopano+packages+directly+from+the+Kopano+download+server
Version KopanoCore: 8.6.2
Version WebApp: 3.4.16.1565+67.1

Hier die einzelnen Upgrade-Schritte:

  1. Deaktivierung der Kopano-Repositories:
if [ $(ucr get version/version) == "4.2" ]; then
        univention-config-registry set \
        kopano/repo/kopano-core='false' \
        kopano/repo/kopano-webapp='false' \
        kopano/repo/kopano-files='false' \
        kopano/repo/kopano-mdm='false' \
        kopano/repo/kopano-smime='false' \
        kopano/repo/kopano-webmeetings='false' \
        kopano/repo/z-push-kopano='false'
fi
  1. Hinzufügen der UCS 4.3 Repositories in /etc/apt/sources.list
deb https://updates.software-univention.de/4.3/maintained/ 4.3-0/all/
deb https://updates.software-univention.de/4.3/maintained/ 4.3-0/amd64/
deb https://updates.software-univention.de/4.3/maintained/ 4.3-1/all/
deb https://updates.software-univention.de/4.3/maintained/ 4.3-1/amd64/

Danach “apt-get update” durchgeführt

  1. Start des Release-Updates via UCS-Web-Console.
    Nach Neustart des Servers wird als installierte Version 4.3-1 errata145 angezeigt.
    Webapp liefert den bekannten “PHP mapi Error”.

  2. Entferung der UCS 4.3 Einträge aus /etc/apt/sources.list und Aktivierung der Kopano-Repositories:

if [ $(ucr get version/version) == "4.3" ]; then
        univention-config-registry set \
        kopano/repo/kopano-core='true' \
        kopano/repo/kopano-webapp='true' \
        kopano/repo/kopano-files='true' \
        kopano/repo/kopano-mdm='true' \
        kopano/repo/kopano-smime='true' \
        kopano/repo/kopano-webmeetings='true' \
        kopano/repo/z-push-kopano='true'
fi

Server neu gestartet.

  1. Paketaktualisierung gestartet, es befinden sich darunter keine Kopano-Pakete - alles OK, keine Errors.

  2. Nach der Paket-Aktualisierung werden in App Center-Aktualisierungen folgende angezeigt:
    Kopano Core: Version 8.4.5.0 kann auf 8.6.2.1 aktualisiert werden
    Kopano WebApp: Version 3.4.2.1108 kann auf 3.4.15.1513 aktualisiert werden
    Z-Push for Kopano: Version 2.3.8 kann auf 2.4.2 aktualisiert werden

“dpkg -l | grep php” liefert:

ii  libapache2-mod-php5                                 5.6.33+dfsg-0+deb8u1                             amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  libapache2-mod-php7.0                               7.0.27-0+deb9u1                                  amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php                                                 1:7.0+49                                         all          server-side, HTML-embedded scripting language (default)
ii  php-cgi                                             1:7.0+49                                         all          server-side, HTML-embedded scripting language (CGI binary) (default)
ii  php-common                                          1:49                                             all          Common files for PHP packages
ii  php-gettext                                         1.0.12-0.1                                       all          transitional dummy package for php-php-gettext
ii  php-kopano-smime                                    1.0.00+1.1                                       amd64        PHP Kopano SMIME Extension extends the php-openssl functions.
ii  php-krb5                                            1.1.2-4A~4.3.0.201802091342                      amd64        krb5 module for PHP
ii  php-ldap                                            1:7.0+49                                         all          LDAP module for PHP [default]
ii  php-mbstring                                        1:7.0+49                                         all          MBSTRING module for PHP [default]
ii  php-mcrypt                                          1:7.0+49                                         all          libmcrypt module for PHP [default]
ii  php-memcache                                        3.0.9~20160311.4991c2f-5                         amd64        memcache extension module for PHP
ii  php-pear                                            1:1.10.1+submodules+notgz-9                      all          PEAR Base System
ii  php-php-gettext                                     1.0.12-0.1                                       all          read gettext MO files directly, without requiring anything other than PHP
ii  php-smbclient                                       0.9.0-1+47.1                                     amd64        libsmbclient-php is a PHP extension that uses Samba's libsmbclient
ii  php-soap                                            1:7.0+49                                         all          SOAP module for PHP [default]
ii  php-xml                                             1:7.0+49                                         all          DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii  php5                                                5.6.33+dfsg-0+deb8u1                             all          server-side, HTML-embedded scripting language (metapackage)
ii  php5-cgi                                            5.6.33+dfsg-0+deb8u1                             amd64        server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                                            5.6.33+dfsg-0+deb8u1                             amd64        command-line interpreter for the php5 scripting language
ii  php5-common                                         5.6.33+dfsg-0+deb8u1                             amd64        Common files for packages built from the php5 source
ii  php5-curl                                           5.6.33+dfsg-0+deb8u1                             amd64        CURL module for php5
ii  php5-enchant                                        5.6.33+dfsg-0+deb8u1                             amd64        Enchant module for php5
rc  php5-gmp                                            5.6.33+dfsg-0+deb8u1                             amd64        GMP module for php5
ii  php5-json                                           1.3.6-1                                          amd64        JSON module for php5
rc  php5-ldap                                           5.6.33+dfsg-0+deb8u1                             amd64        LDAP module for php5
ii  php5-mapi                                           8.6.2.1-0+5.3                                    amd64        PHP bindings for MAPI
rc  php5-mcrypt                                         5.6.33+dfsg-0+deb8u1                             amd64        MCrypt module for php5
rc  php5-memcache                                       3.0.8-5                                          amd64        memcache extension module for PHP5
ii  php7.0                                              7.0.27-0+deb9u1                                  all          server-side, HTML-embedded scripting language (metapackage)
ii  php7.0-cgi                                          7.0.27-0+deb9u1                                  amd64        server-side, HTML-embedded scripting language (CGI binary)
ii  php7.0-cli                                          7.0.27-0+deb9u1                                  amd64        command-line interpreter for the PHP scripting language
ii  php7.0-common                                       7.0.27-0+deb9u1                                  amd64        documentation, examples and common module for PHP
ii  php7.0-json                                         7.0.27-0+deb9u1                                  amd64        JSON module for PHP
ii  php7.0-ldap                                         7.0.27-0+deb9u1                                  amd64        LDAP module for PHP
ii  php7.0-mbstring                                     7.0.27-0+deb9u1                                  amd64        MBSTRING module for PHP
ii  php7.0-mcrypt                                       7.0.27-0+deb9u1                                  amd64        libmcrypt module for PHP
ii  php7.0-opcache                                      7.0.27-0+deb9u1                                  amd64        Zend OpCache module for PHP
ii  php7.0-readline                                     7.0.27-0+deb9u1                                  amd64        readline module for PHP
ii  php7.0-soap                                         7.0.27-0+deb9u1                                  amd64        SOAP module for PHP
ii  php7.0-xml                                          7.0.27-0+deb9u1                                  amd64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii  simplesamlphp                                       1.14.11-1+deb9u1A~4.3.0.201803051034             all          Authentication and federation application supporting several protocols
ii  univention-saml                                     5.0.4-19A~4.3.0.201805241344                     all          Integrates simpleSAMLphp Identity Provider into UCS
ii  univention-saml-schema                              5.0.4-19A~4.3.0.201805241344                     all          UCS simpleSAMLphp ldap integration

php7-mapi befindet sich nicht darunter.

  1. Update Kopano Core:
    Folgende Pakete werden installiert bzw. aktualisiert:
    kopano4ucs
    kopano4ucs-lib
    kopano4ucs-schema
    kopano4ucs-udm

Das Core-Update konnte problemlos durchgeführt werden.

  1. Update Kopano WebApp:
    Folgende Pakete werden installiert bzw. aktualisiert:
    kopano-webapp-plugin-desktopnotifications
    kopano-webapp-plugin-files
    kopano-webapp-plugin-filesbackend-owncloud
    kopano-webapp-plugin-filesbackend-smb
    kopano-webapp-plugin-mdm
    kopano-webapp-plugin-smime
    php-enchant
    php-kopano-smime
    php7.0-bcmath
    php7.0-curl
    php7.0-enchant
    Die Aktion führt bei folgenden Paketen zu nicht automatisch behebbaren Problemen:
    kopano4ucs-webapp

Die Aktualisierung wird leider abgebrochen.

  1. Das Update “Z-Push for Kopano” lässt sich problemlos durchführen.

Ein “univention-install kopano4ucs-webapp” via CLI liefert:

The following packages have unmet dependencies:
 kopano4ucs-webapp : Depends: php7-mapi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt show php7-mapi -a:

Package: php7-mapi
Version: 8.6.2.1-0+5.1
Priority: optional
Section: php
Source: kopano
Maintainer: Kopano Development <development@kopano.io>
Installed-Size: 797 kB
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libkcfreebusy0, libkcicalmapi0, libkcinetmapi0, libkcmapi0, libkcutil0, libmapi1, libstdc++6 (>= 5.2), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4), phpapi-20151012, kopano-client (= 8.6.2.1-0+5.1), kopano-contacts (= 8.6.2.1-0+5.1)
Download-Size: 170 kB
APT-Sources: https://appcenter.software-univention.de/univention-repository/4.3/maintained/component kopano-core_20180614141952/amd64/ Packages
Description: PHP bindings for MAPI
 Using this module, you can create PHP programs which use MAPI calls
 to interact with Kopano.

Package: php7-mapi
Version: 8.5.9.0-0+7.1
Priority: optional
Section: php
Source: kopano
Maintainer: Kopano Development <development@kopano.io>
Installed-Size: 797 kB
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libkcfreebusy0, libkcicalmapi0, libkcinetmapi0, libkcmapi0, libkcutil0, libmapi1, libstdc++6 (>= 5.2), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4), phpapi-20151012, kopano-client (= 8.5.9.0-0+7.1), kopano-contacts (= 8.5.9.0-0+7.1)
Replaces: php5-mapi
Download-Size: 170 kB
APT-Sources: https://appcenter.software-univention.de/univention-repository/4.3/maintained/component z-push-kopano_20180604171139/amd64/ Packages
Description: PHP bindings for MAPI
 Using this module, you can create PHP programs which use MAPI calls
 to interact with Kopano.

Package: php7-mapi
Version: 8.4.5.0-0+33.2
Priority: optional
Section: php
Source: kopano
Maintainer: Kopano Development <development@kopano.io>
Installed-Size: 797 kB
Depends: libc6 (>= 2.17), libgcc1 (>= 1:3.0), libkcfreebusy0, libkcicalmapi0, libkcinetmapi0, libkcmapi0, libkcutil0, libmapi1, libstdc++6 (>= 5.2), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4), phpapi-20151012, kopano-client (= 8.4.5.0-0+33.2), kopano-contacts (= 8.4.5.0-0+33.2)
Download-Size: 170 kB
APT-Sources: https://appcenter.software-univention.de/univention-repository/4.3/maintained/component kopano-webapp_20170530164135/amd64/ Packages
Description: PHP bindings for MAPI
 Using this module, you can create PHP programs which use MAPI calls
 to interact with Kopano.

Weitere Infos liefere ich noch gerne nach.