Owncloud Cron Could Not Find Driver

Posted on -
Owncloud Cron Could Not Find Driver Rating: 3,9/5 5019 reviews
  1. Owncloud Cron Could Not Find Driver Download
  2. Owncloud Cron Could Not Find Driver Version
Not

The upgrade to DSM 6.0 on my DS412+ was successful, except for Photo Stations. When launching Photo Station a new browser windows opens with solely the error message 'could not find driver'. Also the mobile DS photo app on my iPad cannot connect anymore to Photo Station. Before the upgrade. Dec 07, 2014  Join GitHub today. GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Active8 months ago

Owncloud Cron Could Not Find Driver Download

I have a docker-compose file that I started up on my server. After working with it for a while I wanted it to be available under a second domain name so I restarted it with these commands:

It seemed that the underlying owncloud image was updated in the meantime because I find a failed update mentioned in the owncloud logs (see end of posting). The log suggests to do occ app:disable richdocuments to disable the plugin that keeps the installation from updating. When I now try to disable the app:

It seems as if the owncloud occ tool is not completely available. Also a connection to the database seems to fail.

  1. How can I access the occ tool with this owncloud installation?
  2. Why does the connection to the database fails?

docker-compose.yml:

Owncloud logs:

Update

To be able to conveniently read and change the database, I added a phpmyadmin to the setup:

In the database, I cannot find richdocuments anywhere - especially not in the oc_appconfig table.

Pascal
PascalPascal

1 Answer

faced a similar problem

looks like a owncloud bug

I used a crutch:

change docker-compose.yml

then

now can access mariadb via external client

edit table oc_appconfig change row

LexaLexa

Not the answer you're looking for? Browse other questions tagged dockerowncloud or ask your own question.

Steps to reproduce

  1. enable / run cron.php as system cron job or via cli manually
  2. ensure you're running php 7.0.15 on system server

Expected behaviour

  1. Work

Actual behaviour

PHP Fatal error: Uncaught DoctrineDBALDBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/owncloud/lib/private/DB/Connection.php:58
Stack trace:
#0 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OCDBConnection->connect()
#1 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): DoctrineDBALConnection->getDatabasePlatformVersion()
#2 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): DoctrineDBALConnection->detectDatabasePlatform()
#3 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): DoctrineDBALConnection->getDatabasePlatform()
#4 /var/www/html/owncloud/lib/private/DB/Connection.php(141): DoctrineDBALConnection->setTransactionIsolation(2)
#5 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OCDBConnection->__construct(Array, Object(DoctrineDBALDriverPDOMySqlDriver), Ob in /var/www/html/owncloud/lib/private/DB/Connection.php on line 58
PHP Fatal error: Uncaught DoctrineDBALDBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/owncloud/lib/private/DB/Connection.php:58
Stack trace:
#0 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OCDBConnection->connect()
#1 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): DoctrineDBALConnection->getDatabasePlatformVersion()
#2 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): DoctrineDBALConnection->detectDatabasePlatform()
#3 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): DoctrineDBALConnection->getDatabasePlatform()
#4 /var/www/html/owncloud/lib/private/DB/Connection.php(141): DoctrineDBALConnection->setTransactionIsolation(2)
#5 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OCDBConnection->__construct(Array, Object(DoctrineDBALDriverPDOMySqlDriver), Ob in /var/www/html/owncloud/lib/private/DB/Connection.php on line 58

Server configuration

centos 7.3.1611

Web server:
nginx 1.11.9

Database:
mariadb

PHP version:
7.0.15

ownCloud version: (see ownCloud admin page)

Owncloud Cron Could Not Find Driver Version

9.1.4 stable,

Owncloud

Updated from an older ownCloud or fresh install:

fresh install

Where did you install ownCloud from:

yum install owncloud-files

Signing status (ownCloud 9.0 and above):

List of activated apps:

Activity 2.3.2
Admin Config Report 0.1.1
Collaborative tags 0.3.0
Comments 0.3.0
Default encryption module 1.3.0
Deleted files 0.9.0
Federation 0.1.0
First run wizard 1.1
Gallery 15.0.0
Mail Template Editor 0.1
Notifications 0.3.0
PDF Viewer 0.8.1
Provisioning API 0.5.0
Share Files 0.10.0
Text Editor 2.1
Update notification 0.2.1
Versions 1.3.0
Video player 0.9.8

The content of config/config.php:

false, 'instanceid' => ', 'passwordsalt' => ', 'secret' => ', 'trusted_domains' => array ( 0 => ', ), 'datadirectory' => '/var/www/html/owncloud/data', 'overwrite.cli.url' => ', 'dbtype' => 'mysql', 'version' => '9.1.4.2', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => ', 'dbpassword' => ', 'logtimezone' => 'UTC', 'installed' => true, 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_from_address' => ', 'mail_domain' => ', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => ', 'mail_smtpport' => '587', 'mail_smtpname' => ', 'mail_smtppassword' => ', 'memcache.distributed' => 'OCMemcacheRedis', 'memcache.locking' => 'OCMemcacheRedis', 'memcache.local' => 'OCMemcacheAPCu', 'redis' => array ( 'host' => '127.0.0.1', 'port' => 6379, 'timeout' => 0.0, 'password' => ', ),);```If you have access to your command line run e.g.:sudo -u www-data php occ config:list systemfrom within your ownCloud installation folderAn unhandled exception has been thrown:DoctrineDBALDBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/owncloud/lib/private/DB/Connection.php:58Stack trace:#0 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OCDBConnection->connect()#1 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): DoctrineDBALConnection->getDatabasePlatformVersion()#2 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): DoctrineDBALConnection->detectDatabasePlatform()#3 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): DoctrineDBALConnection->getDatabasePlatform()#4 /var/www/html/owncloud/lib/private/DB/Connection.php(141): DoctrineDBALConnection->setTransactionIsolation(2)#5 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OCDBConnection->__construct(Array, Object(DoctrineDBALDriverPDOMySqlDriver), Object(DoctrineDBALConfiguration), Object(DoctrineCommonEventManager))#6 /var/www/html/owncloud/lib/private/DB/ConnectionFactory.php(120): DoctrineDBALDriverManager::getConnection(Array, Object(DoctrineDBALConfiguration), Object(DoctrineCommonEventManager))#7 /var/www/html/owncloud/lib/private/Server.php(414): OCDBConnectionFactory->getConnection('mysql', Array)#8 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))#9 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('DatabaseConnect...')#10 /var/www/html/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('DatabaseConnect...')#11 /var/www/html/owncloud/lib/private/Server.php(973): OCServerContainer->query('DatabaseConnect...')#12 /var/www/html/owncloud/lib/private/Server.php(219): OCServer->getDatabaseConnection()#13 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))#14 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('OCAuthenticati...')#15 /var/www/html/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('OCAuthenticati...')#16 /var/www/html/owncloud/lib/private/Server.php(223): OCServerContainer->query('OCAuthenticati...')#17 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))#18 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('OCAuthenticati...')#19 /var/www/html/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('OCAuthenticati...')#20 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(150): OCServerContainer->query('OCAuthenticati...')#21 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OCAppFrameworkUtilitySimpleContainer->OCAppFrameworkUtility{closure}(Object(OCServer))#22 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('OCAuthenticati...')#23 /var/www/html/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('OCAuthenticati...')#24 /var/www/html/owncloud/lib/private/Server.php(238): OCServerContainer->query('OCAuthenticati...')#25 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))#26 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('UserSession')#27 /var/www/html/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('UserSession')#28 /var/www/html/owncloud/lib/private/Server.php(850): OCServerContainer->query('UserSession')#29 /var/www/html/owncloud/lib/private/Server.php(458): OCServer->getUserSession()#30 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCServer->OC{closure}(Object(OCServer))#31 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('AppManager')#32 /var/www/html/owncloud/lib/private/ServerContainer.php(87): OCAppFrameworkUtilitySimpleContainer->query('AppManager')#33 /var/www/html/owncloud/lib/private/Server.php(1150): OCServerContainer->query('AppManager')#34 /var/www/html/owncloud/lib/private/legacy/app.php(285): OCServer->getAppManager()#35 /var/www/html/owncloud/lib/private/legacy/app.php(106): OC_App::getEnabledApps()#36 /var/www/html/owncloud/lib/base.php(573): OC_App::loadApps(Array)#37 /var/www/html/owncloud/lib/base.php(973): OC::init()#38 /var/www/html/owncloud/console.php(58): require_once('/var/www/html/o...')#39 /var/www/html/owncloud/occ(11): require_once('/var/www/html/o...')#40 {main}[root@server201782020379 owncloud]# or Insert your config.php content here(Without the database password, passwordsalt and secret) false, 'instanceid' => ', 'passwordsalt' => ', 'secret' => ', 'trusted_domains' => array ( 0 => ', ), 'datadirectory' => '/var/www/html/owncloud/data', 'overwrite.cli.url' => ', 'dbtype' => 'mysql', 'version' => '9.1.4.2', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => ', 'dbpassword' => ', 'logtimezone' => 'UTC', 'installed' => true, 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_from_address' => ', 'mail_domain' => ', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => ', 'mail_smtpport' => '587', 'mail_smtpname' => ', 'mail_smtppassword' => ', 'memcache.distributed' => 'OCMemcacheRedis', 'memcache.locking' => 'OCMemcacheRedis', 'memcache.local' => 'OCMemcacheAPCu', 'redis' => array ( 'host' => '127.0.0.1', 'port' => 6379, 'timeout' => 0.0, 'password' => ', ),);```**Are you using external storage, if yes which one:** local/smb/sftp/...no**Are you using encryption:** yes/noyes**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...no```### Client configuration**Browser:**latest google chrome**Operating system:**windows 10 / fedora 25### Logs#### Web server error log```no pertinent errors present```#### ownCloud log (data/owncloud.log)```{'reqId':','remoteAddr':','app':'mysql.setup','message':'Specific user creation failed: An exception occurred while executing 'SELECT user FROM mysql.user WHERE user=?' with params ['oc_']:nnSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user ' for table 'user','level':3,'time':'2017-02-09T00:21:55+00:00','method':'POST','url':'/index.php','user':'--'}{'reqId':','remoteAddr':','app':'mysql.setup','message':'Database creation failed: An exception occurred while executing 'GRANT ALL PRIVILEGES ON `owncloud` . * TO '':nnSQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ' to database 'owncloud','level':3,'time':'2017-02-09T00:21:55+00:00','method':'POST','url':'/index.php','user':'--'}{'reqId':','remoteAddr':','app':'index','message':'Exception: {'Exception':'TypeError','Message':'Argument 8 passed to OCCoreControllerAvatarController::__construct() must implement interface OCPFilesFolder, null given, called in /var/www/html/owncloud/core/Application.php on line 96','Code':0,'Trace':'#0 /var/www/html/owncloud/core/Application.php(96): OCCoreControllerAvatarController->__construct('core', Object(OCAppFrameworkHttpRequest), Object(OCAvatarManager), Object(OCCacheFile), Object(OCL10NL10N), Object(OCUserManager), Object(OCUserSession), NULL, Object(OCLog))n#1 /var/www/html/owncloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OCCoreApplication->OCCore{closure}(Object(OCAppFrameworkDependencyInjectionDIContainer))n#2 /var/www/html/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(102): PimpleContainer->offsetGet('AvatarControlle...')n#3 /var/www/html/owncloud/lib/private/AppFramework/App.php(82): OCAppFrameworkUtilitySimpleContainer->query('AvatarControlle...')n#4 /var/www/html/owncloud/lib/private/AppFramework/Routing/RouteActionHandler.php(46): OCAppFrameworkApp::main('AvatarControlle...', 'getAvatar', Object(OCAppFrameworkDependencyInjectionDIContainer), Array)n#5 [internal function]: OCAppFrameworkRoutingRouteActionHandler->__invoke(Array)n#6 /var/www/html/owncloud/lib/private/Route/Router.php(280): call_user_func(Object(OCAppFrameworkRoutingRouteActionHandler), Array)n#7 /var/www/html/owncloud/lib/base.php(891): OCRouteRouter->match('/avatar/...')n#8 /var/www/html/owncloud/index.php(54): OC::handleRequest()n#9 {main}','File':'/var/www/html/owncloud/core/Controller/AvatarController.php','Line':81}','level':3,'time':'2017-02-09T00:49:04+00:00','method':'GET','url':'/index.php/avatar//336','user':'--'}```#### Browser log```Insert your browser log here, this could for example include:no browser errors present```