Network lost connection loading index_scorm.html

Network lost connection loading index_scorm.html

by D C -
Number of replies: 0

Hello,

Moodle Version: 3.3.2 (Build: 20170911)

I'm attempting to transfer a moodle site instance from one client server to another. In doing so I copied all the moodle, moodledata, and import/export of database over to the new server. The site is working 90% the only issue I'm encountering is that the moodle course isn't displaying. It just shows a loading spinner constantly.


The issue on the new server is when it attempts to load pluginfile.php/19/mod_scorm/content/17/index_scorm.html. The website doesn't give much in terms of feedback of what the issue is other than in the console I receive 'Failed to load resource: The network connection was lost.' 


In the networking tab the file shows in red but has a response of 200


Summary

URL: [url]/pluginfile.php/19/mod_scorm/content/17/index_scorm.html

Status: 200 OK

Source: Network


Request

Referer: [url]/mod/scorm/loadSCO.php?a=1&scoid=2&currentorg=Course_ID1_ORG&mode=&attempt=1

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15


Response

Content-Type: text/html;charset=UTF-8

Keep-Alive: timeout=5, max=85

Pragma

Content-Disposition: inline; filename="index_scorm.html"

Expires: Thu, 01 Oct 2020 21:44:26 GMT

Cache-Control: private, max-age=21600, no-transform

Date: Thu, 01 Oct 2020 15:44:26 GMT

Content-Length: 6329

Connection: Keep-Alive

ETag: ""

Accept-Ranges: bytes

Last-Modified: Thu, 30 Nov 2017 15:50:04 GMT

Server: Apache


I traced through the php code and it looks to get to the point of serving up the file

moodledata/filedir/66/c7/66c785ab41b7d1f84be641da553c1d59dc0ec752

from lib/filelib.php 
function readfile_allow_large
// If the file is up to 2^31 - 1, send it normally using readfile.
return readfile($path);

I added in some console.log statements to the 66c785ab41b7d1f84be641da553c1d59dc0ec752 file but sometimes they print and sometimes they don't. 

Note I increased the logging of the site to be the most verbose and there's nothing printed. However it looks like all the php (where the logging exists) is working successfully. It's the serving up of the file listed above that seems to fail.

I'm stumped as to why the moodle site is failing to load this file. Any help on this would be greatly appreciated.
Average of ratings: -