Occ Error after Upgrade from 14 -> 15

Hello,

after Upgrade from 14 to 15 i have Problem to use occ.

Example
root@vmd23:/var/www/html/nextcloud# sudo -u www-data php occ db:add-missing-indices
Nextcloud is not installed - only a limited number of commands are available
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the “db” namespace.

Example 2
root@vmd23:/var/www/html/nextcloud# sudo -u www-data php occ db:convert-filecache-bigint
Nextcloud is not installed - only a limited number of commands are available
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the “db” namespace.

But NC is running.
I do not quite understand it.

What amazes me is that the config.php file is empty exceptet:

<?php $CONFIG = array ( 'instanceid' => '123456789', ); Does anyone know a solution? regards zero

If you had a running nextcloud with14, you lost your config.php somewhere in the upgrade process. It should not be empty. Do you have a backup of your 14 installation? Can you still access your database? Maybe a installation from scratch is the best solution. Backup your database and try to use it for the new installation.