Error in restore going from FreePBX 15 to 17

Trying to migrate from FreePBX 15.0.37.9 to 17.0.19.28 and getting the following on restore:

Refreshing the endpoint tables.
The command "/usr/sbin/fwconsole ma install endpoint -f >>  echo $!" failed.

Exit Code: 4(Unknown error)

Working directory: /home/asterisk

Output:
================


Error Output:
================

In EndpointCommon.class.php line 1325:

  [JsonException (4)]
  Syntax error


Exception trace:
  at /var/www/html/admin/modules/endpoint/EndpointCommon.class.php:1325
 json_decode() at /var/www/html/admin/modules/endpoint/EndpointCommon.class.php:1325
 FreePBX\modules\Endpoint\EndpointCommon->getFirmware() at /var/www/html/admin/modules/endpoint/install.php:705
 include_once() at /var/www/html/admin/libraries/modulefunctions.class.php:2685
 module_functions->_doinclude() at /var/www/html/admin/libraries/modulefunctions.class.php:2601
 module_functions->_runscripts() at /var/www/html/admin/libraries/modulefunctions.class.php:2067
 module_functions->install() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:446
 FreePBX\Console\Command\Moduleadmin->doInstall() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:1481
 FreePBX\Console\Command\Moduleadmin->handleArgs() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:236
 FreePBX\Console\Command\Moduleadmin->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:312
 Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:1022
 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:314
 Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:168
 Symfony\Component\Console\Application->run() at /var/lib/asterisk/bin/fwconsole:163

moduleadmin [-f|--force] [-d|--debug] [--edge] [--ignorecache] [--stable] [--color] [--skipchown] [-e|--autoenable] [--skipdisabled] [--snapshot SNAPSHOT] [--format FORMAT] [-R|--repo REPO] [-t|--tag TAG] [--skipbreakingcheck] [--sendemail] [--onlystdout] [--] [<args>...]

 on line 272 of file /var/www/html/admin/libraries/Composer/vendor/symfony/process/Process.php
#0 /var/www/html/admin/modules/endpoint/Restore.php(41): Symfony\Component\Process\Process->mustRun()
#1 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(139): FreePBX\modules\Endpoint\Restore->runRestore()
#2 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(127): FreePBX\modules\Backup\Handlers\Restore\Common->runRestore()
#3 /var/www/html/admin/modules/backup/Handlers/Restore/Multiple.php(70): FreePBX\modules\Backup\Handlers\Restore\Common->processModule()
#4 /var/www/html/admin/modules/backup/Console/Backup.class.php(378): FreePBX\modules\Backup\Handlers\Restore\Multiple->process()
#5 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php(312): FreePBX\Console\Command\Backup->execute()
#6 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(1022): Symfony\Component\Console\Command\Command->run()
#7 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(314): Symfony\Component\Console\Application->doRunCommand()
#8 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun()
#9 /var/lib/asterisk/bin/fwconsole(163): Symfony\Component\Console\Application->run()
#10 {main}
Processing extensionroutes

This is with endpoint manager 17.0.2.26

Also now after enabling DPMA I’m seeing a whoops: Undefined array key “P370” when loading the digium_template

It might be related to a recent DPMA issue. Are you able to re-install the module (which was rolled back) ?

Please ensure that you are using latest endpoint manager v17.0.2.28 module ?
If issue still exists then share backtrace of the issue to see the details.

Best Regards
Kapil

Check for updates does not show an update available online. I may need to renew my updates for that.

I’m at 17.0.2.26, but still not seeing any updates available online in Module Admin despite renewing the update license.

Can you please DM me or send email to [email protected] and share your deployment ID @opoplawski ? Thanks

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