Nextcloud version: 29.0.6.1
Operating system and version: Ubuntu 22.04.4
Apache or nginx version: 2.4.62
PHP version: 8.3.11
PHP 8.3.11 (cli) (built: Aug 30 2024 09:27:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.11, Copyright (c) Zend Technologies
with Zend OPcache v8.3.11, Copyright (c), by Zend Technologies
After upgrade to Nextcloud 29.0.6.1 get this error message:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Yesterday I first ran apt-get upgrade/dist-upgrade. The I upgraded nextcloud step by step from 26 (I think) to 29. Everything seemed fine at first. After upgrading to 29.0.6.1 I could even view the admin page normally. But today morning I got the error message mentioned above. I did not change anything in between.
Nextcloud Logs:
{
"reqId": "keels8i0AVrPOdXvtqvY",
"level": 3,
"time": "2024-09-05T08:35:01+00:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "Failed to connect to the database: An exception occurred in the driver: could not find driver",
"userAgent": "--",
"version": "29.0.6.1",
"exception": {
"Exception": "Doctrine\\DBAL\\Exception",
"Message": "Failed to connect to the database: An exception occurred in the driver: could not find driver",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 453,
"function": "connect",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 411,
"function": "getDatabasePlatformVersion",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 318,
"function": "detectDatabasePlatform",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/DB/ConnectionAdapter.php",
"line": 200,
"function": "getDatabasePlatform",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line": 121,
"function": "getDatabasePlatform",
"class": "OC\\DB\\ConnectionAdapter",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppConfig.php",
"line": 1239,
"function": "expr",
"class": "OC\\DB\\QueryBuilder\\QueryBuilder",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppConfig.php",
"line": 264,
"function": "loadConfig",
"class": "OC\\AppConfig",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppConfig.php",
"line": 1380,
"function": "searchValues",
"class": "OC\\AppConfig",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/App/AppManager.php",
"line": 131,
"function": "getValues",
"class": "OC\\AppConfig",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/App/AppManager.php",
"line": 152,
"function": "getInstalledAppsValues",
"class": "OC\\App\\AppManager",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/legacy/OC_App.php",
"line": 234,
"function": "getInstalledApps",
"class": "OC\\App\\AppManager",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
"line": 90,
"function": "getEnabledApps",
"class": "OC_App",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/lib/base.php",
"line": 714,
"function": "runInitialRegistration",
"class": "OC\\AppFramework\\Bootstrap\\Coordinator",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/base.php",
"line": 1189,
"function": "init",
"class": "OC",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/cron.php",
"line": 58,
"args": [
"/var/www/html/nextcloud/lib/base.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/lib/private/DB/Connection.php",
"Line": 167,
"message": "Failed to connect to the database: An exception occurred in the driver: could not find driver",
"exception": {},
"CustomMessage": "Failed to connect to the database: An exception occurred in the driver: could not find driver"
}
}
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:167
Stack trace:
#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/html/nextcloud/lib/private/DB/ConnectionAdapter.php(200): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(121): OC\DB\ConnectionAdapter->getDatabasePlatform()
#5 /var/www/html/nextcloud/lib/private/AppConfig.php(1239): OC\DB\QueryBuilder\QueryBuilder->expr()
#6 /var/www/html/nextcloud/lib/private/AppConfig.php(264): OC\AppConfig->loadConfig()
#7 /var/www/html/nextcloud/lib/private/AppConfig.php(1380): OC\AppConfig->searchValues()
#8 /var/www/html/nextcloud/lib/private/App/AppManager.php(131): OC\AppConfig->getValues()
#9 /var/www/html/nextcloud/lib/private/App/AppManager.php(152): OC\App\AppManager->getInstalledAppsValues()
#10 /var/www/html/nextcloud/lib/private/legacy/OC_App.php(234): OC\App\AppManager->getInstalledApps()
#11 /var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps()
#12 /var/www/html/nextcloud/lib/base.php(714): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#13 /var/www/html/nextcloud/lib/base.php(1189): OC::init()
#14 /var/www/html/nextcloud/console.php(48): require_once('...')
#15 /var/www/html/nextcloud/occ(11): require_once('...')
#16 {main}pi@NanoPi-R6C:/var/www/html/nextcloud$