Recently updated to php8 and up to 27.01R2 and Nextcloud has been working fine and still does.
When checking overview it tells me that some db-indices need updating - no problem have done this many times before, but this time I get an error:
root@cloud:/var/www/html/nextcloud# sudo -u www-data php occ db:add-missing-indices
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/html/nextcloud/lib/private/DB/Connection.php:140
There’s a long stack trace thereafter. Any ideas how to remedy this problem, it originally started to happen with the RC1 update but I thought it may be a bug.
Did you check on GitHub if there is already an issue for it?
I mean that’s what beta versions and RC versions are for, to test and report bugs to the developers before the official release.
Spoiler Alert: I’m also gettiing this warning on my test system (RC1), and I executed occ db:add-missing-indices multiple times, but the warning didn’t go away. However, I had neither the time nor the motivation to look into it any further.