Owncloud Postgresql Could Not Find Driver
Steps to reproduce
Ubuntu 14.04 - Postgresql 9.3 - Apache2 - PHP5+pgsql.so Install wizard error: error trying to create admin user: failed to connect to the database: an exception.
- update php using: sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
php5.6-apcu php5.6-zip php5.6-gd php5.6-curl
sudo a2dismod php5
sudo a2enmod php5.6
sudo service apache2 restart
Tried mysql and phpmyadmin and working - run automated update (synaptic) to update Owncloud to latest version (10.0)
- run owncloud update and got:
#######################
/var/www/owncloud$ sudo -u www-data php occ upgrade
[sudo] password for viking:
An unhandled exception has been thrown:
DoctrineDBALDBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/owncloud/lib/private/DB/Connection.php:63
Stack trace:
#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OCDBConnection->connect()
#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): DoctrineDBALConnection->getDatabasePlatformVersion()
#2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): DoctrineDBALConnection->detectDatabasePlatform()
#3 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): DoctrineDBALConnection->getDatabasePlatform()
#4 /var/www/owncloud/lib/private/DB/Connection.php(146): DoctrineDBALConnection->setTransactionIsolation(2)
#5 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OCDBConnection->__construct(Array, Object(DoctrineDBALDriverPDOMySqlDriver), Object(DoctrineDBALConfiguration), Object(DoctrineCommonEventManager))
#6 /var/www/owncloud/lib/private/DB/ConnectionFactory.php(136): DoctrineDBALDriverManager::getConnection(Array, Object(DoctrineDBALConfiguration), Object(DoctrineCommonEventManager))
#7 /var/www/owncloud/lib/private/Server.php(461): OCDBConnectionFactory->getConnection('mysql', Array)
#8 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))
#9 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): PimpleContainer->offsetGet('DatabaseConnect...')
#10 /var/www/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('DatabaseConnect...')
#11 /var/www/owncloud/lib/private/Server.php(1101): OCServerContainer->query('DatabaseConnect...')
#12 /var/www/owncloud/lib/private/Server.php(226): OCServer->getDatabaseConnection()
#13 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))
#14 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): PimpleContainer->offsetGet('UserManager')
#15 /var/www/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('UserManager')
#16 /var/www/owncloud/lib/private/Server.php(953): OCServerContainer->query('UserManager')
#17 /var/www/owncloud/lib/private/Server.php(267): OCServer->getUserManager()
#18 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))
#19 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): PimpleContainer->offsetGet('UserSession')
#20 /var/www/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('UserSession')
#21 /var/www/owncloud/lib/private/Server.php(970): OCServerContainer->query('UserSession')
#22 /var/www/owncloud/lib/private/Server.php(507): OCServer->getUserSession()
#23 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))
#24 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): PimpleContainer->offsetGet('AppManager')
#25 /var/www/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('AppManager')
#26 /var/www/owncloud/lib/private/Server.php(1288): OCServerContainer->query('AppManager')
#27 /var/www/owncloud/lib/private/legacy/app.php(310): OCServer->getAppManager()
#28 /var/www/owncloud/lib/private/legacy/app.php(106): OC_App::getEnabledApps()
#29 /var/www/owncloud/lib/base.php(579): OC_App::loadApps(Array)
#30 /var/www/owncloud/lib/base.php(994): OC::init()
#31 /var/www/owncloud/console.php(57): require_once('/var/www/ownclo...')
#32 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
#33 {main}PHP Fatal error: Uncaught DoctrineDBALDBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/owncloud/lib/private/DB/Connection.php:63
Stack trace:
#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OCDBConnection->connect()
#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): DoctrineDBALConnection->getDatabasePlatformVersion()
#2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): DoctrineDBALConnection->detectDatabasePlatform()
#3 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): DoctrineDBALConnection->getDatabasePlatform()
#4 /var/www/owncloud/lib/private/DB/Connection.php(146): DoctrineDBALConnection->setTransactionIsolation(2)
#5 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OCDBConnection->__construct(Array, Object(DoctrineDBALDriverPDOMySqlDriver), Object(DoctrineD in
#################################
Expected behaviour
Tell us what should happen
Owncloud should have updated normally
Actual behaviour
Tell us what happens instead
Errors as shown above Owncloud server cannot start
Server configuration
Operating system:
Ubuntu 14.04.5
Linux Sibyl 3.13.0-117-generic #164-Ubuntu SMP Fri Apr 7 11:05:26 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Web server:
Server version: Apache/2.4.7 (Ubuntu)
Server built: Jul 15 2016 15:34:04
Database:
mysql Ver 14.14 Distrib 5.5.55, for debian-linux-gnu (x86_64) using readline 6.3
PHP version:
php -v
PHP 7.1.4-1+deb.sury.orgtrusty+1 (cli) (built: Apr 11 2017 22:45:20) ( NTS )trusty+1, Copyright (c) 1999-2017, by Zend Technologies
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.4-1+deb.sury.org
ownCloud version: (see ownCloud admin page) version 10.0 I think (latest)
Updated from an older ownCloud or fresh install:
Updated from 9.1x
Where did you install ownCloud from:
used ppa from Owncloud and synaptic package manager as had been done successfully for previous owncloud versions
Signing status (ownCloud 9.0 and above):
Cannot sign into my ownCloud server because it's broken all I see is:
Update needed
Please use the command line updater because you have a big instance.
For help, see the documentation.
The content of config/config.php: