Error in restore migrating from FreePBX 15 to 17, no extensions or trunks displayed

Trying to migrate from FreePBX 15.0.37.9 to 17.0.19.28. I’m running:

fwconsole backup --convertchansipexts2pjsip --convertchansiptrunks2pjsip --restore ./20250801-091526-1754061326-15.0.37.9-1758077115.tar.gz  -vvv

and getting the following on restore:

Processing core
Resetting core module data
Dropping table trunks...Done
Dropping table pjsip...Done
Dropping table sip...Done
Dropping table dahdi...Done
Dropping table iax...Done
Dropping table indications_zonelist...Done
Dropping table devices...Done
Dropping table users...Done
Dropping table incoming...Done
Dropping table dahdichandids...Done
Dropping table outbound_route_patterns...Done
Dropping table outbound_route_sequence...Done
Dropping table outbound_route_trunks...Done
Dropping table outbound_routes...Done
Dropping table outbound_route_email...Done
Dropping table trunk_dialpatterns...Done
Updating tables trunks, pjsip, sip, dahdi, iax, indications_zonelist, devices, users, incoming, dahdichandids, outbound_route_patterns, outbound_route_sequence, outbound_route_trunks, outbound_routes, outbound_route_email, trunk_dialpatterns...Done
Starting Call Transfer Monitoring Service
Stopping Call Transfer Monitoring Service
Restarting Call Transfer Monitoring Service
Adding emergencydevices table..Done
Migrating pickup groups to named pickup groups
Migrating call groups to named call groups
Checking for possibly invalid emergency caller id fields..none found
Migrating old media encryption values...done
Removing encoding on incoming routes alertinfo values...done
Generating CSS...Done
Restoring from core [FreePBX\modules\Core\Restore]
Processing Devices
Started restoring mysql dumps of : Devices
The restore process may require some time, with the current default timeout set to 10 hours
Completed restoring mysql dumps of : Devices
Processing Astmodules
Started restoring mysql dumps of : Astmodules
The restore process may require some time, with the current default timeout set to 10 hours
Completed restoring mysql dumps of : Astmodules
Processing Routing
Started restoring mysql dumps of : Routing
The restore process may require some time, with the current default timeout set to 10 hours
Completed restoring mysql dumps of : Routing
Trying to access array offset on value of type bool on line 12 of file /var/www/html/admin/modules/core/Restore/Routing.php
#0 /var/www/html/admin/modules/core/Restore/Routing.php(12): Whoops\Run->handleError()
#1 /var/www/html/admin/modules/core/Restore.php(58): FreePBX\modules\Core\Restore\Routing->setConfigs()
#2 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(139): FreePBX\modules\Core\Restore->runRestore()
#3 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(127): FreePBX\modules\Backup\Handlers\Restore\Common->runRestore()
#4 /var/www/html/admin/modules/backup/Handlers/Restore/Multiple.php(70): FreePBX\modules\Backup\Handlers\Restore\Common->processModule()
#5 /var/www/html/admin/modules/backup/Console/Backup.class.php(378): FreePBX\modules\Backup\Handlers\Restore\Multiple->process()
#6 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php(312): FreePBX\Console\Command\Backup->execute()
#7 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(1022): Symfony\Component\Console\Command\Command->run()
#8 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(314): Symfony\Component\Console\Application->doRunCommand()
#9 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun()
#10 /var/lib/asterisk/bin/fwconsole(163): Symfony\Component\Console\Application->run()
#11 {main}
Processing sipsettings
Resetting sipsettings module data
Dropping table sipsettings...Done
Updating tables sipsettings...Done
New SIPSettings installation detected. Initializing default settings
populating default codecs..ulaw, alaw, gsm, g726 added
Updating kvstore_Sipsettings
Migrating Audio Codecs
Generating CSS...Done
Restoring from sipsettings [FreePBX\modules\Sipsettings\Restore]
Done

Afterwards the GUI prompts to run fwconsole convert2pjsip -a, which outputs:

Converted extension 200 to PJSIP
Converted extension 202 to PJSIP
Converted extension 203 to PJSIP
Converted extension 204 to PJSIP
Converted extension 207 to PJSIP
Converted extension 209 to PJSIP
Converted extension 211 to PJSIP
Converted extension 215 to PJSIP
Converted extension 218 to PJSIP
Converted extension 219 to PJSIP
Converted extension 221 to PJSIP
Converted extension 222 to PJSIP
Converted extension 224 to PJSIP
Converted extension 225 to PJSIP
Converted extension 226 to PJSIP
Converted extension 227 to PJSIP
Converted extension 228 to PJSIP
Converted extension 229 to PJSIP
Converted extension 230 to PJSIP
Converted extension 231 to PJSIP
Converted extension 232 to PJSIP
Converted extension 233 to PJSIP
Converted extension 234 to PJSIP
Converted extension 235 to PJSIP
Converted extension 236 to PJSIP
Converted extension 237 to PJSIP
Converted extension 238 to PJSIP
Converted extension 239 to PJSIP
Converted extension 240 to PJSIP
Converted extension 241 to PJSIP
Converted extension 247 to PJSIP
Converted extension 248 to PJSIP
Converted extension 249 to PJSIP
Converted extension 250 to PJSIP
Converted extension 251 to PJSIP
Converted extension 252 to PJSIP
Converted extension 253 to PJSIP
Extensions converted successfully!
Run 'fwconsole reload' to reload config

But no extensions or trunks are listed in the GUI.

So, updating core to 17.0.18.30 resolved the php error - somehow I didn’t think to check for module updates after a fresh install.

And now I see extensions and trunks after the restore. Yay!

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