Nextcloud Setup bricht ab

Hallo zusammen,

auf meinem System läuft UCS 4.1.4 Erata 408, zusätzlich hatte ich vor einiger Zeit bereits Nextcloud parallel zu Owncloud 8.2 installiert, jedoch zwischenzeitlich wieder entfernt aufgrund einiger Bugs.
Diese Probleme sind laut changelog nun im neuesten release gelöst weshalb ich Nextcloud wieder installieren wollte.

Das Setup bricht jedoch ab, im management-console-module-appcenter.log findet sich folgende Ausgabe:

09.04.17 12:36:14.240  MODULE      ( PROCESS ) : Creating data directories for nextcloud...
09.04.17 12:36:14.241  MODULE      ( PROCESS ) : Copying /var/cache/univention-appcenter/nextcloud_20170318012349.schema
09.04.17 12:36:14.274  MODULE      ( PROCESS ) : Registering UCR for nextcloud
09.04.17 12:36:14.275  MODULE      ( PROCESS ) : Marking nextcloud=11.0.2-0 as installed
09.04.17 12:36:14.604  MODULE      ( PROCESS ) : Setting ports for apache proxy
09.04.17 12:36:15.376  MODULE      ( PROCESS ) : Creating /etc/init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :  Adding system startup for /etc/init.d/docker-app-nextcloud ...
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc0.d/K14docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc1.d/K14docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc6.d/K14docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc2.d/S41docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc3.d/S41docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc4.d/S41docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.387  MODULE      ( PROCESS ) :    /etc/rc5.d/S41docker-app-nextcloud -> ../init.d/docker-app-nextcloud
09.04.17 12:36:15.637  MODULE      ( PROCESS ) : Adding localhost to LDAP object
09.04.17 12:36:15.648  MODULE      ( PROCESS ) : Setting overview variables
09.04.17 12:36:15.855  MODULE      ( PROCESS ) : Reloading web server config: apache2.
09.04.17 12:36:16.203  MODULE      ( PROCESS ) : Es wurden 0 B in 0 s geholt (0 B/s)
09.04.17 12:36:16.681  MODULE      ( PROCESS ) : Starting PostgreSQL 9.1 database server: main.
09.04.17 12:36:17.033  MODULE      ( PROCESS ) : Creating database for nextcloud=11.0.2-0
09.04.17 12:36:17.862  MODULE      ( PROCESS ) : Password for nextcloud database in /etc/postgresql-nextcloud.secret
09.04.17 12:36:17.863  MODULE      ( PROCESS ) : Registering schema /usr/share/univention-appcenter/apps/nextcloud/nextcloud.schema
09.04.17 12:36:18.226  MODULE      ( PROCESS ) : Registering the container host nextc-41782257 for nextcloud
09.04.17 12:36:18.417  MODULE      ( PROCESS ) : Verifying Docker registry manifest for app image docker.software-univention.de/nextcloud:11.0.2-0
09.04.17 12:36:18.647  MODULE      ( PROCESS ) : Downloading app image docker.software-univention.de/nextcloud:11.0.2-0
09.04.17 12:36:19.291  MODULE      ( PROCESS ) : Initializing app image
09.04.17 12:36:19.414  MODULE      ( PROCESS ) : Preconfiguring container 7e1565a48b1dea01614afbab64ed13216820f52333b4a3a6e35abde005e87b7d
09.04.17 12:36:20.462  MODULE      ( PROCESS ) : Starting nextcloud Container 7e1565a48b1dea01614afbab64ed13216820f52333b4a3a6e35abde005e87b7d ....
09.04.17 12:36:20.918  MODULE      ( PROCESS ) : ucr cannot be found, falling back to changing the database file directly
09.04.17 12:36:20.927  MODULE      ( PROCESS ) : Executing interface restore_data_before_setup for nextcloud
09.04.17 12:36:20.927  MODULE      ( PROCESS ) : Copying App Center's restore_data_before_setup to container's /usr/share/univention-docker-container-mode/restore_data_before_setup_custom
09.04.17 12:36:21.142  MODULE      ( PROCESS ) : Executing interface setup for nextcloud
09.04.17 12:36:21.143  MODULE      ( PROCESS ) : Copying App Center's setup to container's /usr/share/univention-docker-container-mode/setup_custom
09.04.17 12:36:21.361  MODULE      ( PROCESS ) : An unhandled exception has been thrown:
09.04.17 12:36:21.361  MODULE      ( PROCESS ) : PDOException: SQLSTATE[42P01]: Undefined table: 7 FEHLER:  Relation »oc_appconfig« existiert nicht
09.04.17 12:36:21.361  MODULE      ( PROCESS ) : LINE 1: SELECT * FROM "oc_appconfig"
09.04.17 12:36:21.361  MODULE      ( PROCESS ) :                       ^ in /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104

[...]
09.04.17 12:36:21.369  MODULE      ( PROCESS ) : #30 {main}Error while installing Nextcloud
09.04.17 12:36:21.388  MODULE      ( PROCESS ) : Setup script failed!
09.04.17 12:36:21.388  MODULE      ( PROCESS ) : Aborting...
09.04.17 12:36:21.390  MODULE      ( PROCESS ) : Going to remove Nextcloud (11.0.2-0)

Ich kann mir aktuell keinen Reim darauf machen was genau das Problem ist und wieso das Skript UCR nicht zu finden scheint ?!.

Danke schon mal für eure Hilfe .
Ludwig

Hallo zusammen,

ich konnte das Problem mittlerweile lösen:

Offenbar sind unter “/var/lib/univention-appcenter/apps/nextcloud/conf” Config-Dateien aus einer früheren Installation verblieben bzw. nicht sauber entfernt worden. Das wiederum hat bei der Neuinstallation dazu geführt dass bestimmte Schritte übersprungen wurden was dann zum Abbruch geführt hat.

Lange Rede kurzer Sinn, nachdem ich das “nextcloud” Verzeichnis gelöscht hatte lief die Installation durch.

Beste Grüße,
Ludwig

Mastodon