Picture of Matthew Williams
assets not uploading, course not saving, "publish" not running
by Matthew Williams - Friday, 12 June 2015, 2:08 PM
 

Hi All

This is a consolidation of 2 earlier threads that I'm confident will be due to the same problem:

Have installed all the parts of Adapt, made sure I"m running Node 0.10.33, got Mongod running, and got the Authoring tool to start up ok. I've created a course, but it would not save to my dashboard, and just disappears. 

Furthermore, the authoring tool would not upload assets - the interface indicates upload successful, but files not viewable in dashboard. (They ARE created in the relevant assets folder of build directories.)

Furthermore, I tried publishing the current course, it outputted okay, but the course would not run.

Any help gratefully received - I need to get on with building courses asap!

Many thanks

Matthew

 

Picture of Helen Bailey
Re: assets not uploading, course not saving, "publish" not running
by Helen Bailey - Friday, 12 June 2015, 2:43 PM
 

Matthew would you be willing to screenshare on Skype or in a webinar environment where we could take a look? Send me a PM if you like.

Picture of Matthew Williams
Re: assets not uploading, course not saving, "publish" not running
by Matthew Williams - Friday, 12 June 2015, 4:53 PM
 

Further information: Helen and I just narrowed this down to what is likely a Node version problem - although I have 0.10.33 installed and operational, my system will not default to that version and keeps running 0.12.2.

Tried setting this with 

$ nvm alias default v0.10.33
$ default -> v0.10.33

But node server still defaulting to 0.12.2
 
I am having problems uninstalling Node - when I run the line
$ rm -rf /usr/local/lib/node_modules
I get Permission Denied to every action run in the terminal window. If anyone had some advice on uninstalling Node with this issue, that would be great, otherwise I'll report back next week with what I figure out trying to uninstall.
 
Picture of Helen Bailey
Re: assets not uploading, course not saving, "publish" not running
by Helen Bailey - Friday, 12 June 2015, 5:29 PM
 

Just to add to this. Matthew is using a Mac with OSX and installed node using Homebrew. We tried all the uninstall instructions we could find. I am confident that as soon as he can get node 10.33 to stick all his content will magically appear.

Picture of Sam Tsiu
Re: assets not uploading, course not saving, "publish" not running
by Sam Tsiu - Friday, 12 June 2015, 6:23 PM
 

have you tried to uninstall the node 12 version with homebrew? like 'brew uninstall node'?

I don't think the version installed with homebrew matters that much once you have nvm installed and installed and defaulted the 0.10.33 version with nvm.

and the NVM installed version should be installed in the local user directory '~/.nvm/v0.10.33'. please see my terminal screenshot.


Picture of Matthew Williams
Re: assets not uploading, course not saving, "publish" not running
by Matthew Williams - Saturday, 13 June 2015, 6:24 PM
 

Thanks for ideas Sam.
To answer this and your second post, I can switch from version to version, but when I close down and start up again, it defaults back to 0.12.2.

Have tried all sorts of methods to uninstall 0.12.2

uninstall node 

"You must be in root to run this tool"

(I am the only user (with Admin access) on my machine I tried

cd /

then

uninstall node

But still got "You must be in root to run this tool"

Tried

sudo uninstall node

"Uninstall Failed... Reason: ErrorMissingBundle"

I may have installed node with Homebrew - it was a while back, can't quite remember. So tried:

brew uninstall node 

"Error: No such keg: /usr/local/Cellar/node"


-----------------------------------------------------------


Other information I can give:
version 0.12.2 is here:

which node
/usr/local/bin/node

version 0.10.33 is here:

which node
/Users/matthewwilliams/.nvm/v0.10.33/bin/node

 

 

Picture of Sam Tsiu
Re: assets not uploading, course not saving, "publish" not running
by Sam Tsiu - Sunday, 14 June 2015, 3:54 AM
 

Hello Matthew,

I recorded a short video to show you how I switched from system node to NVM node. 

OS: Mac OSX 10.10.3

terminal: iterm 2

Shell: zsh

Sam

Picture of Sam Tsiu
Re: assets not uploading, course not saving, "publish" not running
by Sam Tsiu - Friday, 12 June 2015, 6:11 PM
 

how did you install your Node v0.10.33? did you install it via NVM?

I'm on a mac and had a problem with the node version before. What I did was:

1. install NVM

2. install node 0.10.33 via NVM, this will install the node version to your local user directory

3. set 0.10.33 to default with 'nvm alias default 0.10.33' 

then follow the steps to install the authoring tool.

and If you have permission denied, you need to run the command with 'sudo'.

 

Picture of Matthew Williams
Re: assets not uploading, course not saving, "publish" not running
by Matthew Williams - Saturday, 13 June 2015, 6:25 PM
 

see above. tried these suggestions, they don't work.

Picture of Leonard Houx
Re: assets not uploading, course not saving, "publish" not running
by Leonard Houx - Tuesday, 26 January 2016, 2:31 PM
 

I'm having the same problem. It's running on 0.10.33, but it's still not loading images.

Picture of John Niezen
Re: assets not uploading, course not saving, "publish" not running
by John Niezen - Tuesday, 26 January 2016, 2:57 PM
 

Hi Leonard,

You should be on 4.2.x these days.

Upgrade and try again.

Picture of Leonard Houx
Re: assets not uploading, course not saving, "publish" not running
by Leonard Houx - Wednesday, 27 January 2016, 12:07 AM
 

Hi John

Thanks for the help! I changed to 4.2.3. Now images upload, which is great. However, when I publish, I now get an error that reads:

Error: ENOENT: no such file or directory, stat '/Users/Leonard/adapt_authoring/temp/56a80635f01b79f4049fa310/adapt_framework/courses/56a80635f01b79f4049fa310/56a806e14e8c363405c5fd08/download.zip'
   at Error (native)

Picture of Leonard Houx
Re: assets not uploading, course not saving, "publish" not running
by Leonard Houx - Tuesday, 26 January 2016, 3:27 PM
 

Also when I tried to download, I got an ENOENT error, which suggests it is a permissions problem.

Picture of Leonard Houx
Re: assets not uploading, course not saving, "publish" not running
by Leonard Houx - Wednesday, 27 January 2016, 12:14 AM
 

I just recursively chmod'd the whole adapt_authoring folder, which seems kind of dicey. That is I ran

sudo chmod -R 777 adapt_authoring

But preview and download work now.