Update stuck

I scheduled an automatic update for last night but when I logged in to check it this morning I find it is stuck. It’s attempting to update from 6.12.65-28 to 6.12.65-29.

The upgrade log for 6.12.65-29 has the following entries:
Sat Nov 21 22:00:07 PST 2015 This appears to be a FreePBX Distro system as it has a Distro Version of 6.12.65-28
VARIABLES SET FOR UPGRADE
asterisk=Asterisk 11.18.0 built by root @ jenkins-builder1.schmoozecom.net on a x86_64 running Linux on 2015-06-08 13:11:11 UTC
kernel=Linux pbx01.clackesd.k12.or.us 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
version=6.12.65-28
host=pbx01.clackesd.k12.or.us
upgradeversion=6.12.65-29
virtual=

Sat Nov 21 22:00:07 PST 2015 Your FreePBX Distro System is being upgraded to 6.12.65-29. Please standby…

Sat Nov 21 22:00:07 PST 2015 STAGE 1 STARTING - GUI Modules
Sat Nov 21 22:00:07 PST 2015 Upgrade All FreePBX GUI Modules
Sat Nov 21 22:03:01 PST 2015 STAGE 1 COMPLETED - GUI Modules - Moving to Stage 2

Sat Nov 21 22:03:01 PST 2015 STAGE 2 STARTING - RPM’s
Sat Nov 21 22:03:01 PST 2015 Replace repos with only FreePBX Distro since some people have added other repos which can break updates
Sat Nov 21 22:03:01 PST 2015 Update Asterisk RPMs
Sat Nov 21 22:45:20 PST 2015 This appears to be a FreePBX Distro system as it has a Distro Version of 6.12.65-28
VARIABLES SET FOR UPGRADE
asterisk=Asterisk 11.18.0 built by root @ jenkins-builder1.schmoozecom.net on a x86_64 running Linux on 2015-06-08 13:11:11 UTC
kernel=Linux pbx01.clackesd.k12.or.us 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
version=6.12.65-28
host=pbx01.clackesd.k12.or.us
upgradeversion=6.12.65-29
virtual=

Sat Nov 21 22:45:20 PST 2015 Your FreePBX Distro System is being upgraded to 6.12.65-29. Please standby…

Sat Nov 21 22:45:20 PST 2015 STAGE 1 STARTING - GUI Modules
Sat Nov 21 22:45:20 PST 2015 Upgrade All FreePBX GUI Modules
Sat Nov 21 22:47:00 PST 2015 STAGE 1 COMPLETED - GUI Modules - Moving to Stage 2

Sat Nov 21 22:47:00 PST 2015 STAGE 2 STARTING - RPM’s
Sat Nov 21 22:47:00 PST 2015 Replace repos with only FreePBX Distro since some people have added other repos which can break updates
Sat Nov 21 22:47:00 PST 2015 Update Asterisk RPMs

If I run a ps -elf | grep update I see 2 instances of sysadmin_update_system -a running.

The /var/log/yum.log shows the following:
Nov 21 22:03:21 Updated: asterisk11-core-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:21 Updated: asterisk11-addons-core-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:21 Updated: asterisk11-addons-mysql-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:22 Updated: asterisk11-dahdi-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:22 Updated: asterisk11-addons-ooh323-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:23 Updated: asterisk11-addons-bluetooth-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:23 Updated: asterisk11-voicemail-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:23 Updated: asterisk11-doc-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:24 Updated: asterisk11-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:24 Updated: asterisk11-flite-11.20.0-1.shmz65.1.32.x86_64
Nov 21 22:03:24 Updated: asterisk11-addons-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:24 Updated: asterisk11-curl-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:25 Updated: asterisk11-odbc-11.20.0-1.shmz65.1.96.x86_64
Nov 21 22:03:25 Updated: asterisk11-res_digium_phone-2.1.1-1.shmz65.1.27.x86_64
Nov 21 22:03:26 Updated: asterisk11-flite-debuginfo-11.20.0-1.shmz65.1.32.x86_64

Any ideas?

A little more information. I killed the running update processes and started the update at the command line.

It appears stuck at with the following messages:
running http://upgrades.freepbxdistro.org/stable/6.12.65/upgrade-6.12.65-29.sh
mkdir: cannot create directory /usr/tmp/6.12.65-29': File exists mkdir: cannot create directory/etc/schmooze’: File exists
hostname: Unknown host
hostname: Unknown host
hostname: Unknown host
hostname: Unknown host
ERROR: Module wcte12xp is in use
ERROR: Module wcte12xp is in use
ERROR: Module dahdi_voicebus is in use by wcte12xp
ERROR: Module dahdi is in use by wcte12xp,dahdi_voicebus
FATAL: Module r1t1 not found.
FATAL: Module rxt1 not found.
FATAL: Module rcbfx not found.
D: auto ‘/sys/bus/dahdi_devices/devices/pci:0000:04:08.0’

Hi!

I believe that you get those errors message because the update has already run…

It might not have ended successfully but that temporary directory (ie /usr/tmp/6.12.65-29) is created when the update is run. It is unable to create it now because the update script has already created it the first time it was run…

Was the update first done from System Admin Pro or manually? I have had more success by running those manually…

You could try cleaning up the folder it complains about but your best bet might be to restore from a backup…

Good luck and have a nice day!

Nick

Thanks. I rebooted the machine, unlocked the install and re-ran it from the command line. It was successful.