Can not use Nextcloud Desktop Client

I recently installed Nextcloud 14.0.6 on an Ubuntu 18.04 server. The MariaDB seems to be working correctly, I can access files via the web interface and using davs://$server/nextcloud/remote.php/webdav.

For syncing my files, I installed the desktop client locally (nextcloud-client/bionic,now 2.5.1-20181204.111806~bionic1 amd64) on my Ubuntu 18.04 via apt. When I try to connect to http://$server/nextcloud, it always says “Internal Server Error”.

The error.log from apache2 contains:

93.193.67.23 - - [25/Jan/2019:15:26:04 +0100] “PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1” 405 6501 “-” “-”
37.4.248.218 - - [25/Jan/2019:15:26:13 +0100] “GET /nextcloud//index.php/login/flow HTTP/1.1” 302 515 “-” “Mozilla/5.0 (Linux) mirall/2.5.1git (Nextcloud)”
37.4.248.218 - - [25/Jan/2019:15:26:13 +0100] “GET /nextcloud//index.php/login/flow HTTP/1.1” 500 5482 “-” “Mozilla/5.0 (Linux) mirall/2.5.1git (Nextcloud)”
37.4.248.218 - - [25/Jan/2019:15:26:13 +0100] “GET /nextcloud//index.php/js/core/merged-template-prepend.js?v=2b7c81da-0 HTTP/1.1” 500 5482 “-” “Mozilla/5.0 (Linux) mirall/2.5.1git (Nextcloud)”
37.4.248.218 - - [25/Jan/2019:15:26:14 +0100] “GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 1354 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64

This seems to me like there is somewhere a wrong config for owncloud (which was installed before an upgrade of the server). But unfortunately, it does not seem to be in config.php:

<?php $CONFIG = array ( 'instanceid' => '***', 'passwordsalt' => '***', 'secret' => '***', 'trusted_domains' => array ( 0 => '***', 1 => '***', ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '14.0.6.0', 'overwrite.cli.url' => 'http://localhost', 'dbname' => '***', 'dbhost' => '***', 'dbport' => '***', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => '***', 'dbpassword' => '***', 'installed' => true, );

and I did not find anything interesting via

sudo -u www-data php /var/www/nextcloud/occ config:list | grep own

Furthermore, I started searching all folders with fgrep -r “owncloud/remote” *. In core/js/tests/specs/files/clientSpec.js and core/js/tests/specs/oc-backbone-webdavSpec.js there where some owncloud-entries found, but replacing them did not solve the problem.

Is there any way I could further debug this issue?