{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/25267","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/25267/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/25267/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/25267/events","html_url":"https://github.com/owncloud/core/issues/25267","id":162272279,"number":25267,"title":"Cron.php task throws database exception","user":{"login":"sermilrod","id":5130619,"avatar_url":"https://avatars.githubusercontent.com/u/5130619?v=3","gravatar_id":"","url":"https://api.github.com/users/sermilrod","html_url":"https://github.com/sermilrod","followers_url":"https://api.github.com/users/sermilrod/followers","following_url":"https://api.github.com/users/sermilrod/following{/other_user}","gists_url":"https://api.github.com/users/sermilrod/gists{/gist_id}","starred_url":"https://api.github.com/users/sermilrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sermilrod/subscriptions","organizations_url":"https://api.github.com/users/sermilrod/orgs","repos_url":"https://api.github.com/users/sermilrod/repos","events_url":"https://api.github.com/users/sermilrod/events{/privacy}","received_events_url":"https://api.github.com/users/sermilrod/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-25T09:13:12Z","updated_at":"2016-06-25T14:14:56Z","closed_at":"2016-06-25T14:14:56Z","body":"Hi,\r\n\r\nI have an issue whenever the cron.php task is executed. The current method of such task execution is via cronjob in the server machine as www-data user (I just followed the owncloud documentation for that). It has been failing for the last week at least with the following error:\r\n\r\n{\"reqId\":\"wqfasdfaeqwfqer\",\"remoteAddr\":\"\",\"app\":\"cron\",\"message\":\"Failed to connect to the database: An exception occured in driver: could not find driver\",\"level\":4,\"time\":\"2016-06-25T08:50:01+00:00\",\"method\":\"--\",\"url\":\"--\",\"user\":\"--\"}\r\n\r\nAs you can see, problem seems to be that user, method, url are empty. It is a weird issue as I expect that information to be fetched from config.php and the configuration on my side looks ok, otherwise I would not be even able to login.\r\n\r\nI would really appreciate some help with this.\r\n\r\nThank you in advance.\r\n\r\nSergio.\r\n\r\n### Steps to reproduce\r\n1. Wait for cron to execute the scheduled task\r\n2. Alternatively, if you change to Ajax mode, you get the same error and you just have to trigger a condition to execute the cron.php task\r\n\r\n### Expected behaviour\r\nI expect no errors running this task\r\n\r\n### Actual behaviour\r\nThe task fails with this error\r\n{\"reqId\":\"wqfasdfaeqwfqer\",\"remoteAddr\":\"\",\"app\":\"cron\",\"message\":\"Failed to connect to the database: An exception occured in driver: could not find driver\",\"level\":4,\"time\":\"2016-06-25T08:50:01+00:00\",\"method\":\"--\",\"url\":\"--\",\"user\":\"--\"}\r\n\r\n### Server configuration\r\n**Operating system**:  \r\n\r\nUbuntu 14.04.4 LTS\r\n\r\n**Web server:** \r\n\r\ntengine 2.0.3-1bbox2~trusty1\r\n\r\n**Database:**\r\n\r\nMySQL 5.6.23 \r\n\r\n**PHP version:**\r\n\r\nPHP 5.6.22-1+donate.sury.org~trusty+1\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n\r\n9.0.2\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\n\r\nFresh install\r\n\r\n**Where did you install ownCloud from:**\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\nNo errors have been found.\r\n\r\n**List of activated apps:**\r\n\r\nI cannot retrieve it by using the suggested method because I get the following error:\r\n\r\nAn unhandled exception has been thrown:\r\nDoctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /opt/applications/owncloud-9.0.2/lib/private/db/connection.php:54\r\nStack trace:\r\n#0 /opt/applications/owncloud-9.0.2/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\r\n#1 /opt/applications/owncloud-9.0.2/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\r\n#2 /opt/applications/owncloud-9.0.2/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\r\n#3 /opt/applications/owncloud-9.0.2/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): Doctrine\\DBAL\\Connection->getDatabasePlatform()\r\n#4 /opt/applications/owncloud-9.0.2/lib/private/db/connection.php(137): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\r\n#5 /opt/applications/owncloud-9.0.2/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))\r\n#6 /opt/applications/owncloud-9.0.2/lib/private/db/connectionfactory.php(116): Doctrine\\DBAL\\DriverManager::getConnection(Array, Object(Doctrine\\DBAL\\Configuration), Object(Doctrine\\Common\\EventManager))\r\n#7 /opt/applications/owncloud-9.0.2/lib/private/server.php(366): OC\\DB\\ConnectionFactory->getConnection('mysql', Array)\r\n#8 /opt/applications/owncloud-9.0.2/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\\Server->OC\\{closure}(Object(OC\\Server))\r\n#9 /opt/applications/owncloud-9.0.2/lib/private/appframework/utility/simplecontainer.php(102): Pimple\\Container->offsetGet('DatabaseConnect...')\r\n#10 /opt/applications/owncloud-9.0.2/lib/private/servercontainer.php(87): OC\\AppFramework\\Utility\\SimpleContainer->query('DatabaseConnect...')\r\n#11 /opt/applications/owncloud-9.0.2/lib/private/server.php(886): OC\\ServerContainer->query('DatabaseConnect...')\r\n#12 /opt/applications/owncloud-9.0.2/lib/private/server.php(260): OC\\Server->getDatabaseConnection()\r\n#13 /opt/applications/owncloud-9.0.2/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\\Server->OC\\{closure}(Object(OC\\Server))\r\n#14 /opt/applications/owncloud-9.0.2/lib/private/appframework/utility/simplecontainer.php(102): Pimple\\Container->offsetGet('AppConfig')\r\n#15 /opt/applications/owncloud-9.0.2/lib/private/servercontainer.php(87): OC\\AppFramework\\Utility\\SimpleContainer->query('AppConfig')\r\n#16 /opt/applications/owncloud-9.0.2/lib/private/server.php(825): OC\\ServerContainer->query('AppConfig')\r\n#17 /opt/applications/owncloud-9.0.2/lib/private/server.php(411): OC\\Server->getAppConfig()\r\n#18 /opt/applications/owncloud-9.0.2/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\\Server->OC\\{closure}(Object(OC\\Server))\r\n#19 /opt/applications/owncloud-9.0.2/lib/private/appframework/utility/simplecontainer.php(102): Pimple\\Container->offsetGet('AppManager')\r\n#20 /opt/applications/owncloud-9.0.2/lib/private/servercontainer.php(87): OC\\AppFramework\\Utility\\SimpleContainer->query('AppManager')\r\n#21 /opt/applications/owncloud-9.0.2/lib/private/server.php(1063): OC\\ServerContainer->query('AppManager')\r\n#22 /opt/applications/owncloud-9.0.2/lib/private/app.php(254): OC\\Server->getAppManager()\r\n#23 /opt/applications/owncloud-9.0.2/lib/private/app.php(103): OC_App::getEnabledApps()\r\n#24 /opt/applications/owncloud-9.0.2/lib/base.php(577): OC_App::loadApps(Array)\r\n#25 /opt/applications/owncloud-9.0.2/lib/base.php(1112): OC::init()\r\n#26 /opt/applications/owncloud-9.0.2/console.php(46): require_once('/opt/applicatio...')\r\n#27 /opt/applications/owncloud-9.0.2/occ(11): require_once('/opt/applicatio...')\r\n\r\n**The content of config/config.php:**\r\n\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'my_instance_id',\r\n  'passwordsalt' => 'my_salt',\r\n  'trusted_domains' => \r\n  array (\r\n    0 => 'my_trusted_domain',\r\n  ),\r\n  'datadirectory' => '/opt/applications/data',\r\n  'dbtype' => 'mysql',\r\n  'version' => '9.0.2.2',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'my_db_host',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'owncloud',\r\n  'dbpassword' => 'my_pass',\r\n  'installed' => true,\r\n  'loglevel' => 1,\r\n  'forcessl' => true,\r\n  'trashbin_retention_obligation' => '30',\r\n  'theme' => '',\r\n  'maintenance' => false,\r\n  'secret' => 'my_secret'',\r\n  'updatechecker' => false,\r\n);\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\n\r\nNo\r\n\r\n**Are you using encryption:** yes/no\r\n\r\nNo \r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\n\r\nNo\r\n\r\n### Client configuration\r\n**Browser:**\r\n\r\nGoogle Chrome Version 49.0.2623.108 (64-bit)\r\n\r\n**Operating system:**\r\n\r\nLinux Mint 17.3 Rosa\r\n\r\n### Logs\r\n#### Web server error log\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n\r\nOne error repeated every time cron.php is executed:\r\n\r\n{\"reqId\":\"wqfasdfaeqwfqer\",\"remoteAddr\":\"\",\"app\":\"cron\",\"message\":\"Failed to connect to the database: An exception occured in driver: could not find driver\",\"level\":4,\"time\":\"2016-06-25T08:50:01+00:00\",\"method\":\"--\",\"url\":\"--\",\"user\":\"--\"}\r\n\r\n#### Browser log\r\n\r\nNot applicable"}}
{"actor":{"display_login":"DeepDiver1975"}}