I just ran a web based update from 19 to 20 and the updater hung in maintenance mode. Then I ran …
sudo -u www-data php occ -V
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: could not find driver in [path]
I received the same error when trying to disable maintenance mode.
One thing to note is that I upgraded php to 7.4 about a month ago, but NextCloud was running well since then. Anyone encountered this or have any ideas?
please check your php installation. Specially your db driver.
Unfortunately a lot of information to help you is missing.
Please add all necessary information like Nextcloud version, webserver type and version, os version, related log file content.
Without additional information the community members cannot help you.
And also which version you are using on the command line (on top of that config can differ from webserver!).
php -vis your friend, and you sometimes have also specific binaries for each version, e.g. php74 or php7.4
Thanks. I was poking with limited info just to see if it was a common issue. Turns out it was a fairly simple fix. A few missing php packages in my 7.4 install. It was strange that everything was running fine without these packages before the update. Anyway, I’m all set.