Curious loading problem with Moodle Opencast connection

161 views
Skip to first unread message

Emma Richardson

unread,
Jan 12, 2022, 1:38:55 PM1/12/22
to Opencast Users
So I have Opencast set up with Moodle.  I thought it was working great - I am using the API connection and have a Series module serving up the videos.  But the video does not always load...and then after a long time, I can go back and it will load...(perhaps 30 minutes) - in Firefox, I am seeing a 403 error but I am not seeing any errors on Opencast.  I have this proxied through Cloudflare so wondering if that is causing this.  I have seen some CORS errors but the fact that eventually they will load as intended has me totally baffled and is of course very hard to diagnose...
Looking for any suggestions and wondering if it could be a cache issue on the opencast server (have blown away caches on cloudflare and moodle to no avail) and if so, how would I clear the caches there...

Emma Richardson

unread,
Jan 12, 2022, 6:14:21 PM1/12/22
to Opencast Users, Emma Richardson
This is what I am seeing in my nginx access logs - 

 "GET /api/events/f1c76636-00d0-4e09-8e59-fb7ac5a525a6?sign=true&withpublications=true HTTP/2.0" 200 10367 "-" "MoodleBot/3.11 (+https://"mymoodlesite".org)"

209.236.81.103 - - [12/Jan/2022:16:11:38 -0700] "GET /static/mh_default_org/api/f1c76636-00d0-4e09-8e59-fb7ac5a525a6/47890503-1ad4-4eb0-a4e5-9010c34b74ea/wednesday_1_000s_player.jpg HTTP/2.0" 403 421 "https://"mymoodlesite".org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:95.0) Gecko/20100101 Firefox/95.0"


itz.feli...@gmail.com

unread,
Jan 12, 2022, 6:29:35 PM1/12/22
to Opencast Users, emm...@gmail.com
Hi Emma,

did you enable "Securing Static Files"?

If so, any cache involved may have to vary its response depending on the cookie, the cookie which authorizes your Moodle users to see the video file.

-- Felix

Emma Richardson

unread,
Jan 12, 2022, 7:06:39 PM1/12/22
to Opencast Users, itz.feli...@gmail.com, Emma Richardson

Thanks for the tip - will be looking into that tomorrow.

Aliyev

unread,
Jan 13, 2022, 10:25:02 AM1/13/22
to Opencast Users, emm...@gmail.com
What do you mean by " the video does not always load", player keeps trying to load and fails, or something else?

Emma Richardson

unread,
Jan 18, 2022, 10:01:00 AM1/18/22
to Opencast Users, itz.feli...@gmail.com, Emma Richardson
Thank you, thank you, thank you!  I had not believed it was simple setting due to its erratic nature but this fixed it!

On Wednesday, January 12, 2022 at 4:29:35 PM UTC-7 itz.feli...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages