Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Chuck Lorenz
@chucklorenz
no, I think the AAT is expecting the src code of the plugins the course is using. It wants to check versions.
plugins aren't in the repo
they get install by npm
Sam Howell
@squire:privacytools.io
[m]
ok thanks, will just go the FW route then
Chuck Lorenz
@chucklorenz
:thumbsup: And @squire:privacytools.io, a default course in the AAT has been discussed in the past. Not saying that you can't revive the discussion--just that it has been considered.
Sam Howell
@squire:privacytools.io
[m]
yeah I assumed there would be some reason for not implementing it (yet/ever)
Sam Howell
@squire:privacytools.io
[m]
having trouble importing the course now. I zipped up the framework course from the root, so it contains node_modules etc. I haven't removed anything, but it won't import. hard to tell if it's a server issue or import issue
Sam Howell
@squire:privacytools.io
[m]

Must be the way I zipped it:

Encountered an unexpected file structure. Please check you have uploaded a valid export package and try again.

The course folder structure looks like this:

node_modules
src
adapt.json
CHANGELOG.md
GRUNT.md
Gruntfile.js
INSTALL.md
jsconfig.json
LICENSE
package.json
package-lock.json
README.md
Chuck Lorenz
@chucklorenz
Plus, sometimes "file structure" errors are due to whether the zipped file contains or doesn't contain a secondary wrapping folder.
Sam Howell
@squire:privacytools.io
[m]
yeah, still struggling, it's annoying as it never seems to work first time. clearly i'm just doing it wrong
Sam Howell
@squire:privacytools.io
[m]
ok the zip must be OK as I've managed to import it into my VM instance. just need to figure out why the other server won't import it
Chuck Lorenz
@chucklorenz
still getting the file structure error or something else?
Sam Howell
@squire:privacytools.io
[m]
about to find out, currently in progress
it gets to halfway then the progress bar starts from the beginning again :S
... then "course import failed" and no further info
Chuck Lorenz
@chucklorenz
crazy. Have you eliminated node_modules?
is file size an issue?
max import size can be adjusted
Sam Howell
@squire:privacytools.io
[m]
yeah it wasn't in the folder, that's why it worked importing to VM, just won't import into this server. it's only 7.8MB
it must be something specific to this instance
(or server)
ok maybe not, i tested another way by exporting new AT course, then importing, and that works fine... so maybe versioning issue?
Chuck Lorenz
@chucklorenz
pushing my experience with import problems. Haven't encountered many. However, I'm surprised that it is failing without a specific error message.
maybe some clue in the server logs??
Sam Howell
@squire:privacytools.io
[m]

I think it may be a memory issue. I now get this trying to import a ~3MB zip:

Request Entity Too Large

Console warning:

Will-change memory consumption is too high. Budget limit is the document surface area multiplied by 3 (1803040 px). Occurrences of will-change over the budget will be ignored.
Chuck Lorenz
@chucklorenz
good clue
Sam Howell
@squire:privacytools.io
[m]
still not sure though. I've just kept my eye on htop via shell into server, monitoring memory usage, and it wasn't maxing out, so i figure it must be something else...
No idea what this is... Request Entity Too Large
so i'll need to find out how to adjust this for nginx
Chuck Lorenz
@chucklorenz
default for AAT is 200MB, I believe. I've had courses with many images that went higher. Might consider upping that too at this point while you're at it. There's a post or two in the forums about where to do that. (I think the framework might be optimizing images now; but lots of courses authors, in my experience, forget to optimize images before uploading.)
Sam Howell
@squire:privacytools.io
[m]
OK got it working :) I just needed to tell nginx to allow uploads of up to 20MB
Chuck Lorenz
@chucklorenz
:thumbsup:
Sam Howell
@squire:privacytools.io
[m]
by default there was no setting at all, so it was potentially not allowing any uploads
thanks for the tips
Chuck Lorenz
@chucklorenz
np
kateblocki
@kateblocki
Hi Not sure if anyone can help but is it possible to change the navigation so that you go from main menu module one to submenu module 1, then back to main menu 2 then submenu 2? I am having issues with quick assessments and end of module assessments that have a 60% pass mark. I am putting the end of module assessment on separate section but don't want to over load the screen with lots of modules. I read something from2016 that it might not be possible in the adapt auth tool version but wondered if things ahad changed and now you can alternate between sub menu and main menu?
Simon Date
@simondate
@kateblocki Do you mean navigating using the back button (top left in the nav bar) or navigating using a compoent/extension like QuickNav?
Sam Howell
@squire:privacytools.io
[m]
What's the recommended way to insert a script tag into the head of the authoring tool html page?
tomgreenfield
@tomgreenfield
there isn't a recommended way, so hack it however you see fit?
Sam Howell
@squire:privacytools.io
[m]
Thanks, where would I start in adapt_authoring directory? I had a look for a handlebars template, but not sure where this is exactly, and whether this would be the best file to edit.
Sam Howell
@squire:privacytools.io
[m]
👍️
Matt Leathes
@moloko
@chucklorenz to optimise images in the framework do grunt compress && grunt build (IIRC)
grunt compress will optimise the images in the src/course folder, then grunt build (or grunt dev) copies them to the build folder
... not that you need to upload the build folder to the AAT
Chuck Lorenz
@chucklorenz
Yes, that's my understanding
Rob Meals
@rmeals
Hello, I am trying to get the authoring environment to load from a new AWS instance. Seems install has worked, and I am able to log in. However, I only have usability on the Plugin Management page. Everything else is (effectively) blank. Wondering if this is a common issue that can be corrected. TIA!
Rob Meals
@rmeals
Upon further reading, I see the following in my server logs: Error: Failed to determine user's tenant! I tried "npm install mongoose@5.8.13 " and after a server reboot, the same error occurs. Any ideas would be appreciated.