I report something strange happened today when updating EPM from 2.11.0.1.11 to 2.11.0.1.12.
Usually I update each Module via CLI, this time the CLI command (module_admin upgrade endpoint) gave me:
[root@freepbx ~]# /var/lib/asterisk/bin/module_admin upgrade endpoint
Downloading 1010139 of 1010139 (100%)
Untaring…Done
Module endpoint successfully downloaded
PHP Fatal error: Cannot redeclare endpoint_systype() (previously declared in /var/www/html/admin/modules/endpoint/functions.inc/functions_license.php:5) in /var/www/html/admin/modules/endpoint/functions.inc/functions_license.php on line 0
[root@freepbx ~]#
Then the EPM 2.11.0.1.11 was automatically Disabled (module_admin list) on the system:
endpoint 2.11.0.1.11 Disabled; Pending upgrade to 2.11.0.1.12
And two new FreePBX Notices appeared about two Modules (restapi and restapps) which weren’t locally installed (nor enabled) on the system:
The following new modules are available for download. Click delete icon on the right to remove this notice.
restapi (2.11.0.1)
restapps (2.11.0.2)
I forced an amportal restart and then I forced the EPM update once again through the usual CLI command (module_admin upgrade endpoint), this time the update completed:
[root@freepbx ~]# /var/lib/asterisk/bin/module_admin upgrade endpoint
Downloading 1010139 of 1010139 (100%)
Downloading 1010139 of 1010139 (100%)
Untaring…Done
Module endpoint successfully downloaded
/bin/mkdir: cannot create directory /tftpboot/images': File exists /bin/mkdir: cannot create directory
/tftpboot/images/originals’: File exists
/bin/mkdir: cannot create directory /tftpboot/images/formatted': File exists /bin/mkdir: cannot create directory
/tftpboot/firmwaredownloads’: File exists
Re-Writing Templates
Templates Rebuilt
Module endpoint successfully installed
SETTING FILE PERMISSIONS
Permissions OK
and, just after another amportal restart, it appears to be finally enabled and updated as should be:
endpoint 2.11.0.1.12 Enabled
I must observe if FreePBX Notice will show something strange again (I acknowledged by deletion the one about restapi/restapps reported above).