adaptlearning / adapt_authoring

A server-based user interface for authoring eLearning courses using the Adapt framework.
https://www.adaptlearning.org/
GNU General Public License v3.0
504 stars 275 forks source link

setup authoring,with framework,but Errors on run #2763

Open xdsnet opened 2 weeks ago

xdsnet commented 2 weeks ago

Subject of the issue/enhancement/features

have some Errs.

Your environment

Steps to reproduce

setup adapt_framework on adapt_authoring, but get those message:

adapt_framework switched to revision tags/v5.37.9
Node dependencies installed successfully.
Failed to install adapt-contrib-vanilla, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-vanilla failed: ETIMEDOUT
Failed to install adapt-contrib-text, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-text failed: ETIMEDOUT
Failed to install adapt-contrib-narrative, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-narrative failed: ETIMEDOUT
Failed to install adapt-contrib-media, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-media failed: ETIMEDOUT
Failed to install adapt-contrib-hotgraphic, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-hotgraphic failed: ETIMEDOUT
Failed to install adapt-contrib-blank, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-blank failed: ETIMEDOUT
Failed to install adapt-contrib-accordion, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-accordion failed: ETIMEDOUT
Failed to install adapt-contrib-graphic, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-graphic failed: ETIMEDOUT
Failed to install adapt-contrib-matching, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-matching failed: ETIMEDOUT
Failed to install adapt-contrib-textInput, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-textInput failed: ETIMEDOUT
Failed to install adapt-contrib-mcq, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-mcq failed: ETIMEDOUT
Failed to install adapt-contrib-gmcq, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-gmcq failed: ETIMEDOUT
Failed to install adapt-contrib-assessment, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-assessment failed: ETIMEDOUT
Failed to install adapt-contrib-assessmentResults, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-assessmentResults failed: ETIMEDOUT
Failed to install adapt-contrib-trickle, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-trickle failed: ETIMEDOUT
Failed to install adapt-contrib-tutor, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-tutor failed: ETIMEDOUT
Failed to install adapt-contrib-boxMenu, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-boxMenu failed: ETIMEDOUT
Failed to install adapt-contrib-pageLevelProgress, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-pageLevelProgress failed: ETIMEDOUT
Failed to install adapt-contrib-resources, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-resources failed: ETIMEDOUT
Failed to install adapt-contrib-slider, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-slider failed: ETIMEDOUT
Failed to install adapt-contrib-spoor, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-spoor failed: ETIMEDOUT
Failed to install adapt-contrib-bookmarking, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-bookmarking failed: ETIMEDOUT
Failed to install adapt-contrib-languagePicker, Error: Request to http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-languagePicker failed: ETIMEDOUT
Adapt framework plugins updated.

so ,run adapt_authoring ,get those message:

node:events:495
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot set properties of undefined (setting 'title')
    at /opt/adapt/lib/contentmanager.js:630:62
    at /opt/adapt/lib/contentmanager.js:764:9
    at wrapper (/opt/adapt/node_modules/async/dist/async.js:271:20)
    at iteratorCallback (/opt/adapt/node_modules/async/dist/async.js:501:17)
    at /opt/adapt/node_modules/async/dist/async.js:327:20
    at /opt/adapt/lib/contentmanager.js:761:11
    at wrapper (/opt/adapt/node_modules/async/dist/async.js:271:20)
    at iteratorCallback (/opt/adapt/node_modules/async/dist/async.js:501:17)
    at /opt/adapt/node_modules/async/dist/async.js:327:20
    at /opt/adapt/lib/contentmanager.js:750:20
    at /opt/adapt/node_modules/async/dist/async.js:2588:44
    at eachOfArrayLike (/opt/adapt/node_modules/async/dist/async.js:506:13)
    at eachOf (/opt/adapt/node_modules/async/dist/async.js:626:16)
    at awaitable (/opt/adapt/node_modules/async/dist/async.js:211:32)
    at Object.eachLimit (/opt/adapt/node_modules/async/dist/async.js:2691:16)
    at Object.awaitable (/opt/adapt/node_modules/async/dist/async.js:211:32)
    at /opt/adapt/lib/contentmanager.js:742:15
    at /opt/adapt/node_modules/async/dist/async.js:2588:44
    at eachOfArrayLike (/opt/adapt/node_modules/async/dist/async.js:506:13)
    at eachOf (/opt/adapt/node_modules/async/dist/async.js:626:16)
    at awaitable (/opt/adapt/node_modules/async/dist/async.js:211:32)
    at Object.eachLimit (/opt/adapt/node_modules/async/dist/async.js:2691:16)
    at Object.awaitable (/opt/adapt/node_modules/async/dist/async.js:211:32)
    at filterSchemas (/opt/adapt/lib/contentmanager.js:734:13)
    at /opt/adapt/lib/contentmanager.js:618:7
    at wrapper (/opt/adapt/node_modules/async/dist/async.js:271:20)
    at replenish (/opt/adapt/node_modules/async/dist/async.js:441:29)
    at iterateeCallback (/opt/adapt/node_modules/async/dist/async.js:430:21)
Emitted 'error' event on Function instance at:
    at /opt/adapt/node_modules/mongoose/lib/model.js:5084:15
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
oliverfoster commented 2 weeks ago

This is not a framework issue. Transfering to the AAT repo.

The registry server is working correctly http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-vanilla https://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-bookmarking

The issue is probably something to do with the configuration of your server, either not allowing unsecured connections or such.

I will update the default url to https. Otherwise, please try to ascertain why your server cannot connect to the address.