Hi guys, hope I can find some help here.
Setup:
Ubuntu 16.04
AT 0.4.1
Framework 2.2.5
Node: 6.12.3
npm: 4.6.1
Everything works fine, I can create courses, add Assets and blocks, preview or download, so everything okay so far.
But when I'm working in the Webinterface while creating a course,the node server crashes very often and stops working, have to start the Server every time again to continue my work.
Every time the server crashes it throws the following error from the started node server session:
root@adapt01:~/install/adapt_authoring# node server
(node:108229) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
info: [06 Feb 2018 11:34:38 +01:00] configuration loaded from /root/install/adapt_authoring/conf/config.json
info: [06 Feb 2018 11:34:38 +01:00] Supporting the following authentication types:
info: [06 Feb 2018 11:34:38 +01:00] - local
info: [06 Feb 2018 11:34:39 +01:00] Adapt authoring tool 0.4.1.
info: [06 Feb 2018 11:34:39 +01:00] Adapt framework 2.2.5.
info: [06 Feb 2018 11:34:39 +01:00] Connection established: adapt-tenant-master
info: [06 Feb 2018 11:37:12 +01:00] Retrieving JSON
info: [06 Feb 2018 11:37:13 +01:00] All assets processed
/root/install/adapt_authoring/node_modules/bluebird/js/release/async.js:61
fn = function () { throw arg; };
^
RangeError: Invalid status code: 0
at ServerResponse.writeHead (_http_server.js:192:11)
at ServerResponse.writeHead (/root/install/adapt_authoring/node_modules/on-headers/index.js:55:19)
at ServerResponse.writeHead (/root/install/adapt_authoring/node_modules/on-headers/index.js:55:19)
at ServerResponse._implicitHeader (_http_server.js:157:8)
at ServerResponse.end (/root/install/adapt_authoring/node_modules/compression/index.js:103:14)
at writeend (/root/install/adapt_authoring/node_modules/express-session/index.js:261:22)
at MongoStore.onsave (/root/install/adapt_authoring/node_modules/express-session/index.js:335:11)
at MongoStore.tryCatcher (/root/install/adapt_authoring/node_modules/bluebird/js/release/util.js:16:23)
at Promise.successAdapter [as _fulfillmentHandler0] (/root/install/adapt_authoring/node_modules/bluebird/js/release/nodeify.js:23:30)
at Promise._settlePromise (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:566:21)
at Promise._settlePromise0 (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/root/install/adapt_authoring/node_modules/bluebird/js/release/promise.js:638:18)
at /root/install/adapt_authoring/node_modules/bluebird/js/release/nodeback.js:42:21
at handleCallback (/root/install/adapt_authoring/node_modules/mongoose/node_modules/mongodb/lib/utils.js:96:12)
at /root/install/adapt_authoring/node_modules/mongoose/node_modules/mongodb/lib/collection.js:974:5
root@adapt01:~/install/adapt_authoring#
Any ideas how to solve my crashing problem?
Hi,
I have the exact (?) same problem.
Ubuntu 16.04.4 LTS
Framework 2.2.5
Authoring 0.4.1
To the best of my knowledge I have followed every step of the installation instructions. It always fails on the same issue. Node server has to be restarted. This seems to be connected with the preview function.
Is there some configuration I am missing?
teacher@sestotng13:/opt/adapt_authoring$ sudo node server
(node:2528) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
info: [11 Apr 2018 14:08:17 +02:00] configuration loaded from /opt/adapt_authoring/conf/config.json
info: [11 Apr 2018 14:08:17 +02:00] Supporting the following authentication types:
info: [11 Apr 2018 14:08:17 +02:00] - local
info: [11 Apr 2018 14:08:23 +02:00] Adapt authoring tool 0.4.1.
info: [11 Apr 2018 14:08:23 +02:00] Adapt framework 2.2.5.
info: [11 Apr 2018 14:08:23 +02:00] Connection established: adapt-tenant-master
info: [11 Apr 2018 14:36:48 +02:00] Retrieving JSON
info: [11 Apr 2018 14:36:48 +02:00] All assets processed
RangeError: Invalid status code: 0
at ServerResponse.writeHead (_http_server.js:192:11)
at ServerResponse.writeHead (/opt/adapt_authoring/node_modules/on-headers/index.js:55:19)
at ServerResponse.writeHead (/opt/adapt_authoring/node_modules/on-headers/index.js:55:19)
at ServerResponse._implicitHeader (_http_server.js:157:8)
at ServerResponse.end (/opt/adapt_authoring/node_modules/compression/index.js:103:14)
at writeend (/opt/adapt_authoring/node_modules/express-session/index.js:261:22)
at MongoStore.onsave (/opt/adapt_authoring/node_modules/express-session/index.js:335:11)
at MongoStore.tryCatcher (/opt/adapt_authoring/node_modules/bluebird/js/release/util.js:16:23)
at Promise.successAdapter (/opt/adapt_authoring/node_modules/bluebird/js/release/nodeify.js:23:30)
at bound (domain.js:280:14)
at Promise.runBound [as _fulfillmentHandler0] (domain.js:293:12)
at Promise._settlePromise (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:566:21)
at Promise._settlePromise0 (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:638:18)
at /opt/adapt_authoring/node_modules/bluebird/js/release/nodeback.js:42:21
/opt/adapt_authoring/node_modules/bluebird/js/release/async.js:61
fn = function () { throw arg; };
^
RangeError: Invalid status code: 0
at ServerResponse.writeHead (_http_server.js:192:11)
at ServerResponse.writeHead (/opt/adapt_authoring/node_modules/on-headers/index.js:55:19)
at ServerResponse.writeHead (/opt/adapt_authoring/node_modules/on-headers/index.js:55:19)
at ServerResponse._implicitHeader (_http_server.js:157:8)
at ServerResponse.end (/opt/adapt_authoring/node_modules/compression/index.js:103:14)
at writeend (/opt/adapt_authoring/node_modules/express-session/index.js:261:22)
at MongoStore.onsave (/opt/adapt_authoring/node_modules/express-session/index.js:335:11)
at MongoStore.tryCatcher (/opt/adapt_authoring/node_modules/bluebird/js/release/util.js:16:23)
at Promise.successAdapter [as _fulfillmentHandler0] (/opt/adapt_authoring/node_modules/bluebird/js/release/nodeify.js:23:30)
at Promise._settlePromise (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:566:21)
at Promise._settlePromise0 (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/opt/adapt_authoring/node_modules/bluebird/js/release/promise.js:638:18)
at /opt/adapt_authoring/node_modules/bluebird/js/release/nodeback.js:42:21
at handleCallback (/opt/adapt_authoring/node_modules/mongoose/node_modules/mongodb/lib/utils.js:96:12)
at /opt/adapt_authoring/node_modules/mongoose/node_modules/mongodb/lib/collection.js:974:5
teacher@sestotng13:
Hello Marco,
In my opinion it's an issue related to the nodejs version.
Install nodejs 4.x (choose an LTS) and run "node server" again (I'm not sure if you need to run again "npm install" before).
By the way, on my Ubuntu 16.04 with Nodejs 4.x it works, so you can try to reinstall from scratch having node 4.
Ciao, Fabio.