Panopto / Moodle-2.0-plugin-for-Panopto

Panopto's integration with the Moodle LMS.
http://www.panopto.com
GNU General Public License v3.0
18 stars 38 forks source link

!!! Exception - Too few arguments to function panopto_category_data #143

Closed Richardvi closed 5 years ago

Richardvi commented 5 years ago

My cron file shows this:

Execute adhoc task: block_panopto\task\ensure_category ... started 15:47:09. Current memory use 18.9MB. !!! Exception - Too few arguments to function panopto_category_data::__construct(), 1 passed in [dirroot]/blocks/panopto/classes/task/ensure_category.php on line 56 and exactly 3 expected !!! !! Error code: generalexceptionmessage !! !! Stack trace: * line 84 of /blocks/panopto/lib/panopto_category_data.php: ArgumentCountError thrown


I have experienced errors when creating courses, creating categories in Moodle 3.5

Right now Panopto is seriously messing up my Moodle installation. I tried to uninstall it, but then I got many of these errors:

Adhoc task complete: block_panopto\task\sync_user_login Execute adhoc task: block_panopto\task\sync_user_login ... started 17:34:02. Current memory use 27.7MB. ... used 46 dbqueries ... used 0.4519031047821 seconds Adhoc task complete: block_panopto\task\sync_user_login !!! The operation timed out while waiting for a lock. !!! !! Error code: locktimeout !! !! Stack trace: * line 452 of /lib/classes/task/manager.php: moodle_exception thrown


We are NOT using the Panopto block in our courses (we don't use blocks at all in Moodle). But still we do want our user data, course data and category data to be synchronised woth Panopto.

It seems our many users, courses and categories in Moodle messes this proces up.

Is there someway to get this working with BIG Moodle installations?

jmalmsten-panopto commented 5 years ago

I believe the latest beta release of the Panopto block should clear up the category issues.

I am guessing the lock and other adhoc issues are because async tasks are failing from the category issues.

If you still wish to uninstall the block I would suggest clearing all Panopto adhoc tasks from the Moodle environment before doing so. I would suggest running the cli script in the lib/cli/remove_all_panopto_adhoc_tasks.php. You should not have any category issues if you update to the new block (already queued adhoc tasks MAY experience the issue, but not any queued from the updated block).

If you have any further issues please open a support ticket with Panopto.

Thanks, Joe

Richardvi commented 5 years ago

Thanks, Panopto has helped me a lot with this. Most problems are solved, only one left: we have to many courses to synchronize to Panopto. This can not be done using the gui, it will take forever. I would really need a cli-script for this so it runs better. I have requested this at Panopto already, hope they can make this! Thanks again, Richard.