call occ with this command: sudo -u www-data php occ
Display error
Expected behaviour
When i run occ i have this error: An unhandled exception has been thrown: OCP\AppFramework\QueryException: Could not resolve CardDavBackend! Class CardDavBackend does not exist in /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php:98 Stack trace: #0 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(113): OC\AppFramework\Utility\SimpleContainer->resolve('CardDavBackend') #1 /var/www/owncloud/apps/dav/appinfo/registercommand.php(36): OC\AppFramework\Utility\SimpleContainer->query('CardDavBackend')_ #2 /var/www/owncloud/lib/private/Console/Application.php(115): require('/var/www/ownclo...') #3 /var/www/owncloud/console.php(105): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 /var/www/owncloud/occ(11): requireonce('/var/www/ownclo...')_
Server configuration
Operating system: Ubuntu Server 16.04.3 LTS
Web server: Apache 2.4.18
Database: MySQL
PHP version: 7.0.22
ownCloud version: ownCloud 10.0.4 (stable)
Updated from an older ownCloud or fresh install: Updated from an older ownCloud
I'm pretty sure you've messed up with the update, that's why the integrity check is crying. Hopefully is something you can recover from, but be careful with what you're doing.
I'm facing the same issue. Yesterday I updated from 9.1.8 to 10.0.7 as described in the docs: - backup database and owncloud software directory - backup data directory (have it outside of software directory) - delete old owncloud software directory - extract new owncloud software to old location - copy config.php from backup to extracted software directory - switch on maintenance mode, occ upgrade.
The docs are not quite good about what to pay attention regarding switch to owncloud market, contacts and calender and so on... but somehow I could manage to get owncloud running again. Calender and Contacts sync also work like expected.
Only issue I currently see is the above mentioned error when I run e.g. occ status
To me this looks like some sort still existing but outdated / old files of a previous installation / version, either on the filesystem or in some sort of cache of PHP, redis or similar.
like @rikidevelop has posted in the initial description. I think this could be another example for having old files staying around on e.g the filesystem.
And i think at least for the register_command.php this is the source of your problem. If i'm downloading https://download.owncloud.org/community/owncloud-10.0.7.tar.bz2 and check the archive or check my local installation of ownCloud 10.0.7 i can't find a register_command.php in apps/dav/appinfo/