Error during FreePBX Framework 14.0.2.18 will be upgraded to 14.0.3

I went to upgrade the Framework to the latest today, and now I’m getting errors in a loop. The gui is getting heavier and heavier, so its possible its running out of memory. How can I back this off? Thanks in advance.


Please confirm the following actions:
Upgrades, installs, enables and disables:
FreePBX Framework 14.0.2.18 will be upgraded to 14.0.3
	
FreePBX is a registered trademark of
Sangoma Technologies Inc.
FreePBX 14.0.2.18 is licensed under the GPL
Copyright© 2007-2018
Status
Please wait while module actions are performed
Installing framework
Whoops \ Exception \ ErrorException (E_WARNING)
Invalid argument supplied for foreach()
  COPY
Click Here Report this to the PBX bug tracker
Stack frames (5)
4
Whoops\Exception\ErrorException 
/var/www/html/admin/libraries/BMO/GPG.class.php202
3
Whoops\Run handleError
/var/www/html/admin/libraries/BMO/GPG.class.php202
2
FreePBX\GPG verifyModule
/var/www/html/admin/libraries/modulefunctions.class.php1936
1
module_functions install
/var/www/html/admin/page.modules.php297
0
 include
/var/www/html/admin/config.php390
/var/www/html/admin/libraries/BMO/GPG.class.php
            }
        }
 
        // var_dump($module);
        // Has this signature expired? This is used to make sure QA/Testing modules with bugs can't be used for
        // more than a short period of time. Normal module signatures shouldn't have an expiry.
        if ($module['config']['version'] > "1" && !empty($module['config']['expiresafter'])) {
            // This is a utime
            $expiry = (int) $module['config']['expiresafter'];
            if ($expiry < time()) {
                return array("status" => self::STATE_REVOKED, 'trustdetails' => array(_("Module signature expired")));
            }
        }
 
        // OK, signature is valid. Let's look at the files we know
        // about, and make sure they haven't been touched.
        $retarr['status'] = GPG::STATE_GOOD | GPG::STATE_TRUSTED;
        $retarr['details'] = array();
 
        foreach ($module['hashes'] as $file => $hash) {
            $dest = \FreePBX::Installer()->getDestination($modulename, $file, true);
            if ($dest === false) {
                // If the file is explicitly un-checkable, ignore it.
                continue;
            }
            if (!file_exists($dest)) {
                $retarr['details'][] = $dest." "._("missing");
                $retarr['status'] |= GPG::STATE_TAMPERED;
                $retarr['status'] &= ~GPG::STATE_GOOD;
            } elseif (hash_file('sha256', $dest) != $hash) {
                // If you i18n this string, also note that it's used explicitly
                // as a comparison of "altered" in modulefunctions.class, to
                // warn people about bin/fwconsole needing to be updated
                // with 'fwconsole chown'. Don't make them different!
                $retarr['details'][] = $dest." "._("altered");
                $retarr['status'] |= GPG::STATE_TAMPERED;
                $retarr['status'] &= ~GPG::STATE_GOOD;
            }
        }
 
Environment & details:
GET Data
display	modules
action	process
quietmode	1
online	1
modules	Array ( [framework] => Array ( [action] => install [track] => stable ) )
POST Data empty
Files empty
Cookies
lang	en_US
searchHide	1
bannerMessages	["df0829de67a590477af7d99ab3e329375333f37a"]
__cfduid	d6a403aa9b36966321b770e911ab31a211514500636
PHPSESSID	g9rfg84mh8l7uopnnlqjav4k76
Session
langdirection	ltr
module_name	dashboard
module_page	index
AMP_user	ampuser Object ( [username] => admin [id] => [password:ampuser:private] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX [extension_high:ampuser:private] => [extension_low:ampuser:private] => [sections:ampuser:private] => Array ( [0] => [1] => * [2] => 999 [3] => ampusers [4] => advancedsettings [5] => announcement [6] => 99 [7] => cli [8] => iaxsettings [9] => asteriskinfo [10] => logfiles_settings [11] => logfiles [12] => manager [13] => astmodules [14] => sipsettings [15] => backup [16] => backup_restore [17] => backup_servers [18] => backup_templates [19] => blacklist [20] => bulkdids [21] => bulkextensions [22] => cdr [23] => superfecta [24] => cel [25] => callrecording [26] => callback [27] => cidlookup [28] => certman [29] => conferences [30] => configedit [31] => customdests [32] => customextens [33] => dahdichandids [34] => disa [35] => index [36] => devices [37] => extensions [38] => fax [39] => featurecodeadmin [40] => wiki [41] => ivr [42] => did [43] => miscapps [44] => miscdests [45] => modules [46] => music [47] => routing [48] => phpinfo [49] => pinsets [50] => parking [51] => printextensions [52] => queueprio [53] => queues [54] => ringgroups [55] => soundlang [56] => recordings [57] => timeconditions [58] => timegroups [59] => trunks [60] => userman [61] => users [62] => voicemail [63] => hotelwakeup [64] => weakpasswords ) [mode:ampuser:private] => database [opmode:ampuser:private] => [lang] => [tz] => [dateformat] => [timeformat] => [datetimeformat] => [_lastactivity] => 1525214218 )
Server/Request Data
UNIQUE_ID	WujsCqUjR9-CciRVbhHoOAAAAAc
HTACCESS	on
HTTPS	on
SSL_TLS_SNI	XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
SSL_SERVER_S_DN_OU	Domain Control Validated
SSL_SERVER_S_DN_OU_1	PositiveSSL
SSL_SERVER_S_DN_CN	XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
SSL_SERVER_I_DN_C	GB
SSL_SERVER_I_DN_ST	Greater Manchester
SSL_SERVER_I_DN_L	Salford
SSL_SERVER_I_DN_O	COMODO CA Limited
SSL_SERVER_I_DN_CN	COMODO RSA Domain Validation Secure Server CA
SSL_SERVER_SAN_DNS_0	XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
SSL_SERVER_SAN_DNS_1	www.XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
SSL_VERSION_INTERFACE	mod_ssl/2.4.6
SSL_VERSION_LIBRARY	OpenSSL/1.0.1e-fips
SSL_PROTOCOL	TLSv1.2
SSL_SECURE_RENEG	true
SSL_COMPRESS_METHOD	NULL
SSL_CIPHER	ECDHE-RSA-AES128-GCM-SHA256
SSL_CIPHER_EXPORT	false
SSL_CIPHER_USEKEYSIZE	128
SSL_CIPHER_ALGKEYSIZE	128
SSL_CLIENT_VERIFY	NONE
SSL_SERVER_M_VERSION	3
SSL_SERVER_M_SERIAL	FA2CE99AC894A03052141E8D290DB7FE
SSL_SERVER_V_START	Apr 27 00:00:00 2017 GMT
SSL_SERVER_V_END	Jun 12 23:59:59 2018 GMT
SSL_SERVER_S_DN	CN=XXXXXXXXXXXXXXXXXXXXXXXXXXX.com,OU=PositiveSSL,OU=Domain Control Validated
SSL_SERVER_I_DN	CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
SSL_SERVER_A_KEY	rsaEncryption
SSL_SERVER_A_SIG	sha256WithRSAEncryption
SSL_SESSION_ID	9f7e687394f844060ced0c841fe8bc193918b3e0546920ad23463e5f66dd97a1
SSL_SESSION_RESUMED	Resumed
HTTP_HOST	XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
HTTP_CONNECTION	keep-alive
CONTENT_LENGTH	0
HTTP_ORIGIN	https://XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
HTTP_USER_AGENT	Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
HTTP_ACCEPT	*/*
HTTP_REFERER	https://XXXXXXXXXXXXXXXXXXXXXXXXXXX.com/admin/config.php?display=modules
HTTP_ACCEPT_ENCODING	gzip, deflate, br
HTTP_ACCEPT_LANGUAGE	en-US,en;q=0.9
HTTP_COOKIE	lang=en_US; searchHide=1; bannerMessages=%5B%22df0829de67a590477af7d99ab3e329375333f37a%22%5D; __cfduid=d6a403aa9b36966321b770e911ab31a211514500636; PHPSESSID=g9rfg84mh8l7uopnnlqjav4k76
PATH	/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE	
SERVER_SOFTWARE	Apache/2.4.6 (Sangoma) OpenSSL/1.0.1e-fips PHP/5.6.33
SERVER_NAME	XXXXXXXXXXXXXXXXXXXXXXXXXXX.com
SERVER_ADDR	XXXXXXXXXXXXXXXXXXXXXXXXXXX
SERVER_PORT	443
REMOTE_ADDR	XXXXXXXXXXXXXXXXXXXXXXXXXXX
DOCUMENT_ROOT	/var/www/html
REQUEST_SCHEME	https
CONTEXT_PREFIX	
CONTEXT_DOCUMENT_ROOT	/var/www/html
SERVER_ADMIN	[email protected]
SCRIPT_FILENAME	/var/www/html/admin/config.php
REMOTE_PORT	14994
GATEWAY_INTERFACE	CGI/1.1
SERVER_PROTOCOL	HTTP/1.1
REQUEST_METHOD	POST
QUERY_STRING	display=modules&action=process&quietmode=1&online=1&modules%5Bframework%5D%5Baction%5D=install&modules%5Bframework%5D%5Btrack%5D=stable
REQUEST_URI	/admin/config.php?display=modules&action=process&quietmode=1&online=1&modules%5Bframework%5D%5Baction%5D=install&modules%5Bframework%5D%5Btrack%5D=stable
SCRIPT_NAME	/admin/config.php
PHP_SELF	/admin/config.php
REQUEST_TIME_FLOAT	1525214218.209
REQUEST_TIME	1525214218
Environment Variables empty
Registered Handlers
0. Whoops\Handler\PrettyPageHandler

fwconsole ma downloadinstall framework

Actually the GUI is getting lighter because we are implementing more autoloading which reduces memory. This issue above has nothing to do with memory

1 Like

Thank you for the lightning fast response. You are awesome!

[15:42:57] [email protected]:[/var/log]: fwconsole ma downloadinstall framework
No repos specified, using: [standard,extended,unsupported] from last GUI settings

Downloading module ‘framework’
Processing framework
Downloading…
11623127/11623127 [============================] 100%
Finished downloading
Extracting…Done
Download completed in 6 seconds
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications…Done
installing files to /var/www/html…done
installing files to /var/lib/asterisk/bin…done
installing files to /var/lib/asterisk/agi-bin…done
Checking for upgrades…
No further upgrades necessary
framework file install done, removing packages from module
file/directory: /var/www/html/admin/modules/framework/amp_conf removed successfully
file/directory: /var/www/html/admin/modules/framework/upgrades removed successfully
file/directory: /var/www/html/admin/modules/framework/start_asterisk removed successfully
file/directory: /var/www/html/admin/modules/framework/install removed successfully
file/directory: /var/www/html/admin/modules/framework/installlib removed successfully
Building Packaged Scripts…Done
Generating CSS…Done
Module framework successfully installed
Updating Hooks…Done

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