Occ too many errors

help

#1

Hi all

I can get into owncloud and view download upload etc.
But I cannot upgrade.

I presume I've cocked up the installation on my Jessie Pi

This is my result...

pi@raspberrypi:/var/www/owncloud $ sudo -u www-data php occ upgrade

I always get:

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 /var/www/owncloud/lib/private/DB/Connection.php:59
Stack trace:
#0 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(973): OC\DB\Connection->connect()
#1 /var/www/owncloud/lib/private/DB/Connection.php(210): Doctrine\DBAL\Connection->executeUpdate('PRAGMA read_unc...', Array, Array)
#2 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): OC\DB\Connection->executeUpdate('PRAGMA read_unc...')
#3 /var/www/owncloud/lib/private/DB/Connection.php(142): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#4 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOSqlite\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#5 /var/www/owncloud/lib/private/DB/ConnectionFactory.php(121): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/owncloud/lib/private/Server.php(415): OC\DB\ConnectionFactory->getConnection('sqlite3', Array)
#7 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#8 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet('DatabaseConnect...')
#9 /var/www/owncloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#10 /var/www/owncloud/lib/private/Server.php(1029): OC\ServerContainer->query('DatabaseConnect...')
#11 /var/www/owncloud/lib/private/Server.php(220): OC\Server->getDatabaseConnection()
#12 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#13 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet('OC\\Authenticati...')
#14 /var/www/owncloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#15 /var/www/owncloud/lib/private/Server.php(224): OC\ServerContainer->query('OC\\Authenticati...')
#16 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#17 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet('OC\\Authenticati...')
#18 /var/www/owncloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#19 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(151): OC\ServerContainer->query('OC\\Authenticati...')
#20 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#21 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet('OC\\Authenticati...')
#22 /var/www/owncloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#23 /var/www/owncloud/lib/private/Server.php(239): OC\ServerContainer->query('OC\\Authenticati...')
#24 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#25 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet('UserSession')
#26 /var/www/owncloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query('UserSession')
#27 /var/www/owncloud/lib/private/Server.php(906): OC\ServerContainer->query('UserSession')
#28 /var/www/owncloud/lib/private/Server.php(459): OC\Server->getUserSession()
#29 /var/www/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#30 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(103): Pimple\Container->offsetGet('AppManager')
#31 /var/www/owncloud/lib/private/ServerContainer.php(89): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#32 /var/www/owncloud/lib/private/Server.php(1206): OC\ServerContainer->query('AppManager')
#33 /var/www/owncloud/lib/private/legacy/app.php(293): OC\Server->getAppManager()
#34 /var/www/owncloud/lib/private/legacy/app.php(109): OC_App::getEnabledApps()
#35 /var/www/owncloud/lib/base.php(658): OC_App::loadApps(Array)
#36 /var/www/owncloud/lib/base.php(1059): OC::init()
#37 /var/www/owncloud/console.php(56): require_once('/var/www/ownclo...')
#38 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')

Is it too far gone?
I still have some lighter petrol and a match...


#2

Your command line PHP version is missing the database extension (pdo.so, pdo_mysql.so / pdo_sqlite.so). If unsure contact a support forums of your distro which can help you to choose and install the correct extension.


#3

Sorry for my ignorance, do you mean my php version?
I did a php -i and got a shedload which I've put into a text file, just incase it is a php forum I've to go to.


#4

There are at least two variants of PHP:

  1. The PHP running by / for your webserver (which has correctly loaded the extensions)
  2. The command line PHP (which has not correctly loaded the extensions)

Both don't share the same php.ini and the latter one is misconfigured to not load the correct extensions.