had to move owncloud 8.0 to another server, experienced some trouble regarding acessibility of files for some users, so I tried to rebuild index by:
php console.php files:scan --all
An unhandled exception has been thrown:
exception 'Doctrine\DBAL\DBALException' with message 'An exception occured in driver: SQLSTATE[HY000]  php_network_getaddresses: getaddrinfo failed: Name or service not known' in lib/private/db/connection.php:33
Regarding this point Manual says "If you’re using MySQL please start your database."
But both MySQL and Owncloud are running. Besides: Since it is a hosted system I cannot restart such services as MySQL, because I only have very limited console access.
php -m says:
Got slightly different PHP-Versions for CLI and Web:
php -v: PHP 5.6.28-he.0
phpinfo: PHP Version 5.6.31-he.0
("he" possibly stands for the hoster "Host Europe")
Might that be the problem?