Picture of Lars Halkjær
Adapt AT 5.20.1 upgrade failed
by Lars Halkjær - Tuesday, 12 July 2022, 9:20 PM
 

I have tried to update an Adapt AT server version 0.10.5 with framework version 5.18.4 to the lastest (version 5.20.1).

I changed to the "adapt_authoring" folder an ran "node upgrade".

But in the end the update failed.
This is the console output:

This script will update the Adapt authoring tool and/or Adapt Framework. Would you like to continue?
? Continue? Yes
? Update automatically? Yes
Software updates found.
/temp/5ed66f731eebb83a186e2a46/adapt_framework switched to revision v5.20.1
Failed to upgrade /temp/5ed66f731eebb83a186e2a46/adapt_framework to v5.20.1
ERROR: error: pathspec 'v6.11.0' did not match any file(s) known to git
child_process.js:669
throw err;
^
Error: Command failed: git checkout v6.11.0
at checkExecSyncError (child_process.js:630:11)
at Object.execSync (child_process.js:666:15)
at Object.<anonymous> (/root/adapt_authoring/temp/5ed66f731eebb83a186e2a46/adapt_framework/gitmodules.js:77:16)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 1976,
stdout: null,
stderr: null
}
npm notice
npm notice New minor version of npm available! 8.4.0 -> 8.13.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
npm notice Run `npm install -g npm@8.13.2` to update!
npm notice
npm ERR! code 1
npm ERR! path /root/adapt_authoring/temp/5ed66f731eebb83a186e2a46/adapt_framework
npm ERR! command failed
npm ERR! command sh -c node gitmodules.js
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-07-12T21_09_12_958Z-debug-0.log

Upgrade was unsuccessful. Please check the console output.

Has anyone successfully upgraded like this or found a way to solve this issue?

 

Picture of Dan Gray
Re: Adapt AT 5.20.1 upgrade failed
by Dan Gray - Monday, 18 July 2022, 9:47 AM
 

Hi Lars,

I think it's this issue: https://github.com/adaptlearning/adapt_authoring/issues/2566

There is a workaround in the issues.

Picture of Oliver Foster
Re: Adapt AT 5.20.1 upgrade failed
by Oliver Foster - Monday, 18 July 2022, 11:34 AM
 

Delete  /root/adapt_authoring/temp/5ed66f731eebb83a186e2a46/adapt_framework/src/core and try again

Picture of Caleb Foster
Re: Adapt AT 5.20.1 upgrade failed
by Caleb Foster - Monday, 18 July 2022, 2:09 PM
 

Hello Olly

Is it advisable to delete the following directory before attempting the update each time:

/temp/xxx/adapt_framework/src/core

We've also noticed that courses are only being previewed in either Firefox or Safari, since v5.20.1, Chrome doesn't seem to live previewing to courses.

Thanks