I tried to use this command (I’m on a Synology box):
sudo -u http php70 ./volume1/web/nextcloud/occ maintenance:mode --off
I get this error message:
An unhandled exception has been thrown: Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /volume1/web/nextcloud/lib/private/DB/Connection.php:64
Find full stack trace here.
Maybe this GitHub issue is related.