SCORM modules not loading

SCORM modules not loading

by Adam Cripps -
Number of replies: 6

I am upgrading a moodle from 3.1 to the latest version 3.4.2+. Everything seems to work apart from SCORM modules. I just get a 'spinning wheel'. The wheel persists and the module never loads.

Another post mentioned switching HTTP_CONNECTION, but I can't see this in any of my config files.

We have found that a backup and restore of the modules fixes this, but as we have a lot of modules this will take a long time.

What other things could I check for?



Attachment spin.png
Average of ratings: -
In reply to Adam Cripps

Re: SCORM modules not loading

by Adam Cripps -

I waited longer than I normally would and got this error:


0:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - intReCheckLoadedInterval=250
1:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - intReCheckAttemptsBeforeTimeout=240
2:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - IFrameLoaded
3:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - In GetAICCURL
4:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - GetQueryStringValue Element 'AICC_URL' Not Found, Returning: empty string
5:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - Querystring value =
6:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - GetAICCURL returning:
7:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - In DetectPreferredCommMethod, checking XMLHTTP
8:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - Checking IFrame
9:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - blnCanUseXMLHTTP=true
10:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - AICCComm - blnCanUseIFrame=true
11:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - ----------------------------------------
12:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - ----------------------------------------
13:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In Start - Version: 3.8.2 Last Modified=11/24/2017 11:30:01
14:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Browser Info (Netscape 5.0 (X11))
15:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - URL: https://mydomain.com/pluginfile.php/9605/mod_scorm/content/8/index_lms_html5.html
16:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - ----------------------------------------
17:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - ----------------------------------------
18:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In ClearErrorInfo
19:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - GetQueryStringValue Element 'StandAlone' Not Found, Returning: empty string
20:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - GetQueryStringValue Element 'ShowDebug' Not Found, Returning: empty string
21:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - strStandAlone= strShowInteractiveDebug=
22:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Standard From Configuration File - SCORM
23:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Using Standard From Configuration File - SCORM
24:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In LMSStandardAPI strStandard=SCORM
25:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Calling Standard Initialize
26:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_Initialize
27:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_ClearErrorInfo
28:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Grabbing API
29:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_GrabAPI
30:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Searching with improved ADL algorithm
31:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_GetAPI
32:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - SCORM_GetAPI, searching opener
33:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_ScanParentsForApi, win=https://mydomain.com/pluginfile.php/9605/mod_scorm/content/8/launcher.html#
34:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - SCORM_GrabAPI, returning
35:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Calling LMSInit
36:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_CallLMSInitialize
37:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_GrabAPI
38:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - SCORM_GrabAPI, returning
39:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Calling LMSInitialize
40:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - strResult=false
41:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Detected failed call to initialize
42:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In SCORM_SetErrorInfo
43:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - intSCORMError=101
44:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - strSCORMErrorString=General exception
45:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - strSCORMErrorDiagnostic=101
46:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Error calling LMSInitialize:
47:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - intSCORMError=101
48:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - SCORMErrorString=General exception
49:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - Diagnostic=101
50:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - ERROR Initializing LMS
51:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In InitializeExecuted, blnSuccess=false, strErrorMessage=Error initializing communications with LMS
52:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - ERROR - LMS Initialize Failed
53:Wed Apr 11 2018 09:35:53 GMT+0100 (BST) - In DisplayError, strMessage=Error initializing communications with LMS

In reply to Adam Cripps

Re: SCORM modules not loading

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Adam,
that's strange since it fails on calling the LMSInitialize() method which at the end doesn't call Moodle via network.

Is it deterministic?
Could you trace what the browser tells about that remote call? Fire up the Dev Tools in your browser and point the Network tab, then navigate your content: look at the body of the POST requests pointing to /mod/scorm/datamodel.php.

If your system is internet facing you could PM coordinates and credential and I'll look at it in my spare time.

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: SCORM modules not loading

by Adam Cripps -

There's not a great deal of information in the inspect, but here it is.

Attachment scorm-inspect.png
In reply to Adam Cripps

Re: SCORM modules not loading

by Adam Cripps -

I also have this from the network tab:

/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)

app.min.js:1 Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

    at https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:12249

    at https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:11167

    at https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:15576

    at jt (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:11139)

    at es (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:28205)

    at ts (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:28236)

    at h (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:2:17277)

    at Function.qn [as thru] (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:27151)

    at ii (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:13771)

    at ee.Qn (https://test-moodle.mydomain.com/pluginfile.php/9553/mod_scorm/content/5/html5/lib/scripts/app.min.js:1:27694)

(anonymous) @ app.min.js:1

(anonymous) @ app.min.js:1

(anonymous) @ app.min.js:1

jt @ app.min.js:1

es @ app.min.js:1

ts @ app.min.js:1

h @ app.min.js:2

qn @ app.min.js:1

ii @ app.min.js:1

Qn @ app.min.js:1

X.(anonymous function) @ app.min.js:2

inlineCssRuleRefs @ app.min.js:14

componentDidMount @ app.min.js:14

(anonymous) @ app.min.js:4

notifyAll @ app.min.js:2

close @ app.min.js:6

closeAll @ app.min.js:8

perform @ app.min.js:8

g @ app.min.js:6

perform @ app.min.js:8

batchedUpdates @ app.min.js:5

r @ app.min.js:7

_renderNewRootComponent @ app.min.js:6

ReactMount__renderNewRootComponent @ app.min.js:6

_renderSubtreeIntoContainer @ app.min.js:6

render @ app.min.js:6

React_render @ app.min.js:6

D @ app.min.js:47

h @ app.min.js:10

fireWith @ app.min.js:10

(anonymous) @ app.min.js:10

h @ app.min.js:10

fireWith @ app.min.js:10

s.(anonymous function) @ app.min.js:10

(anonymous) @ app.min.js:12

h @ app.min.js:10

fireWith @ app.min.js:10

s.(anonymous function) @ app.min.js:10

load (async)

l @ app.min.js:12

scriptSync @ app.min.js:12

sync @ app.min.js:12

sync @ app.min.js:11

fetch @ app.min.js:11

(anonymous) @ app.min.js:47

u @ app.min.js:1

(anonymous) @ app.min.js:1

setTimeout (async)

c @ app.min.js:1

(anonymous) @ app.min.js:47

u @ app.min.js:1

(anonymous) @ app.min.js:1

setTimeout (async)

c @ app.min.js:1

(anonymous) @ app.min.js:47

u @ app.min.js:1

(anonymous) @ app.min.js:1

setTimeout (async)

c @ app.min.js:1

(anonymous) @ app.min.js:47


In reply to Adam Cripps

Re: SCORM modules not loading

by Adam Cripps -

I should also mention that this filesystem is large (40 GB) and rests on a Network File Server (NFS) which is mounted on the apache server, which is then mounted as the moodle datadir.

In reply to Adam Cripps

Re: SCORM modules not loading

by Adam Cripps -

OK - this turns out to be a performance issue. When I allocate more RAM, the problem becomes much more intermittent. Is NFS still recommended, or can memcached take the place of this server? (Can you tell that I've never used memcache before?)

Average of ratings: Useful (2)