Upgrade to SNG7 fails

I’m trying to upgrade my system from 10.13.66 to SNG7, but it fails shortly after executing “distro-upgrade”.

I’m following the documentation at https://wiki.freepbx.org/display/PPS/Upgrading+from+FreePBX+10.13.66+to+SNG7.

I don’t see any relevant information in the output, or in the log files:

[[email protected] ~]# distro-upgrade
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                                            ┃
┃        Sangoma 6 to 7 Upgrade Tool         ┃
┃                                            ┃
┃    Distro Upgrade - Version 1807-2.sng7    ┃
┃    Build Date: 2018-07-18                  ┃
┃                                            ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

 Checking prerequsites... 
	Checking FreePBX Version 	[ ✔ ] - 13.0.195.4
	Checking bitsize of machine 	[ ✔ ] - x86_64
	Checking for Hyper-V 	[ ✔ ]
	Checking for 32 bit packages 	[ ✔ ] - No i686 rpms found
	Checking available disk space 	[ ✔ ] - 341G Available
	Checking for IonCube Loader 	[ ✔ ] - IonCube Loader not detected
	Checking for outdated system 	[ ✔ ] - No pending updates.
	Checking for HA Setup 		[ ✔ ] - 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 400mb 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 jue ago  2 11:58:27 CST 2018 #########
######### Creating upgrade repofile #########
######### Installing needed packages #########
Loaded plugins: downloadonly, fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
upgrade                                                                                                              | 2.9 kB     00:00     
Package openscap-1.0.8-1.0.1.el6.centos.1.x86_64 already installed and latest version
Nothing to do
Loaded plugins: downloadonly, fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Package preupgrade-assistant-2.6.0-2.el6.sangoma.x86_64 already installed and latest version
Package preupgrade-assistant-el6toel7-0.7.1-2.el6.sangoma.noarch already installed and latest version
Package 1:redhat-upgrade-tool-0.7.52-1.0.1.el6.sangoma.noarch already installed and latest version
Package sangoma-pbx-1-1.sng7.noarch already installed and latest version
Nothing to do
######### Running preupgrade to inventory running system #########
######### An error occured, please check /var/log/sngupdate #########
Error! setup_upgrade did not exit cleanly. Not enabling upgrade service

The file /var/log/sngupdate is here: https://pastebin.com/PkzdFh9J

Inside that logfile is the message ‘You need to read the results file’ and this:

The tarball with results is stored in ‘/root/preupgrade-results/preupg_results-180802120056.tar.gz’

You’ll need to copy that to your machine and have a look what it’s complaining about. I couldn’t see anything that said ‘fail’, just a few ‘needs_inspection’, which should be fine.

If you can’t figure it out, put that file in dropbox or google drive or something, and then PM me the link to it and I’ll have a look.

Thank you.

I already checked that file but couldn’t find the problem.

I’m sending you the TAR file.

For those following along later, the contents of the tar had this:

It had picked up an edge case that I hadn’t validated was OK, and was legitimately error-ing about it. I’ve built a test RPM for @chemnic to try, which should fix that problem. Assuming it does, I’ll push it out and it shouldn’t happen again!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.