Picture of Bjoern Nira
Error Previewing my Course in the Adapt Authoring Tool
by Bjoern Nira - Thursday, 7 January 2016, 8:15 AM
 

Hi guys,

I am very new to Adapt and the Authoring tool.

From the documentation and videos I am really eager to try it out.

Unfortunately I get an error creating the preview or trying to download the build via the Webfrontend.

My machine configuration:

Ubuntu Linux 15.10 desktop 32 Bit (running in a Virtual Box environment)


MongoDB v2.6.10


NodeJS v4.2.4 (also tried it with v4.2.2 brings up the same error as described in the end)


grunt-cli v0.1.13


Adapt 2.0.2


Installing the Authroing tool, I followed the instructions on https://github.com/adaptlearning/adapt_authoring/wiki/Installing-Adapt-Origin


Everything seems to work so far.

I am abled to login, to create a course, to add components.

When I added just a basic text component to my article within my course and press the preview button it loads a while and shows an error in the frontend telling an error occured and I should contact my administrator.

On the server console it prints out the following messages and errors.

info: [07 Jan 2016 08:50:11 +01:00] 3.1. Ensuring framework build exists
info: [07 Jan 2016 08:50:11 +01:00] 3.2. Using theme: adapt-contrib-vanilla
info: [07 Jan 2016 08:50:11 +01:00] 3.3. Using menu: adapt-contrib-boxMenu
info: [07 Jan 2016 08:50:11 +01:00] grunt server-build:prod --outputdir=courses/568cd88988c4a0521bf3c44b/568e189cb98d28020839ce99/build --theme=adapt-contrib-vanilla --menu=adapt-contrib-boxMenu
error: [07 Jan 2016 08:51:06 +01:00] exec error: Error: Command failed: /bin/sh -c grunt server-build:prod --outputdir=courses/568cd88988c4a0521bf3c44b/568e189cb98d28020839ce99/build --theme=adapt-contrib-vanilla --menu=adapt-contrib-boxMenu

error: [07 Jan 2016 08:51:06 +01:00] stdout error: Running "server-build:prod" (server-build) task

Running "copy:index" (copy) task
Copied 1 file

Running "copy:courseAssets" (copy) task


Running "copy:courseJson" (copy) task


Running "copy:componentAssets" (copy) task
Copied 13 files

Running "copy:componentFonts" (copy) task


Running "copy:extensionAssets" (copy) task


Running "copy:extensionFonts" (copy) task


Running "copy:menuAssets" (copy) task


Running "copy:menuFonts" (copy) task


Running "copy:themeAssets" (copy) task
Copied 11 files

Running "copy:themeFonts" (copy) task
Copied 4 files

Running "copy:main" (copy) task
Copied 18 files

Running "concat:less" (concat) task
File src/less/adapt.less created.

Running "less:dist" (less) task
File courses/568cd88988c4a0521bf3c44b/568e189cb98d28020839ce99/build/adapt/css/adapt.css created: 128.43 kB → 108.11 kB

Running "handlebars:compile" (handlebars) task
>> 1 file created.

Running "bower:target" (bower) task
Updated RequireJS config with installed Bower components

Running "requirejs-bundle:components" (requirejs-bundle) task

Running "requirejs-bundle:extensions" (requirejs-bundle) task

Running "requirejs-bundle:menu" (requirejs-bundle) task

Running "requirejs-bundle:theme" (requirejs-bundle) task

Running "requirejs:compile" (requirejs) task
{ [Error: Error: Module loading did not complete for: core/js/app, coreJS/adapt, coreModels/lockingModel, backbone, coreJS/router, coreModels/routerModel, coreViews/pageView, coreViews/adaptView, coreViews/articleView, coreViews/blockView, coreJS/drawer, coreViews/drawerView, coreJS/device, coreJS/popupManager, coreJS/notify, coreViews/notifyView, coreViews/notifyPushView, coreModels/notifyModel, coreJS/accessibility, coreViews/accessibilityView, coreViews/navigationView, coreJS/adaptCollection, coreModels/configModel, coreModels/courseModel, coreModels/adaptModel, coreModels/contentObjectModel, coreModels/articleModel, coreModels/blockModel, coreModels/componentModel, coreJS/offlineStorage, components/components, components/adapt-contrib-accordion/js/adapt-contrib-accordion, coreViews/componentView, components/adapt-contrib-assessmentResults/js/adapt-contrib-assessmentResults, components/adapt-contrib-blank/js/adapt-contrib-blank, components/adapt-contrib-gmcq/js/adapt-contrib-gmcq, components/adapt-contrib-mcq/js/adapt-contrib-mcq, coreViews/questionView, coreViews/buttonsView, components/adapt-contrib-graphic/js/adapt-contrib-graphic, components/adapt-contrib-hotgraphic/js/adapt-contrib-hotgraphic, components/adapt-contrib-matching/js/adapt-contrib-matching, components/adapt-contrib-media/js/adapt-contrib-media, components/adapt-contrib-narrative/js/adapt-contrib-narrative, components/adapt-contrib-slider/js/adapt-contrib-slider, components/adapt-contrib-text/js/adapt-contrib-text, components/adapt-contrib-textInput/js/adapt-contrib-textInput, extensions/extensions, extensions/adapt-contrib-assessment/js/adapt-assessmentArticleExtension, extensions/adapt-contrib-assessment/js/adapt-assessmentArticleView, extensions/adapt-contrib-assessment/js/adapt-assessmentArticleModel, extensions/adapt-contrib-assessment/js/assessment, extensions/adapt-contrib-bookmarking/js/adapt-contrib-bookmarking, extensions/adapt-contrib-pageLevelProgress/js/adapt-contrib-pageLevelProgress, extensions/adapt-contrib-pageLevelProgress/js/PageLevelProgressMenuView, extensions/adapt-contrib-pageLevelProgress/js/PageLevelProgressNavigationView, extensions/adapt-contrib-pageLevelProgress/js/PageLevelProgressView, extensions/adapt-contrib-resources/js/adapt-contrib-resources, extensions/adapt-contrib-resources/js/adapt-contrib-resourcesView, extensions/adapt-contrib-spoor/js/adapt-contrib-spoor, extensions/adapt-contrib-spoor/js/adapt-stateful-session, extensions/adapt-contrib-spoor/js/serializers/default, extensions/adapt-contrib-spoor/js/serializers/questions, extensions/adapt-contrib-spoor/js/adapt-offlineStorage-scorm, extensions/adapt-contrib-trickle/js/adapt-contrib-trickle, extensions/adapt-contrib-trickle/js/Utility/Models, extensions/adapt-contrib-trickle/js/trickle-tutorPlugin, extensions/adapt-contrib-trickle/js/trickle-buttonPlugin, extensions/adapt-contrib-trickle/js/trickle-buttonView, extensions/adapt-contrib-trickle/js/trickle-buttonModel, extensions/adapt-contrib-tutor/js/adapt-contrib-tutor, menu/menu, menu/adapt-contrib-boxMenu/js/adapt-contrib-boxmenu, coreViews/menuView, theme/theme, theme/adapt-contrib-vanilla/js/vanilla, theme/adapt-contrib-vanilla/js/theme-block
The following modules share the same URL. This could be a misconfiguration if that URL only has one anonymous module in it:
/home/ubuntu32/Desktop/adapt_authoring/temp/568cd88988c4a0521bf3c44b/adapt_framework/src/core/js/libraries/backbone.js: backbone, backbone
    at Function.build.checkForErrors (/home/ubuntu32/Desktop/adapt_authoring/temp/568cd88988c4a0521bf3c44b/adapt_framework/node_modules/grunt-contrib-requirejs/node_modules/requirejs/bin/r.js:31556:19)
]
  originalError:
   [Error: Module loading did not complete for: core/js/app, coreJS/adapt, coreModels/lockingModel, backbone, coreJS/router, coreModels/routerModel, coreViews/pageView, coreViews/adaptView, coreViews/articleView, coreViews/blockView, coreJS/drawer, coreViews/drawerView, coreJS/device, coreJS/popupManager, coreJS/notify, coreViews/notifyView, coreViews/notifyPushView, coreModels/notifyModel, coreJS/accessibility, coreViews/accessibilityView, coreViews/navigationView, coreJS/adaptCollection, coreModels/configModel, coreModels/courseModel, coreModels/adaptModel, coreModels/contentObjectModel, coreModels/articleModel, coreModels/blockModel, coreModels/componentModel, coreJS/offlineStorage, components/components, components/adapt-contrib-accordion/js/adapt-contrib-accordion, coreViews/componentView, components/adapt-contrib-assessmentResults/js/adapt-contrib-assessmentResults, components/adapt-contrib-blank/js/adapt-contrib-blank, components/adapt-contrib-gmcq/js/adapt-contrib-gmcq, components/adapt-contrib-mcq/js/adapt-contrib-mcq, coreViews/questionView, coreViews/buttonsView, components/adapt-contrib-graphic/js/adapt-contrib-graphic, components/adapt-contrib-hotgraphic/js/adapt-contrib-hotgraphic, components/adapt-contrib-matching/js/adapt-contrib-matching, components/adapt-contrib-media/js/adapt-contrib-media, components/adapt-contrib-narrative/js/adapt-contrib-narrative, components/adapt-contrib-slider/js/adapt-contrib-slider, components/adapt-contrib-text/js/adapt-contrib-text, components/adapt-contrib-textInput/js/adapt-contrib-textInput, extensions/extensions, extensions/adapt-contrib-assessment/js/adapt-assessmentArticleExtension, extensions/adapt-contrib-assessment/js/adapt-assessmentArticleView, extensions/adapt-contrib-assessment/js/adapt-assessmentArticleModel, extensions/adapt-contrib-assessment/js/assessment, extensions/adapt-contrib-bookmarking/js/adapt-contrib-bookmarking, extensions/adapt-contrib-pageLevelProgress/js/adapt-contrib-pageLevelProgress, extensions/adapt-contrib-pageLevelProgress/js/PageLevelProgressMenuView, extensions/adapt-contrib-pageLevelProgress/js/PageLevelProgressNavigationView, extensions/adapt-contrib-pageLevelProgress/js/PageLevelProgressView, extensions/adapt-contrib-resources/js/adapt-contrib-resources, extensions/adapt-contrib-resources/js/adapt-contrib-resourcesView, extensions/adapt-contrib-spoor/js/adapt-contrib-spoor, extensions/adapt-contrib-spoor/js/adapt-stateful-session, extensions/adapt-contrib-spoor/js/serializers/default, extensions/adapt-contrib-spoor/js/serializers/questions, extensions/adapt-contrib-spoor/js/adapt-offlineStorage-scorm, extensions/adapt-contrib-trickle/js/adapt-contrib-trickle, extensions/adapt-contrib-trickle/js/Utility/Models, extensions/adapt-contrib-trickle/js/trickle-tutorPlugin, extensions/adapt-contrib-trickle/js/trickle-buttonPlugin, extensions/adapt-contrib-trickle/js/trickle-buttonView, extensions/adapt-contrib-trickle/js/trickle-buttonModel, extensions/adapt-contrib-tutor/js/adapt-contrib-tutor, menu/menu, menu/adapt-contrib-boxMenu/js/adapt-contrib-boxmenu, coreViews/menuView, theme/theme, theme/adapt-contrib-vanilla/js/vanilla, theme/adapt-contrib-vanilla/js/theme-block
   The following modules share the same URL. This could be a misconfiguration if that URL only has one anonymous module in it:
   /home/ubuntu32/Desktop/adapt_authoring/temp/568cd88988c4a0521bf3c44b/adapt_framework/src/core/js/libraries/backbone.js: backbone, backbone] }

error: [07 Jan 2016 08:51:06 +01:00] Error: Command failed: /bin/sh -c grunt server-build:prod --outputdir=courses/568cd88988c4a0521bf3c44b/568e189cb98d28020839ce99/build --theme=adapt-contrib-vanilla --menu=adapt-contrib-boxMenu

error: [07 Jan 2016 08:51:06 +01:00] Error: Command failed: /bin/sh -c grunt server-build:prod --outputdir=courses/568cd88988c4a0521bf3c44b/568e189cb98d28020839ce99/build --theme=adapt-contrib-vanilla --menu=adapt-contrib-boxMenu

The strange thing is, sometimes it builds the preview and I can browse it. But most of the time the build fails with the error shown above.

Do you have any idea?

Thanks in advance.

Cheers, Bjoern

 

Picture of Brian Quinn
Re: Error Previewing my Course in the Adapt Authoring Tool
by Brian Quinn - Friday, 8 January 2016, 9:27 AM
 

Hi Bjoern,

Sorry to hear that you're having problems.  I haven't seen that error before, though it looks like it's coming from the Gruntfile.js in the adapt_framework.

Have you tried the Vagrant installation?

Brian

Picture of Bjoern Nira
Re: Error Previewing my Course in the Adapt Authoring Tool
by Bjoern Nira - Friday, 8 January 2016, 10:54 AM
 

Hi Brian,

many thanks for your reply.

I don't got the point why the vagrant way should solve the problems. Especially because some how it works sometimes but other times it doesn't.

As far as I can see it, the vagrant installation will do the same steps (automated) that I do on the manual way. Am I wrong? Additionally the idea is, that the authoring tool will not run in my VM environment but it will run on a physical server so that I don't want to install Vagrant and VirtualBox on it.

Are you running the authoring tool the server/manual installation way?

if(answer==true)

{

    would you be so kind to post your exact version numbers of node.js, npm, grunt-cli, adapt-cli

}

else

{

    wish me luck ;-)

}

 

cheers, björn

Picture of Brian Quinn
Re: Error Previewing my Course in the Adapt Authoring Tool
by Brian Quinn - Friday, 8 January 2016, 11:40 AM
 

Hi Björn,

No problem.  I'm not implying that the Vagrant install solves the problem you're having, I was just suggesting it as part of a process of elimination, as you mentioned you were running Ubuntu in a VM environment anyway, and this might help track down the source of the problem -- whether it is environmental or code.

I'm running the authoring tool the server/manual installation way, and on multiple (Ubuntu) servers, and I have never seen the issue you've mentioned before.  Here are my versions:

  • Node.js v 4.2.2
  • npm 3.3.12
  • grunt-cli v0.1.13
  • grunt v0.4.5
  • adapt-cli v2.0.2

Regards,

Brian