FreePBX 14 Upgrade Error at upgrade-tool stage

Hi all,

I have a fresh install of FreePBX 13 Distro installed on a VM for the purpose of going through the upgrade process of FreePBX 13 to 14

I am currently running into an error at the “Running upgrade-tool” stage where the process stops and tell me to check the sngupdate log. Personally i cannot see what it is trying to tell me. Has anyone got any idea about what the issue is here?

Here is the CLI output:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ Sangoma 6 to 7 Upgrade Tool ┃
┃ ┃
┃ Distro Upgrade - Version 1707-15.sng7 ┃
┃ Build Date: 2017-08-15 ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Checking prerequsites…
Checking bitsize of machine [ :heavy_check_mark: ] - x86_64
Checking available disk space [ :heavy_check_mark: ] - 89G Available
Checking for outdated system [ :heavy_check_mark: ] - No pending updates.
Checking for HA Setup [ :heavy_check_mark: ] - Not a HA system
All prerequsites passed!

Are you ready to upgrade your machine to SNG7? This process requires
two reboots, and will download approximately 200mb of files before
starting. There will be no interruption to service until this machine
is rebooted.

Download files required for upgrade [Yn]? y
######### Starting setup upgrade on Mon Aug 21 15:02:08 BST 2017 #########
######### Creating upgrade repofile #########
######### Installing needed packages #########
######### Running preupgrade #########
######### Running upgrade-tool #########
######### An error occured, please check /var/log/sngupdate #########
Error! setup_upgrade did not exit cleanly. Not enabling upgrade service

And below is the log for “sngupdate”

/var/log/sngupdate: line 4: Loaded: command not found
/var/log/sngupdate: line 5: Setting: command not found
/var/log/sngupdate: line 6: Loading: command not found
/var/log/sngupdate: line 7: Resolving: command not found
/var/log/sngupdate: line 8: --: command not found
/var/log/sngupdate: line 9: —: command not found
/var/log/sngupdate: line 10: --: command not found
/var/log/sngupdate: line 12: Dependencies: command not found
/var/log/sngupdate: line 14: ================================================================================: command not found
/var/log/sngupdate: line 15: Package: command not found
/var/log/sngupdate: line 16: ================================================================================: command not found
/var/log/sngupdate: line 17: Installing:: command not found
/var/log/sngupdate: line 18: openscap: command not found
/var/log/sngupdate: line 20: Transaction: command not found
/var/log/sngupdate: line 21: ================================================================================: command not found
/var/log/sngupdate: line 22: syntax error near unexpected token (' /var/log/sngupdate: line 22:Install 1 Package(s)’