Upgrade to 14 from 13 Fails with no error

Greetings!

I’m trying to upgrade FreePBX 13 to 18 with the distro-upgrade script. When I do, it returns :

######### An error occured, please check /var/log/sngupdate #########
Error! setup_upgrade did not exit cleanly. Not enabling upgrade service

I will tack the sngupdate log to the end (cannot upload for some reason), but when checking it I found no error on the first go just ‘Complete!’ On the following attempts I receive ‘Nothing to do’, as expected since all of the appropriate packages are installed.

I haven’t attempted to reboot yet, as I don’t know if it is safe to do so. Thanks!

######### Starting setup upgrade on Thu Nov 2 09:52:37 EDT 2017 #########
######### Creating upgrade repofile #########
######### Installing needed packages #########
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
→ Running transaction check
—> Package openscap.x86_64 0:1.0.8-1.0.1.el6.centos.1 will be installed
→ Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size

Installing:
openscap x86_64 1.0.8-1.0.1.el6.centos.1 base 2.9 M

Transaction Summary

Install 1 Package(s)

Total download size: 2.9 M
Installed size: 42 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

Installing : openscap-1.0.8-1.0.1.el6.centos.1.x86_64 1/1

Verifying : openscap-1.0.8-1.0.1.el6.centos.1.x86_64 1/1

Installed:
openscap.x86_64 0:1.0.8-1.0.1.el6.centos.1

Complete!
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
→ Running transaction check
—> Package preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos will be installed
→ Processing Dependency: pkgconfig(libxslt) for package: preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
→ Processing Dependency: pkgconfig(libxml-2.0) for package: preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
→ Processing Dependency: pkgconfig(libpcre) for package: preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
—> Package preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos will be installed
—> Package redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos will be installed
—> Package sangoma-pbx.noarch 0:1-1.sng7 will be installed
→ Running transaction check
—> Package libxml2-devel.x86_64 0:2.7.6-17.el6_6.1 will be installed
→ Processing Dependency: zlib-devel for package: libxml2-devel-2.7.6-17.el6_6.1.x86_64
—> Package libxslt-devel.x86_64 0:1.1.26-2.el6_3.1 will be installed
→ Processing Dependency: libgcrypt-devel for package: libxslt-devel-1.1.26-2.el6_3.1.x86_64
—> Package pcre-devel.x86_64 0:7.8-6.el6 will be installed
→ Running transaction check
—> Package libgcrypt-devel.x86_64 0:1.4.5-11.el6_4 will be installed
→ Processing Dependency: libgpg-error-devel for package: libgcrypt-devel-1.4.5-11.el6_4.x86_64
—> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
→ Running transaction check
—> Package libgpg-error-devel.x86_64 0:1.7-4.el6 will be installed
→ Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size

Installing:
preupgrade-assistant x86_64 1.0.2-36.0.1.el6.centos upgrade 439 k
preupgrade-assistant-contents noarch 0.5.14-1.el6.centos upgrade 917 k
redhat-upgrade-tool noarch 1:0.7.22-3.el6.centos upgrade 85 k
sangoma-pbx noarch 1-1.sng7 upgrade 2.4 k
Installing for dependencies:
libgcrypt-devel x86_64 1.4.5-11.el6_4 base 118 k
libgpg-error-devel x86_64 1.7-4.el6 base 14 k
libxml2-devel x86_64 2.7.6-17.el6_6.1 updates 1.1 M
libxslt-devel x86_64 1.1.26-2.el6_3.1 base 561 k
pcre-devel x86_64 7.8-6.el6 base 318 k
zlib-devel x86_64 1.2.3-29.el6 base 44 k

Transaction Summary

Install 10 Package(s)

Total download size: 3.5 M
Installed size: 19 M
Downloading Packages:

Total 556 kB/s | 3.5 MB 00:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

Installing : zlib-devel-1.2.3-29.el6.x86_64 1/10

Installing : libxml2-devel-2.7.6-17.el6_6.1.x86_64 2/10

Installing : libgpg-error-devel-1.7-4.el6.x86_64 3/10

Installing : libgcrypt-devel-1.4.5-11.el6_4.x86_64 4/10

Installing : libxslt-devel-1.1.26-2.el6_3.1.x86_64 5/10

Installing : pcre-devel-7.8-6.el6.x86_64 6/10

Installing : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64 7/10

Installing : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch 8/10

Installing : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch 9/10

Installing : sangoma-pbx-1-1.sng7.noarch 10/10

Verifying : libgcrypt-devel-1.4.5-11.el6_4.x86_64 1/10

Verifying : sangoma-pbx-1-1.sng7.noarch 2/10

Verifying : pcre-devel-7.8-6.el6.x86_64 3/10

Verifying : libgpg-error-devel-1.7-4.el6.x86_64 4/10

Verifying : libxml2-devel-2.7.6-17.el6_6.1.x86_64 5/10

Verifying : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64 6/10

Verifying : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch 7/10

Verifying : libxslt-devel-1.1.26-2.el6_3.1.x86_64 8/10

Verifying : zlib-devel-1.2.3-29.el6.x86_64 9/10

Verifying : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch 10/10

Installed:
preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos
preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos
redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos
sangoma-pbx.noarch 0:1-1.sng7

Dependency Installed:
libgcrypt-devel.x86_64 0:1.4.5-11.el6_4
libgpg-error-devel.x86_64 0:1.7-4.el6
libxml2-devel.x86_64 0:2.7.6-17.el6_6.1
libxslt-devel.x86_64 0:1.1.26-2.el6_3.1
pcre-devel.x86_64 0:7.8-6.el6
zlib-devel.x86_64 0:1.2.3-29.el6

Complete!
######### An error occured, please check /var/log/sngupdate #########
######### Starting setup upgrade on Thu Nov 2 10:01:12 EDT 2017 #########
######### Creating upgrade repofile #########
######### Installing needed packages #########
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Package openscap-1.0.8-1.0.1.el6.centos.1.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Package preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64 already installed and latest version
Package preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch already installed and latest version
Package 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch already installed and latest version
Package sangoma-pbx-1-1.sng7.noarch already installed and latest version
Nothing to do
######### An error occured, please check /var/log/sngupdate #########
######### Starting setup upgrade on Thu Nov 2 10:03:03 EDT 2017 #########
######### Creating upgrade repofile #########
######### Installing needed packages #########
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Package openscap-1.0.8-1.0.1.el6.centos.1.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, kmod
Setting up Install Process
Loading mirror speeds from cached hostfile
Package preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64 already installed and latest version
Package preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch already installed and latest version
Package 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch already installed and latest version
Package sangoma-pbx-1-1.sng7.noarch already installed and latest version
Nothing to do
######### An error occured, please check /var/log/sngupdate #########

Hi!

Looks like it failed very early on, like before it could do much…

Did you look in this file and if it is not too long, post it here. You could also post it to pastebin.com or pastebin.ca…

Good luck and have a nice day!

Nick

Thanks for the reply!

I actually did post it here. It’s the last thing quoted. That’s the entire thing believe it or not!

Further info:

I commented out (what appears to be line #65) of the setup_upgrade script. It reads

rpm --erase --nodeps ffmpeg-libpostproc libtiff > /dev/null 2>&1

That package, ffmpeg-libpostproc didn’t exist

I also commented out the two previous run_cmd yum… because those were already installed and I didn’t want that fudging it up.

It continued without a problem (so far. It’s 'running upgrade-tool right now). Spitballing, but maybe there isn’t enough appropriate error handling if the package wasn’t installed and it was hanging on that?

Update: Yup. That appears to have finished the distro-upgrade script. Thanks for the moral support :slight_smile:

Further update: For those finding this with a search, I ensured those two packages were removed (ffmpeg-libpostproc and libtiff) by hand as they were noted to be disruptive to the upgrade process via a comment just above that line. So I’d probably do that too.