Picture of Jordan Ash
Error previewing a course with a custom theme
by Jordan Ash - Wednesday, 3 May 2017, 9:28 AM
 

I have been using adapt for a couple of months and I have been able to build a couple of courses with adapt running locally on my machine. I have modified the vanilla theme and installed some community plugins and everything works fine. 

We are trying to move to developing on a server version of adapt so we can share courses as a team. When I add my theme to this version of adapt it appears to work at first and I see the success message. When I try to preview or publish my course with the new theme selected I get an error message. Here is the log output:

 

info: [02 May 2017 17:34:29 +01:00] Retrieving JSON
info: [02 May 2017 17:34:29 +01:00] All assets processed
info: [02 May 2017 17:34:29 +01:00] 3.1. Ensuring framework build exists
info: [02 May 2017 17:34:29 +01:00] 3.2. Using theme: adapt-theme-community
info: [02 May 2017 17:34:29 +01:00] 3.3. Using menu: adapt-contrib-boxMenu
info: [02 May 2017 17:34:29 +01:00] grunt server-build:prod --outputdir=courses/58d53ec46fc9789f58fa558f/5908a400c168a32b7cc3196c/build --theme=adapt-theme-community --menu=adapt-contrib-boxMenu
error: [02 May 2017 17:34:30 +01:00] exec error: Error: Command failed: /bin/sh -c grunt server-build:prod --outputdir=courses/58d53ec46fc9789f58fa558f/5908a400c168a32b7cc3196c/build --theme=adapt-theme-community --menu=adapt-contrib-boxMenu
 
error: [02 May 2017 17:34:30 +01:00] stdout error: Running "server-build:prod" (server-build) task
 
Running "_log-vars" task
The following will be included in the build:
- adapt-theme-community
- adapt-contrib-boxMenu
- adapt-contrib-text
 
>> Using source at "/usr/share/adapt/adapt_authoring/temp/58d53ec46fc9789f58fa558f/adapt_framework/src/"
>> Building to "courses/58d53ec46fc9789f58fa558f/5908a400c168a32b7cc3196c/build/"
>> Using theme "adapt-theme-community"
>> Using menu "adapt-contrib-boxMenu"
 
Running "copy:index" (copy) task
Warning: EPERM: operation not permitted, futime Use --force to continue.
 
Aborted due to warnings.
 
 
Execution Time (2017-05-02 16:34:30 UTC)
loading tasks 49ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 70%
server-build:prod 2ms ▇ 3%
_log-vars 3ms ▇▇ 4%
loading grunt-contrib-copy 4ms ▇▇ 6%
copy:index 12ms ▇▇▇▇▇▇ 17%
Total 70ms
 
 
error: [02 May 2017 17:34:30 +01:00] Error: Command failed: /bin/sh -c grunt server-build:prod --outputdir=courses/58d53ec46fc9789f58fa558f/5908a400c168a32b7cc3196c/build --theme=adapt-theme-community --menu=adapt-contrib-boxMenu
 
error: [02 May 2017 17:34:30 +01:00] Error: Command failed: /bin/sh -c grunt server-build:prod --outputdir=courses/58d53ec46fc9789f58fa558f/5908a400c168a32b7cc3196c/build --theme=adapt-theme-community --menu=adapt-contrib-boxMenu
 
 
 
Any ideas why this might be happening?