What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Nextcloud - Can't use occ commands to change database from SQLite

noname

Junior Member
I've started to add users and such and want to make the recommended changes, First thing I tried to do was update the indexes using
sudo -u www-data php occ db:add-missing-indices

First I got the error about the webserver not being able to write to the config folder/file so I chown'd it and but now I am getting a laundry list of errors and don't even know where to start. Is this something I can't do because of the way it was installed using this platform and/or docker? See the errors that come up below, this happens when I try to do any occ commands:


An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: could not find driver in /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1065): OC\DB\Connection->connect()
#1 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php(216): Doctrine\DBAL\Connection->executeUpdate('PRAGMA read_unc...', Array, Array)
#2 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(710): OC\DB\Connection->executeUpdate('PRAGMA read_unc...')
#3 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#4 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(181): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOSqlite\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#5 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/ConnectionFactory.php(158): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(641): OC\DB\ConnectionFactory->getConnection('sqlite3', Array)
#7 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#8 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OCP\\IDBConnecti...')
#9 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OCP\\IDBConnecti...')
#10 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#11 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('DatabaseConnect...')
#12 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(1560): OC\ServerContainer->query('DatabaseConnect...')
#13 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(362): OC\Server->getDatabaseConnection()
#14 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#15 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#16 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(68): OC\ServerContainer->query('OC\\Authenticati...')
#17 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#18 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#19 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#20 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(68): OC\ServerContainer->query('OC\\Authenticati...')
#21 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#22 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#23 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#24 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OC\\Authenticati...')
#25 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#26 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#27 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(374): OC\ServerContainer->query('OC\\Authenticati...')
#28 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#29 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\User\\Session')
#30 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OC\\User\\Session')
#31 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#32 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('UserSession')
#33 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(1436): OC\ServerContainer->query('UserSession')
#34 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(694): OC\Server->getUserSession()
#35 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#36 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#37 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OC\\App\\AppManag...')
#38 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#39 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('AppManager')
#40 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/Server.php(1731): OC\ServerContainer->query('AppManager')
#41 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/legacy/app.php(343): OC\Server->getAppManager()
#42 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/legacy/app.php(114): OC_App::getEnabledApps()
#43 /opt/appdata/nextcloud/conf/www/nextcloud/lib/base.php(640): OC_App::loadApps(Array)
#44 /opt/appdata/nextcloud/conf/www/nextcloud/lib/base.php(1056): OC::init()
#45 /opt/appdata/nextcloud/conf/www/nextcloud/console.php(46): require_once('/opt/appdata/ne...')
#46 /opt/appdata/nextcloud/conf/www/nextcloud/occ(11): require_once('/opt/appdata/ne...')
#47 {main}PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: could not find driver in /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1065): OC\DB\Connection->connect()
#1 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php(216): Doctrine\DBAL\Connection->executeUpdate('PRAGMA read_unc...', Array, Array)
#2 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(710): OC\DB\Connection->executeUpdate('PRAGMA read_unc...')
#3 /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#4 /opt/appdata/nextcloud/conf/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(181): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOSqlite\Driver), Object(Doctrine\DBAL\Co in /opt/appdata/nextcloud/conf/www/nextcloud/lib/private/DB/Connection.php on line 64

 

noname

Junior Member
Anyone... I really don't want to have to remove Nextcloud from pgblitz and set it up separately if I really don't have to
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
5
Guests online
84
Total visitors
89
Top