adapt_authoring icon indicating copy to clipboard operation
adapt_authoring copied to clipboard

Unable to upgrade to latest tag

Open tomgreenfield opened this issue 5 years ago • 2 comments

Expected Behaviour

An automatic upgrade is able to be performed.

Actual Behaviour

Attempting an upgrade from framework 5.5 to framework 5.5.1 is giving me the following message:

Software updates found.
Failed to upgrade /temp/xxxx/adapt_framework to v5.5.1
ERROR: error: pathspec 'v5.5.1' did not match any file(s) known to git.
Upgrade was unsuccessful. Please check the console output.

It's almost as if the git fetch here isn't running or bringing down the latest remote tag: https://github.com/adaptlearning/adapt_authoring/blob/28247b0da4b41a486216fbeb3b870e8b2e97155e/lib/installHelpers.js#L524

This also happens if I specify the tag in the upgrade script.

It fixes itself if I run git fetch manually in the adapt_framework directory.

Steps to Reproduce

May be tricky to reproduce because you need to be not in sync with the remote.

node upgrade --continue y --updateAutomatically y

Versions

  • Authoring Tool Version: 0.10.3
  • Framework Version: 5.5

tomgreenfield avatar Jun 11 '20 11:06 tomgreenfield

Have retested on two different instances today and there were no problems with the fetch - the latest framework tag was successfully pulled down. Closing for now until it can be reproduced.

tomgreenfield avatar Jul 10 '20 11:07 tomgreenfield

Receiving the same error trying to update AT v0.10.2 FWv4.4.1 on Ubuntu.

Adapt authoring tool upgraded to v0.10.5
Failed to upgrade /temp/5d53965298b7a35faa105594/adapt_framework to v4.5.0
ERROR: error: pathspec 'v4.5.0' did not match any file(s) known to git.

Notice message says AT upgrade succeeded; FW update failed. When it failed, I checked my node version and updated adapt-cli. Now using node v14.15.4 and CLI v2.1.13. Interesting, when I run adapt version, CLI reports:

CLI: 2.1.13
Framework: 0.10.5  

"0.10.5" is the AT version, not the FW version.

I tried installing with:

  • automatic upgrade
  • specifying both AT and FW target versions (v0.10.5 and v4.5.0)
  • specifying FW alone since AT upgrade reported success
  • specifying tags/v0.10.5 and tags/v4.5.0; AT reinstalled but got same error msg for FW

chucklorenz avatar Oct 05 '21 17:10 chucklorenz