{"action":"created","issue":{"url":"https://api.github.com/repos/turnitin/moodle-mod_turnitintooltwo/issues/16","labels_url":"https://api.github.com/repos/turnitin/moodle-mod_turnitintooltwo/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/turnitin/moodle-mod_turnitintooltwo/issues/16/comments","events_url":"https://api.github.com/repos/turnitin/moodle-mod_turnitintooltwo/issues/16/events","html_url":"https://github.com/turnitin/moodle-mod_turnitintooltwo/issues/16","id":112028394,"number":16,"title":"Turnitin Breaking Moodle Cron","user":{"login":"mjk7","id":1421315,"avatar_url":"https://avatars.githubusercontent.com/u/1421315?v=3","gravatar_id":"","url":"https://api.github.com/users/mjk7","html_url":"https://github.com/mjk7","followers_url":"https://api.github.com/users/mjk7/followers","following_url":"https://api.github.com/users/mjk7/following{/other_user}","gists_url":"https://api.github.com/users/mjk7/gists{/gist_id}","starred_url":"https://api.github.com/users/mjk7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjk7/subscriptions","organizations_url":"https://api.github.com/users/mjk7/orgs","repos_url":"https://api.github.com/users/mjk7/repos","events_url":"https://api.github.com/users/mjk7/events{/privacy}","received_events_url":"https://api.github.com/users/mjk7/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-18T16:35:12Z","updated_at":"2015-10-22T17:59:52Z","closed_at":"2015-10-22T16:55:20Z","body":"Hi. I am getting the following error when the moodle cron runs.\r\n\r\n>Processing module function turnitintooltwo_cron ...\r\n>... used 337 dbqueries\r\n>... used 57.634557008743 seconds\r\n>Scheduled task failed: Legacy cron processing for plugins,Error reading from database\r\n>Default exception handler: Error reading from database Debug: MySQL server has gone away\r\n>SELECT * FROM mdl_task_scheduled WHERE classname = ?\r\n>[array (\r\n>  0 => '\\\\core\\\\task\\\\legacy_plugin_cron_task',\r\n>)]\r\n>Error code: dmlreadexception\r\n>* line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown\r\n>* line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()\r\n>* line 1476 of /lib/dml/moodle_database.php: call to >mysqli_native_moodle_database->get_records_sql()\r\n>* line 1448 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()\r\n>* line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()\r\n>* line 577 of /lib/classes/task/manager.php: call to moodle_database->get_record()\r\n>* line 91 of /lib/cronlib.php: call to core\\task\\manager::scheduled_task_failed()\r\n>* line 61 of /admin/cli/cron.php: call to cron_run()\r\n\r\n>!!! Error reading from database !!!\r\n\r\n>Debug info: MySQL server has gone away\r\n>SELECT * FROM mdl_task_scheduled WHERE classname = ?\r\n>[array (\r\n>  0 => '\\\\core\\\\task\\\\legacy_plugin_cron_task',\r\n>)]\r\n>Error code: dmlreadexception\r\n>Stack trace: * line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown\r\n>* line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()\r\n>* line 1476 of /lib/dml/moodle_database.php: call to >mysqli_native_moodle_database->get_records_sql()\r\n>* line 1448 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()\r\n>* line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()\r\n>* line 577 of /lib/classes/task/manager.php: call to moodle_database->get_record()\r\n>* line 91 of /lib/cronlib.php: call to core\\task\\manager::scheduled_task_failed()\r\n>* line 61 of /admin/cli/cron.php: call to cron_run()\r\n>PHP Fatal error:  Uncaught exception 'coding_exception' with message 'Coding error detected, it >must be fixed by a programmer: \\core\\lock\\lock() has fallen out of scope without being released.\r\n>Locks must ALWAYS be released by calling $mylock->release().' in /data/moodle/lms/public_html\r\n>/lib/classes/lock/lock.php:107\r\n>Stack trace:\r\n>#0 [internal function]: core\\lock\\lock->__destruct()\r\n>#1 {main}\r\n>  thrown in /data/moodle/lms/public_html/lib/classes/lock/lock.php on line 107\r\n\r\nWas wondering if you had a suggestion for fixing the issue? The cron not running is causing us a variety of issues."},"comment":{"url":"https://api.github.com/repos/turnitin/moodle-mod_turnitintooltwo/issues/comments/150306785","html_url":"https://github.com/turnitin/moodle-mod_turnitintooltwo/issues/16#issuecomment-150306785","issue_url":"https://api.github.com/repos/turnitin/moodle-mod_turnitintooltwo/issues/16","id":150306785,"user":{"login":"amclarty","id":8697035,"avatar_url":"https://avatars.githubusercontent.com/u/8697035?v=3","gravatar_id":"","url":"https://api.github.com/users/amclarty","html_url":"https://github.com/amclarty","followers_url":"https://api.github.com/users/amclarty/followers","following_url":"https://api.github.com/users/amclarty/following{/other_user}","gists_url":"https://api.github.com/users/amclarty/gists{/gist_id}","starred_url":"https://api.github.com/users/amclarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amclarty/subscriptions","organizations_url":"https://api.github.com/users/amclarty/orgs","repos_url":"https://api.github.com/users/amclarty/repos","events_url":"https://api.github.com/users/amclarty/events{/privacy}","received_events_url":"https://api.github.com/users/amclarty/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T17:59:52Z","updated_at":"2015-10-22T17:59:52Z","body":"@mjk7, let us know how you get on. If you're stuck and you think it's the plugin causing the issue go ahead and raise a support request. With login details for your Moodle environment we can troubleshoot further. Good luck!"}}