Nextcloud join script fails, Problem with a table in postgres?

I worked with UCS 5.2-2 now for some time. I was able to login to the webinterface of the Nextcloud app but I am not sure if the join script for Nextcloud run successfully at that time.

Today I ran all the updates the system was missing. Now I use UCS 5.2-6 with the lates patches and the latest version of Nextcloud. At first everything looked fine. But when I logged in at the univention portal I got the message that the Nextcloud join script should be run (I normally work with the shell).

If I open the webpage for the Nextcloud app this page is empty. The join.log show an error which I think is very special:

Next OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[42P01]: Undefined table: 7 FEHLER:  Relation »oc_appconfig« existiert nicht
LINE 1: ... "appid", "configkey", "configvalue", "type" FROM "oc_appcon...
                                                             ^ in /var/www/html/lib/private/DB/Exceptions/DbalException.php:56
Stack trace:
#0 /var/www/html/lib/private/DB/ConnectionAdapter.php(53): OC\DB\Exceptions\DbalException::wrap()
#1 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(293): OC\DB\ConnectionAdapter->executeQuery()
#2 /var/www/html/lib/private/AppConfig.php(1388): OC\DB\QueryBuilder\QueryBuilder->executeQuery()
#3 /var/www/html/lib/private/AppConfig.php(294): OC\AppConfig->loadConfig()
#4 /var/www/html/lib/private/AppConfig.php(1870): OC\AppConfig->searchValues()
#5 /var/www/html/lib/private/Memcache/Factory.php(122): OC\AppConfig->getAppInstalledVersions()
#6 /var/www/html/lib/private/Memcache/Factory.php(163): OC\Memcache\Factory->getGlobalPrefix()
#7 /var/www/html/lib/private/Server.php(936): OC\Memcache\Factory->createLocking()
#8 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(169): OC\Server->OC\{closure}()
#9 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#10 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(136): Pimple\Container->offsetGet()
#11 /var/www/html/lib/private/ServerContainer.php(154): OC\AppFramework\Utility\SimpleContainer->query()
#12 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(45): OC\ServerContainer->query()
#13 /var/www/html/lib/private/Files/View.php(77): OC\AppFramework\Utility\SimpleContainer->get()
#14 /var/www/html/lib/private/Server.php(423): OC\Files\View->__construct()
#15 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(169): OC\Server->OC\{closure}()
#16 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#17 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(136): Pimple\Container->offsetGet()
#18 /var/www/html/lib/private/ServerContainer.php(154): OC\AppFramework\Utility\SimpleContainer->query()
#19 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(45): OC\ServerContainer->query()
#20 /var/www/html/lib/private/Server.php(1277): OC\AppFramework\Utility\SimpleContainer->get()
#21 /var/www/html/lib/base.php(635): OC\Server->boot()
#22 /var/www/html/lib/base.php(1224): OC::init()
#23 /var/www/html/console.php(31): require_once('...')
#24 /var/www/html/occ(33): require_once('...')
#25 {main}Could not configure Keycloak as Nextcloud Identity Provider
EXITCODE=1
16c7c29d-6924-4713-be33-fa0c77ff8066
univention-join-hooks: looking for hook type "join/post-joinscripts" on u3.b3cz.name
Found hooks:
  

Is it possible to repair this?

Hi @MarkD,

maybe this could help you. Some time ago, i had a fimilar issue with simplesamlphp.

Best regards,
Mirac