Picture of Helen Bailey
Upgrading AT from 0.1.1
by Helen Bailey - Monday, 15 February 2016, 3:44 PM
 

Hi there,

I have an old installation on a laptop - Builder 0.1.1 and Framework 1.1.1. It reports the new available versions so I tried node upgrade.js but it just says checking for upgrades... then goes back to command prompt.

Am I wasting my time trying to troubleshoot or should it be possible to upgrade?

Helen

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Monday, 15 February 2016, 4:35 PM
 

And if it's not possible for me to upgrade, am I able to export my old courses using RoboMongo somehow and get it into my new install of MongoDB? And copy across the course folder to complete the job? I know there would probably be tweaks needed....

Or maybe I'm better to just recreate them all from scratch?

p

 

robably 

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Monday, 15 February 2016, 4:53 PM
 

Hmmm progress - updated upgrade.js from the current adapt_authoring repo and now seems to be doing it's thang.....

OKay doing it's thang stopped at "Upgrading the Adapt Builder...please hold on!". Darnit.

Picture of Sam Tsiu
Re: Upgrading AT from 0.1.1
by Sam Tsiu - Tuesday, 16 February 2016, 2:32 AM
 

Hi Helen,

check this wiki out for the Upgrading from 0.11 to 1.xx part. 

I recorded the solution provided by Brian when I had the problem during upgrading from 0.11 to 1.xx.

cheers

Sam

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 9:39 AM
 

Ahh you star - thank you for taking the time to reply. I'll give that a go!

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 11:41 AM
 

Hey Sam it all seems to be going fine, have node 4.3.0 installed, git pull ok, run the npm install with --production (get a lot of WARN! deprecated messages), but I still get the same problem when I run node upgrade.js :(

Any thoughts?

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 11:54 AM
 

OK I see some error messages in the cmd line :

 


C:\Users\Helen\adapt_authoring\node_modules\weak>if not defined npm_config_node_
gyp (node "C:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\node-gyp-bin\\
..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files (x86)\Nodist\bin\node_modul
es\npm\node_modules\node-gyp\lib\configure.js:401:14)
gyp ERR! stack at C:\Program Files (x86)\Nodist\bin\node_modules\npm\node_mo
dules\node-gyp\lib\configure.js:356:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files
(x86)\\Nodist\\bin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd C:\Users\Helen\adapt_authoring\node_modules\weak
gyp ERR! node -v v4.3.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok

 

Does that help?

Picture of Brian Quinn
Re: Upgrading AT from 0.1.1
by Brian Quinn - Tuesday, 16 February 2016, 12:34 PM
 

Hi Helen,

The log points to a missing installation of Python on the machine you're installing to.  From the node-gyp documentation, can you install Python v2.7.10 and try again?

Thanks,

Brian

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 12:51 PM
 

Hey Brian, yep installed Python 2.7 and the MS Virtual Studio stuff.

It seems to be working now - wjhat I actually had to do was do the old :

npm install adapt-cli -g and npm install grunt-cli -g again in the middle, then it worked.... supposedly!!!

Will report back

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 12:26 PM
 

OK I installed Python and the MS Virtual StudioBuild files it wanted - less errors now - cmd window full of green text and numbers but last line says :

warn adapt-origin@0.1.1 no licence field

And I still can't update.

Helen 

 

EDIT - and now all my courses have VANISHED?!?!!!! :(

The Mongo DB data and course folders are still there but no courses appear in my dashboard...

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 1:45 PM
 

It's all working!!! Thank you guys so much for the pointers.

Wow it took a bit of doing but it's updated and my courses are back.

Thank you Thank you!

Picture of John Niezen
Re: Upgrading AT from 0.1.1
by John Niezen - Tuesday, 16 February 2016, 1:51 PM
 

Great Helen,

But what were the final steps you needed to do to get it all back?

Reason why I ask, is that your pointers could be a good addition to the Wiki Sam mentioned. This way it will be better in the future for others to do a similar upgrade.

John

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Tuesday, 16 February 2016, 4:23 PM
 

Sorry I did say but it was up there ^ in my response to Brian.

From a working version of v0.1.1, after installing new node (i had been on 0.10.33 but went to 4.3.0) - using nvm-windows (nodist was throwing server errors) I followed the Wiki's steps.

But after it complaining several times I had to do the following too in between the git pull and the rest :

install Python 2.7.11 - https://www.python.org/downloads/  (it complained about python as per above)

install MS Visual Studio Build tools - https://www.microsoft.com/en-gb/download/details.aspx?id=40760 (it complained that it could not find msbuild.exe)

then i realised by looking at some error which I forget,  sadly, that it couldn't find the adapt-cli, so i did the "npm install adapt-cli -g" from the original install, followed by the "npm install grunt-cli -g".

That seemed to unlock everything it needed and then it worked.

I was just clutching at straws for most of it, wish I'd paid more attention now!

HTH a little

Helen

Picture of Sam Tsiu
Re: Upgrading AT from 0.1.1
by Sam Tsiu - Wednesday, 17 February 2016, 5:00 AM
 

Hi Helen

Sorry I missed your posts but very glad to know that you've got it working:-)

Cheers

Sam

Picture of Helen Bailey
Re: Upgrading AT from 0.1.1
by Helen Bailey - Wednesday, 17 February 2016, 10:05 AM
 

Not a problem - I'm abig fan of keep plugging away until it works, and thankfully it did!

And now with course export in 0.1.5 I'm one step closing to moving my courses to where they need to be too!

Thanks so much for the initial help it was just what I needed.

Helen

Picture of John Niezen
Re: Upgrading AT from 0.1.1
by John Niezen - Wednesday, 17 February 2016, 7:50 AM
 

Thanks Helen,

I am lucky not to have an old installation, but reading the forum, suspect there are. You details will help them I hope.

John