Durch Paketupdate LDAP kaputt

Hallo,

ich war gerade mutig und habe einfach mal bei den Paketupdates auf “installieren” geklickt.
Sah ja nicht nach was Schlimmen aus.

Nach dem Update kam ich nicht mehr auf mein Kopano-Konto.
Im Univention habe ich gesehen, dass die User noch da waren, aber das LDAP Schema muss sich geändert haben, weil bei den Kopano-Eigenschaften nicht mehr das Feld da war, um auszuwählen, ob es sich bei dem Nutzer um einen Kopano-Admin, Benutzer oder sonstiges handelt.

Das sollte alles aktualisiert werden

  firefox-esr kopano-webapp kopano-webapp-plugin-folderwidgets
  kopano-webapp-plugin-titlecounter kopano-webapp-plugin-webappmanual libgd3
  libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5sql5 libqt5sql5-mysql
  libqt5sql5-sqlite libqt5test5 libqt5widgets5 libqt5xml5 libsmbclient
  libwbclient0 php-pear python-samba python-univention-lib
  qt5-gtk-platformtheme samba samba-common samba-common-bin samba-dsdb-modules
  samba-libs samba-vfs-modules shell-univention-lib smbclient
  univention-directory-listener univention-directory-notifier
  univention-errata-level univention-join univention-ldap-acl-master
  univention-ldap-client univention-ldap-config univention-ldap-server
  univention-management-console-module-diagnostic
  univention-management-console-module-join
  univention-management-console-module-updater univention-nagios-client
  univention-nagios-common univention-updater winbind

Als Fehler konnte ich das hier sehen:

Stopping slapd (via systemctl): slapd.service.
2019-02-13 22:31:10.683697302+01:00 (in joinscript_init)
Module: kopano-cfg
Multifile: /etc/ldap/slapd.conf
CRITICAL:__main__:Error in OpenLDAP configuration:
5c648cae /etc/ldap/slapd.conf: line 206: rootdn is always granted unlimited privileges.
5c648cae WARNING: No dynamic config support for overlay translog.
5c648cae WARNING: No dynamic config support for overlay shadowbind.
5c648cae mdb_db_open: database "cn=translog" cannot be opened: No such file or directory (2). Restore from backup!
5c648cae backend_startup_one (type=mdb, suffix="cn=translog"): bi_db_open failed! (2)
slap_startup failed (test would succeed using the -u switch)

Was ist da kaputt?

Hallo,

an dem Update kann es nicht liegen. Ich habe eine Rücksicherung von vor dem Update gemacht und es lief auch nicht.
Ich habe eine Sicherung von vorgestern zurückgespielt. Da geht noch alles. Ich dachte mir, dass ich mal die Kopano-Apps neu installiere.

Da erhalte ich allerdings eine Fehlermeldung beim Installieren von Kopano-Core (aus dem appcenter.log):

 18720 packages                         19-02-14 01:07:06 [    INFO]: Paketlisten werden gelesen...
 18720 actions.install                  19-02-14 01:07:06 [   DEBUG]: Component kopano-core_20181112170522 unregistered
 18720 actions.install                  19-02-14 01:07:06 [    INFO]: The following packages are BROKEN:
 18720 actions.install                  19-02-14 01:07:06 [    INFO]:  * kopano4ucs

Ist das ein allgemeines Problem?

LG

René

Hallo @rsb2010,

bitte gibt uns ein paar mehr Informationen über dein System:

https://wiki.z-hub.io/display/K4U/Debugging+Kopano+on+Univention

Hier die Infos:

root@mail:~# dpkg -l | grep -w 'kopano4ucs\|kopano-server-packages\|kopano-webapp\|z-push-kopano'
ii  kopano-webapp                                       3.5.1.2106+86.1                                  all          New and improved WebApp for Kopano
ii  kopano-webapp-plugin-desktopnotifications           2.0.2.23+27.1                                    all          Kopano WebApp Desktop notifications plugin
ii  kopano-webapp-plugin-filepreviewer                  2.1.0.26+19.1                                    all          Kopano File previewer plugin
ii  kopano-webapp-plugin-files                          2.1.5.305+202.1                                  all          Adds Files functionality to Kopano enabling access to WebDAV and other files backends.
ii  kopano-webapp-plugin-filesbackend-owncloud          2.1.1.86+63.1                                    all          Adds Owncloud specific functionality to Kopano Files plugin.
ii  kopano-webapp-plugin-filesbackend-smb               2.1.1.49+50.1                                    all          Adds Samba specific functionality to Kopano Files plugin.
ii  kopano-webapp-plugin-folderwidgets                  3.5.1.2106+86.1                                  all          Kopano WebApp folder widgets plugin
ii  kopano-webapp-plugin-intranet                       0.1+8.1                                          all          This plugin adds one or more buttons in the top menu bar which can be used to open a webpage inside Kopano WebApp.
ii  kopano-webapp-plugin-mattermost                     0.1+2.1                                          all          Integrates Mattermost into WebApp
ii  kopano-webapp-plugin-mdm                            2.1.0.97+33.1                                    all          Kopano WebApp MDM plugin
ii  kopano-webapp-plugin-meetings                       3.0.5.0                                          all          Kopano WebApp Meetings Plugin
ii  kopano-webapp-plugin-smime                          2.2.1.223+22.1                                   all          Kopano WebApp S/MIME plugin
ii  kopano-webapp-plugin-spell                          2.0.0.19+36.1                                    all          Kopano WebApp Spellchecker plugin
ii  kopano-webapp-plugin-spell-de-de                    2.0.0.3+22.3                                     all          Kopano WebApp Spellchecker German dictionary plugin
ii  kopano-webapp-plugin-spell-en                       2.0.0.1+22.2                                     all          Kopano WebApp Spellchecker English dictionary plugin
ii  kopano-webapp-plugin-spell-nl                       2.0.0.1+23.2                                     all          Kopano WebApp Spellchecker Dutch dictionary plugin
ii  kopano-webapp-plugin-titlecounter                   3.5.1.2106+86.1                                  all          Kopano WebApp Titlecounter plugin
ii  kopano-webapp-plugin-webappmanual                   3.5.1.2106+86.1                                  all          Kopano WebApp Manual plugin
rc  kopano4ucs                                          1.5.13                                           all          Kopano4ucs integration package for Univention Corporate Server
ii  kopano4ucs-lib                                      1.5.13                                           all          Library package for common Kopano4ucs functions
ii  kopano4ucs-schema                                   1.5.13                                           all          LDAP schema for the Kopano4ucs integration
ii  kopano4ucs-udm                                      1.5.13                                           all          UDM extensions for the Kopano4ucs integration
ii  kopano4ucs-webapp                                   1.5.13                                           all          Kopano4ucs kopano-webapp integration package for Univention Corporate Server
ii  kopano4ucs-z-push                                   1.4.18                                           all          Meta package for Z-Push installation
ii  z-push-kopano                                       2.4.5+0-0                                        all          Z-Push for Kopano
ii  z-push-kopano-gabsync                               2.4.5+0-0                                        all          GAB sync for Kopano

root@mail:~# univention-app info
UCS: 4.3-3 errata411
Installed: benno-mailarchiv=2.4.6 dhcp-server=12.0 fetchmail=6.3.26 kopano-webapp=3.4.22.1782 kopano-webmeetings=3.0.1.100 letsencrypt=1.2.2-3 pkgdb=11.0 samba4=4.7 self-service=3.0 z-push-kopano=2.4.4 4.2/owncloud=10.0.10-2018-09-07
Upgradable: benno-mailarchiv letsencrypt

Und das hier noch zum Beispiel:

Jan 30 16:33:19 mail systemd[1]: Started Kopano Groupware Core Storage Server.
-- Reboot --
Feb 14 00:15:57 mail systemd[1]: Started Kopano Groupware Core Storage Server.
-- Reboot --
Feb 14 00:45:59 mail systemd[1]: Started Kopano Groupware Core Storage Server.
Feb 14 08:14:55 mail systemd[1]: Stopping Kopano Groupware Core Storage Server...
Feb 14 08:15:02 mail kopano-server[1575]: Error in my_thread_global_end(): 36 threads didn't exit
Feb 14 08:15:02 mail systemd[1]: Stopped Kopano Groupware Core Storage Server.

Ich hatte ja zwischenzeitlich eine Rücksicherung von vorgestern gemacht. Da lief erstmal alles und heute Morgen schon wieder das gleiche Phänomen.

Was mir aufgefallen ist:
Im LDAP vom UCS fehlen unter den Eigenschaften “Kopano” für den Nutzer immernoch die Einstellmöglichkeiten, ob es ein Kopano-Admin etc. ist.

Außerdem zeigt das Log /var/log/kopano/server.log folgendes:

Thu Feb 14 08:26:05 2019: [warning] LDAP (simple) bind on cn=mail,cn=dc,cn=computers,dc=irrsinn,dc=local failed: Invalid credentials
Thu Feb 14 08:26:05 2019: [crit   ] Cannot instantiate user plugin: Failure connecting any of the LDAP servers
Thu Feb 14 08:26:05 2019: [crit   ] Unable to instantiate user plugin
Thu Feb 14 08:26:05 2019: [warning] LDAP (simple) bind on cn=mail,cn=dc,cn=computers,dc=irrsinn,dc=local failed: Invalid credentials
Thu Feb 14 08:26:05 2019: [crit   ] Cannot instantiate user plugin: Failure connecting any of the LDAP servers
Thu Feb 14 08:26:05 2019: [crit   ] Unable to instantiate user plugin

Hallo,

ich habe den Fehler gefunden. Das machine.secret Passwort, was sich wohl jeden Monat ändert, hat sich nicht im kopano-ldap.secret geändert. Das sollte mal überprüft werden.

Nach der manuellen Eingabe lief alles wieder.

Das ist nicht die Ursache, sondern eines der Symptome. In der Ausgabe von univention-app info fehlt “kopano-core” und auch kopano4ucs und kopano-server-packages sind nicht installiert. Es gibt schon ein paar andere Topics dazu hier im Forum. Eigentlich sollten inzwischen alle Paketabhängigkeiten auf 4.3 erfüllbar sein.

Was ist die Ausgabe von

univention-app register kopano-core --do-it
apt-get update
apt-get -s -o Debug::pkgProblemResolver=yes install kopano4ucs  
apt-get -s -o Debug::pkgProblemResolver=yes install kopano-server-packages
root@mail:~# univention-app register kopano-core --do-it
Registering component for kopano-core=8.6.8.2
Creating data directories for kopano-core...
Registering UCR for kopano-core
Marking kopano-core=8.6.8.2 as installed
Adding localhost to LDAP object
File: /usr/share/univention-management-console/modules/apps.xml

Module: kopano-cfg

File: /usr/share/univention-management-console/i18n/de/apps.mo

File: /etc/apt/apt.conf.d/55user_agent

root@mail:~# apt-get -s -o Debug::pkgProblemResolver=yes install kopano4ucs
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) kopano4ucs:amd64 < none -> 1.5.13 @rc puN Ib >
Broken kopano4ucs:amd64 Hängt ab von on kopano-server-packages:amd64 < none | 8.6.8.10-0+23.1 @un uH >
  Considering kopano-server-packages:amd64 1 as a solution to kopano4ucs:amd64 9999
    Reinst Failed early because of kopano-backup:amd64
Done
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 kopano4ucs : Hängt ab von: kopano-server-packages soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

root@mail:~# apt-get -s -o Debug::pkgProblemResolver=yes install kopano-server-packages
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) kopano-server-packages:amd64 < none -> 8.6.8.10-0+23.1 @un puN Ib >
Broken kopano-server-packages:amd64 Hängt ab von on kopano-backup:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-backup:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-dagent:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-dagent:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-gateway:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-gateway:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-ical:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-ical:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-monitor:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-monitor:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-search:amd64 < 8.6.9.0-0+24.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-search:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-server:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-server:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-spooler:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-spooler:amd64 -2 as a solution to kopano-server-packages:amd64 9999
Broken kopano-server-packages:amd64 Hängt ab von on kopano-utils:amd64 < 8.7.0.0-0+1.1 @ii gK > (= 8.6.8.10-0+23.1)
  Considering kopano-utils:amd64 -1 as a solution to kopano-server-packages:amd64 9999
Done
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 kopano-server-packages : Hängt ab von: kopano-backup (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-dagent (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-gateway (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-ical (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-monitor (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-search (= 8.6.8.10-0+23.1) aber 8.6.9.0-0+24.1 soll installiert werden
                          Hängt ab von: kopano-server (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-spooler (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
                          Hängt ab von: kopano-utils (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

I have just rolled out a fresh test system and had initially the same problem. The reason for it was missing python3-xapian, which is part of the app repository.

root@ucs-3981 ~
$ apt-get -s -o Debug::pkgProblemResolver=yes install python3-xapian
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-xapian is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-xapian' has no installation candidate

Looking a bit further it turned out I got some “could not resolve host” messages when updating apt, and therefore this package was unknown to the local package manager:

root@ucs-3981 ~
$ apt update
Err:1 https://updates.software-univention.de/4.0/maintained 4.0-0/all/ InRelease
  Could not resolve host: updates.software-univention.de

I ended up restarting the machine and afterwards could update my package lists and therefore also kopano.

Bei mir wird ja alles richtig aufgelöst.

Was mich wundert ist die Ausgabe:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:

kopano-server-packages : Hängt ab von: kopano-backup (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-dagent (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-gateway (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-ical (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-monitor (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-search (= 8.6.8.10-0+23.1) aber 8.6.9.0-0+24.1 soll installiert werden
Hängt ab von: kopano-server (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-spooler (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
Hängt ab von: kopano-utils (= 8.6.8.10-0+23.1) aber 8.7.0.0-0+1.1 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

Ich habe ja die Kopano Repos mal eingebunden.
Mache ich ein kopano-admin -V, erhalte ich bereits die Version 8.7.0

Was mich auch wundert ist, dass es kein kopano-cli mehr auf meinem System gibt.

Wenn ich mir im AppCenter anschaue, ob Kopano-core installiert ist, erhalte ich folgendes Bild:

53

Kopano-Core ist wohl nicht installiert, aber dann doch.

Then I don’t have an idea what is wrong on your system. Could you get in contact with our support so they can have a direct look?

Mastodon