Skip to content

[bug]: Crach recovery backup endpoint #983

@vsc55

Description

@vsc55

FreePBX Version

FreePBX 17

Issue Description

The recovery is started on a clean system and in the endpoint recovery process the system stops with the endpoint_basefiles table. Then if you try to access the website it no longer loads and gives an error.

Operating Environment

System Create Backup: Framework 16.0.45, Backup 16.0.70.5, Endpoint 16.0.96.
System Recovery Backup: Framework 17.0.28, Backup 17.0.5.71, Endpoint 17.0.12.

Relevant log output

Processing endpoint
Resetting endpoint module data
Backup & Restore process is in progress so not deleting '/tftpboot/*' from uninstall.
If in case Restore process not running then you may delete /var/run/asterisk/restore_running.lock file and try uninstall again
dropping endpoint tables...
done
Checking database tables...Done
Migrating tables as required...Done
Checking Settings and Defaults...Done
Generating Configs...Done
Downloading Firmware...Done (Background)
updating Logout phones config...(Background)Generating CSS...Done
Restoring from endpoint [FreePBX\modules\Endpoint\Restore]
Cleaning table: endpoint_digium_phones_general
Cleaning table: endpoint_models
Cleaning table: endpoint_global
Cleaning table: endpoint_templates
Cleaning table: endpoint_brand
Cleaning table: endpoint_timezones
Cleaning table: endpoint_basefiles


When trying to access the website this error is now generated:

Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type bool"

Stacktrace:
#6 Whoops\Exception\ErrorException in /var/www/html/admin/modules/endpoint/EndpointCommon.class.php:2741
#5 Whoops\Run:handleError in /var/www/html/admin/modules/endpoint/EndpointCommon.class.php:2741
#4 FreePBX\modules\Endpoint\EndpointCommon:endpoint_InsertPcodeByModel in /var/www/html/admin/modules/endpoint/functions.inc/functions_sangoma.php:1498
#3 endpoint_write_sangoma_commons in /var/www/html/admin/modules/endpoint/Endpoint.class.php:6453
#2 FreePBX\modules\Endpoint:oobeHook in /var/www/html/admin/libraries/BMO/OOBE.class.php:146
#1 OOBE:runModulesOOBE in /var/www/html/admin/libraries/BMO/OOBE.class.php:168
#0 OOBE:showOOBE in /var/www/html/admin/config.php:555

Data you are trying to recover:
Endpoint.zip

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageTriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions