Freepbx framework upgrade stuck

freepbx framework upgrade is stuck on the PHP script…

…/13.0.143/upgrade.php

Been on this step for over 2 hours.

Looks like it’s looping on some cp commands?

cp -rf /var/www/html/admin/modules/framework/amp_conf/htdocs/admin /var/www/html/admin/modules/framework/amp_conf/htdocs/index.php /var/www/html/admin/modules/framework/amp_conf/htdocs/robots.txt /var/www/html

Load shoots up (7+ and system became unresponsive). I tried rebooting the system, came back except the dashboard didn’t work. Noticed that the framework was disabled, so tried to reenable it from module admin (its trying to upgrade to 13.0.151).

Stuck in same loop again.

Here is what is in freepbx.log

[2016-Jul-02 17:57:56] [INFO] (framework/install.php:90) - installing files to /var/www/html..done
[2016-Jul-02 17:58:00] [INFO] (framework/install.php:102) - installing files to /var/lib/asterisk/bin..done
[2016-Jul-02 17:58:02] [INFO] (framework/install.php:113) - installing files to /var/lib/asterisk/agi-bin..done
[2016-Jul-02 17:58:04] [INFO] (installlib/installer.class.php:17) - Checking for upgrades..
[2016-Jul-02 17:58:06] [INFO] (installlib/installer.class.php:17) - 1 found
[2016-Jul-02 17:58:06] [INFO] (installlib/installer.class.php:17) - Upgrading to 13.0.143..
[2016-Jul-02 17:58:06] [INFO] (installlib/installer.class.php:17) - -> Running PHP script /var/www/html/admin/modules/framework/upgrades//13.0.143/upgrade.php
[2016-Jul-02 18:01:20] [INFO] (framework/install.php:90) - installing files to /var/www/html..done
[2016-Jul-02 18:01:21] [INFO] (framework/install.php:102) - installing files to /var/lib/asterisk/bin..done
[2016-Jul-02 18:01:21] [INFO] (framework/install.php:113) - installing files to /var/lib/asterisk/agi-bin..done
[2016-Jul-02 18:01:21] [INFO] (installlib/installer.class.php:17) - Checking for upgrades..
[2016-Jul-02 18:01:21] [INFO] (installlib/installer.class.php:17) - 1 found
[2016-Jul-02 18:01:21] [INFO] (installlib/installer.class.php:17) - Upgrading to 13.0.143..
[2016-Jul-02 18:01:21] [INFO] (installlib/installer.class.php:17) - -> Running PHP script /var/www/html/admin/modules/framework/upgrades//13.0.143/upgrade.php
[2016-Jul-02 18:04:44] [INFO] (framework/install.php:90) - installing files to /var/www/html..done
[2016-Jul-02 18:04:45] [INFO] (framework/install.php:102) - installing files to /var/lib/asterisk/bin..done
[2016-Jul-02 18:04:45] [INFO] (framework/install.php:113) - installing files to /var/lib/asterisk/agi-bin..done
[2016-Jul-02 18:04:45] [INFO] (installlib/installer.class.php:17) - Checking for upgrades..
[2016-Jul-02 18:04:46] [INFO] (installlib/installer.class.php:17) - 1 found
[2016-Jul-02 18:04:46] [INFO] (installlib/installer.class.php:17) - Upgrading to 13.0.143..
[2016-Jul-02 18:04:46] [INFO] (installlib/installer.class.php:17) - -> Running PHP script /var/www/html/admin/modules/framework/upgrades//13.0.143/upgrade.php
fwconsole ma download framework
fwconsole ma install framework

Thanks Andrew. It’s looping on a different set of things now… Is it best to let it finish?

Here is a snip of what it is doing…

[2016-Jul-02 18:34:18] [INFO] (libraries/modulefunctions.class.php:2001) - Generating CSS...Done
[2016-Jul-02 18:34:21] [INFO] (libraries/modulefunctions.class.php:2001) - Generating CSS...Done
[2016-Jul-02 18:34:22] [INFO] (installlib/installer.class.php:17) - Upgrading to 13.0.143..OK
[2016-Jul-02 18:34:23] [INFO] (framework/install.php:137) - framework file install done, removing packages from module
[2016-Jul-02 18:34:23] [INFO] (framework/install.php:151) - file/directory: /var/www/html/admin/modules/framework/amp_conf removed successfully
[2016-Jul-02 18:34:23] [INFO] (framework/install.php:151) - file/directory: /var/www/html/admin/modules/framework/upgrades removed successfully
[2016-Jul-02 18:34:23] [INFO] (framework/install.php:151) - file/directory: /var/www/html/admin/modules/framework/start_asterisk removed successfully
[2016-Jul-02 18:34:23] [INFO] (framework/install.php:151) - file/directory: /var/www/html/admin/modules/framework/install removed successfully
[2016-Jul-02 18:34:23] [INFO] (framework/install.php:151) - file/directory: /var/www/html/admin/modules/framework/installlib removed successfully
[2016-Jul-02 18:34:24] [ERROR] (bin/retrieve_conf:354) - /var/lib/asterisk/agi-bin/areminder failed to copy from module directory
[2016-Jul-02 18:34:24] [ERROR] (bin/retrieve_conf:354) - /var/lib/asterisk/agi-bin/calllimit failed to copy from module directory
[2016-Jul-02 18:34:24] [ERROR] (bin/retrieve_conf:293) - Tried to link /var/www/html/admin/modules/conferencespro/ari/modules/conferencespro.module to /var/www/html/recordings/modules/conferencespro.module, but /var/www/html/recordings/modules doesn't exist
[2016-Jul-02 18:34:24] [ERROR] (bin/retrieve_conf:354) - /var/lib/asterisk/agi-bin/enc failed to copy from module directory
[2016-Jul-02 18:34:24] [ERROR] (bin/retrieve_conf:354) - /var/lib/asterisk/agi-bin/enc failed to copy from module directory

That doesn’t look like a loop to me. Are you sure it’s looping?

It’s appeared to be doing exactly the same thing over and over. It did finally end, so technically not a loop I guess. Took over 3 hours…

Like it was looping on each module name, but each time trying to update framework each time.

All looks ok now, load spike due to the file IO, but all works again w/ no interaction required.