Hello there,
we did our upgrade from opencast 8 to now 11 a few days ago. After that I noticed, that the Moodle - Opencast connection seems to be broken partly.
We are using the Moodle Opencast admin tool (v3.11-r8) and the block (v3.11-r9).
The connection test from the admin tool tells me, everything is okay. Username, password and URL of opencast didn't change:
"Opencast API URL test successful. Opencast API User Credentials test successful."
A simple cURL call from command line with the same credentials against the API also completes successful.
Also all recordings (and changes of them) from series in a course are displayed properly, so the connection between those two is working.
BUT, after uploading a recording to moodle, it will not be uploaded to opencast. The log of the scheduled task tells me
"... series exists
Job failed due to: moodle_exception: Es gab ein Problem mit der Verbindung zum Opencast Server. Bitte kontrollieren Sie Ihre Opencast API Zugangsdaten und die Netzwerk-Einstellungen. in /opt/web/html/blocks/opencast/classes/local/apibridge.php:1101
Stack trace:
#0 /opt/web/html/blocks/opencast/classes/local/apibridge.php(1147): block_opencast\local\apibridge->create_event()
#1 /opt/web/html/blocks/opencast/classes/local/upload_helper.php(531): block_opencast\local\apibridge->ensure_event_exists()
#2 /opt/web/html/blocks/opencast/classes/local/upload_helper.php(621): block_opencast\local\upload_helper->process_upload_job()
#3 /opt/web/html/blocks/opencast/classes/local/upload_helper.php(660): block_opencast\local\upload_helper->process_upload_job()
#4 /opt/web/html/blocks/opencast/classes/task/process_upload_cron.php(37): block_opencast\local\upload_helper->cron()
#5 /opt/web/html/lib/cronlib.php(248): block_opencast\task\process_upload_cron->execute()
#6 /opt/web/html/lib/cronlib.php(120): cron_run_inner_scheduled_task()
#7 /opt/web/html/lib/cronlib.php(73): cron_run_scheduled_tasks()
#8 /opt/web/html/admin/cli/cron.php(79): cron_run()
#9 {main}"
After digging deeper, it seems the POST call to "/api/events" fails with http 400.
So this is the point where I don't know any further. I don't know why after upgrading from 8 to 11 this now fails. Where there any changes in between, did I miss any configuration change?
I also tried with our testing systems, both moodle testing and opencast testing and all produce the same error.
By the way, uploading directly in opencast, from opencast studio and feeding in from pyCA capture agent works!
Any help or hints are appreciated.
Best regards
Sven