[Solved]Internal Server Error after logging in to occ

Hey there!

I’m running Nextcloud 9.1.1.5 on my Synology NAS.

While setting up my nextcloud I wanted to use the encryption modul, but this never worked because of some missing libary.

Today I wanted to disable the encryption because it caused some errors when sharing data with other users.

As I tried to acces occ via ssh I got the following error after logging in:

sudo -u http /bin/php /volume1/web/nextcloud/occ
An unhandled exception has been thrown:
exception ‘Doctrine\DBAL\DBALException’ with message ‘Failed to connect to the database: An exception occured in driver: could not find driver’ in /volume1/web/nextcloud/lib/private/DB/Connection.php:59
Stack trace:
#0 /volume1/web/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /volume1/web/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /volume1/web/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /volume1/web/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /volume1/web/nextcloud/lib/private/DB/Connection.php(142): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /volume1/web/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /volume1/web/nextcloud/lib/private/DB/ConnectionFactory.php(123): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /volume1/web/nextcloud/lib/private/Server.php(415): OC\DB\ConnectionFactory->getConnection(‘mysql’, Array)
#8 /volume1/web/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#9 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet(‘DatabaseConnect…’)
#10 /volume1/web/nextcloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query(‘DatabaseConnect…’)
#11 /volume1/web/nextcloud/lib/private/Server.php(1029): OC\ServerContainer->query(‘DatabaseConnect…’)
#12 /volume1/web/nextcloud/lib/private/Server.php(220): OC\Server->getDatabaseConnection()
#13 /volume1/web/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#14 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#15 /volume1/web/nextcloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’)
#16 /volume1/web/nextcloud/lib/private/Server.php(224): OC\ServerContainer->query(‘OC\Authenticati…’)
#17 /volume1/web/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#18 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#19 /volume1/web/nextcloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’)
#20 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(151): OC\ServerContainer->query(‘OC\Authenticati…’)
#21 /volume1/web/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#22 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#23 /volume1/web/nextcloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’)
#24 /volume1/web/nextcloud/lib/private/Server.php(239): OC\ServerContainer->query(‘OC\Authenticati…’)
#25 /volume1/web/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#26 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet(‘UserSession’)
#27 /volume1/web/nextcloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query(‘UserSession’)
#28 /volume1/web/nextcloud/lib/private/Server.php(906): OC\ServerContainer->query(‘UserSession’)
#29 /volume1/web/nextcloud/lib/private/Server.php(459): OC\Server->getUserSession()
#30 /volume1/web/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#31 /volume1/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet(‘AppManager’)
#32 /volume1/web/nextcloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query(‘AppManager’)
#33 /volume1/web/nextcloud/lib/private/Server.php(1206): OC\ServerContainer->query(‘AppManager’)
#34 /volume1/web/nextcloud/lib/private/legacy/app.php(293): OC\Server->getAppManager()
#35 /volume1/web/nextcloud/lib/private/legacy/app.php(109): OC_App::getEnabledApps()
#36 /volume1/web/nextcloud/lib/base.php(658): OC_App::loadApps(Array)
#37 /volume1/web/nextcloud/lib/base.php(1059): OC::init()
#38 /volume1/web/nextcloud/console.php(48): require_once(’/volume1/web/ne…’)
#39 /volume1/web/nextcloud/occ(11): require_once(’/volume1/web/ne…’)
#40 {main}

Since then my nextcloud isnt reachable from my webbrowser or via the nextcloud app on my phone. It says that there is an internal server error.

I really have no idea how to fix that.

My config.php:

<?php $CONFIG = array ( 'instanceid' => '*', 'passwordsalt' => '*', 'secret' => '*', 'trusted_domains' => array ( 0 => '192.100.0.2', 1 => '*', ), 'datadirectory' => '/volume1/cloud', 'overwrite.cli.url' => 'https://192.100.0.2/nextcloud', 'dbtype' => 'mysql', 'version' => '9.1.1.5', 'dbname' => 'Cloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_admin', 'dbpassword' => '*', 'logtimezone' => 'UTC', 'installed' => true, );

Some has an idea what could cause the internal server error?

Thanks!

PUSH

Does anyone has an idea on how to fix this error?