Picture of Nadia H
Course clone/export/publish/preview failed errors
by Nadia H - Thursday, 1 November 2018, 4:36 PM
 

I have been trying to clone a course with no success within the authoring tool (v0.5.0 with Adapt framework v2.2.5). Instead of getting the usual resulting page allowing you to name the course etc and add the course settings I get an error message with the following:

Error

Something went wrong during duplication.
Please try again.

In the node server log, I can see:

error: [01 Nov 2018 16:07:16 +00:00] ValidationError: _parentId: Path `_parentId` is required.

error: [01 Nov 2018 16:07:16 +00:00] ValidationError: _parentId: Path `_parentId` is required.

error: [01 Nov 2018 16:07:16 +00:00] ValidationError: _parentId: Path `_parentId` is required.

Back in the authoring tool, I can see a copied course however on attempting to edit the course, i get another error message:

Error

Oops, something went wrong!

---------

I figured instead of trying to clone the course within the tool, I could try exporting it and reimporting it. Cue more errors.

In the authoring tool I get:

Export failes.. Internal server error. ENOENT: no such file or directory, open

and in the server log:

info: [01 Nov 2018 14:27:43 +00:00] Retrieving JSON

info: [01 Nov 2018 14:29:12 +00:00] All assets processed

info: [01 Nov 2018 14:29:43 +00:00] Retrieving JSON

error: [01 Nov 2018 14:29:52 +00:00] Error: ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/70376d4b962087cfdd57ca2aca4962b804ae7af5.png'

error: [01 Nov 2018 14:29:52 +00:00] Error: ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/70376d4b962087cfdd57ca2aca4962b804ae7af5.png'

error: [01 Nov 2018 14:29:52 +00:00] Unable to export: [ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/70376d4b962087cfdd57ca2aca4962b804ae7af5.png']

error: [01 Nov 2018 14:29:52 +00:00] Error: ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/722f52cd162675bc94808f7cf376e25029f9ab97.jpg'

/opt/adapt_authoring/node_modules/async/dist/async.js:966

        if (fn === null) throw new Error("Callback was already called.");

                         ^

 

Error: Callback was already called.

    at /opt/adapt_authoring/node_modules/async/dist/async.js:966:32

    at /opt/adapt_authoring/node_modules/async/dist/async.js:3885:13

    at Archiver.<anonymous> (/opt/adapt_authoring/plugins/output/adapt/index.js:228:9)

    at emitOne (events.js:101:20)

    at Archiver.emit (events.js:188:7)

    at Archiver.<anonymous> (/opt/adapt_authoring/node_modules/archiver/lib/core.js:188:12)

    at handleStuff (/opt/adapt_authoring/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:176:5)

    at g (events.js:292:16)

    at emitNone (events.js:91:20)

    at emit (events.js:185:7)

    at endReadableNT (_stream_readable.js:974:12)

    at _combinedTickCallback (internal/process/next_tick.js:80:11)

    at process._tickDomainCallback (internal/process/next_tick.js:128:9)

 

I have set all permissions for directories to 775. I suspect the authoring tool is timing because the course is large and has quite a few assets. Also takes a while to preview probably for this very reason. Which is why I am attempting to clone it so I can break it down into smaller modules.

 

The export process basically ends my node server script despite me having a server with 32Gb of memory, with node server being allocates 20Gb of that.

 

On attempting to publish this very same course, I get a similar error in the server log:

info: [01 Nov 2018 14:49:56 +00:00] All assets processed

info: [01 Nov 2018 14:50:03 +00:00] About to publish

info: [01 Nov 2018 14:50:03 +00:00] Retrieving JSON

info: [01 Nov 2018 14:51:43 +00:00] About to publish

info: [01 Nov 2018 14:51:43 +00:00] Retrieving JSON

info: [01 Nov 2018 14:54:10 +00:00] About to publish

info: [01 Nov 2018 14:54:10 +00:00] Retrieving JSON

info: [01 Nov 2018 14:54:10 +00:00] About to publish

info: [01 Nov 2018 14:54:10 +00:00] Retrieving JSON

info: [01 Nov 2018 14:54:30 +00:00] About to publish

info: [01 Nov 2018 14:54:30 +00:00] Retrieving JSON

info: [01 Nov 2018 14:56:11 +00:00] About to publish

info: [01 Nov 2018 14:56:11 +00:00] Retrieving JSON

info: [01 Nov 2018 14:56:11 +00:00] About to publish

info: [01 Nov 2018 14:56:11 +00:00] Retrieving JSON

info: [01 Nov 2018 14:56:31 +00:00] About to publish

info: [01 Nov 2018 14:56:31 +00:00] Retrieving JSON

Error: ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/76d15bbec1729b3d2516a88007fafb78e4a559a3.jpg'

    at Error (native)

error: [01 Nov 2018 14:57:40 +00:00] Error: ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/12072f78ed7d48004a77f344b970ce3dca2e5ac5.jpg'

error: [01 Nov 2018 14:57:40 +00:00] Error: ENOENT: no such file or directory, open '/opt/adapt_authoring/temp/5b599427bc9be832e1483794/adapt_framework/courses/5b599427bc9be832e1483794/5b60368d1092ca3345890a03/build/course/en/assets/12072f78ed7d48004a77f344b970ce3dca2e5ac5.jpg'

error: [01 Nov 2018 14:57:40 +00:00] Unable to publish

info: [01 Nov 2018 14:57:41 +00:00] All assets processed

info: [01 Nov 2018 15:01:37 +00:00] All assets processed

info: [01 Nov 2018 15:02:20 +00:00] All assets processed

info: [01 Nov 2018 15:02:20 +00:00] All assets processed

info: [01 Nov 2018 15:02:29 +00:00] All assets processed

info: [01 Nov 2018 15:02:30 +00:00] All assets processed

info: [01 Nov 2018 15:02:31 +00:00] All assets processed

But in the authoring tool I get:

app.errorfetchingdata

 

 Sometimes the tool seems to crash the node server command even when attempting to preview the course.

We really need to get this thing published asap so any help would be greatly appreciated.

 Thanks!