Using convert.freepbx.org causes issues with Apply Config and extensions on new FreePBX 14 server

PBX Version: 12.7.4-1804-2.sng7
FreePBX Version: 14.0.11
After what appeared to be successful conversion using convert.freepbx.org on a brand new FreePBX 14 in order to convert a production or DONOR FreePBX 13 is having some issues.

When trying to run ‘Apply Config’ button, it produces the following error on the NEW FreePBX 14 Server:

Reload failed because retrieve_conf encountered an error

exit: 1
Unable to continue. Invalid argument supplied for foreach() in /var/www/html/admin/modules/core/functions.inc.php on line 4099
#0 /var/www/html/admin/modules/core/functions.inc.php(4099): Whoops\Run->handleError(2, ‘Invalid argumen…’, ‘/var/www/html/a…’, 4099, Array) #1 /var/www/html/admin/modules/core/functions.inc.php(43): core_devices_get_user_mappings()
#2 /var/www/html/admin/modules/core/functions.inc.php(460): core_conf->map_dev_user(‘101’, ‘mailbox’, ‘101@device’)
#3 /var/www/html/admin/modules/core/functions.inc.php(104): core_conf->generate_sip_additional(‘13.19.1’)
#4 /var/www/html/admin/libraries/BMO/FileHooks.class.php(65): core_conf->generateConf(‘sip_additional…’)
#5 /var/www/html/admin/libraries/BMO/FileHooks.class.php(24): FreePBX\FileHooks->processOldHooks(Array)
#6 /var/lib/asterisk/bin/retrieve_conf(877): FreePBX\FileHooks->processFileHooks(Array)
#7 {main}

All the extensions on the NEW FreePBX are virtual extensions. On the production or Donor box, there are 0 virtual extensions. As a result there are no voice mail settings in the new FreePBX 14 Server for any extension.

Anyone have a solution for this?
thanks.

There was another user here who reported the same issue after using the conversation tool, but I don’t recall seeing here any solution.

Can your try to upgrade core?

fwconsole ma upgrade core

Or re-install it again

fwconsole ma downloadinstall core --force

Hi,
Try with below commands. I hope it will help you out.
fwconsole chown
fwconsole reload

HI, tried that. reload does:

fwconsole reload

Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 1
Unable to continue. Invalid argument supplied for foreach() in /var/www/html/admin/modules/core/functions.inc/Driver.class.php on line 113
#0 /var/www/html/admin/modules/core/functions.inc/Driver.class.php(113): Whoops\Run->handleError(2, ‘Invalid argumen…’, ‘/var/www/html/a…’, 113, Array)
#1 /var/www/html/admin/modules/core/functions.inc/Driver.class.php(125): FreePBX\modules\Core\Driver::devicesGetUserMappings()
#2 /var/www/html/admin/modules/core/functions.inc.php(477): FreePBX\modules\Core\Driver::map_dev_user(‘101’, ‘mailbox’, ‘101@device’)
#3 /var/www/html/admin/modules/core/functions.inc.php(73): core_conf->generate_sip_additional(‘13.22.0’)
#4 /var/www/html/admin/libraries/BMO/FileHooks.class.php(65): core_conf->generateConf(‘sip_additional…’)
#5 /var/www/html/admin/libraries/BMO/FileHooks.class.php(24): FreePBX\FileHooks->processOldHooks(Array)
#6 /var/lib/asterisk/bin/retrieve_conf(877): FreePBX\FileHooks->processFileHooks(Array)
#7 {main}

Ran the script # curl -s https://convert.freepbx.org | bash again. This fixed the error when clicking Apply Config it also changed the extensions from virtual to either chan_sip or pjsip as the Donor machine has.

One thing not fixed is all the extensions have lost email address, and voice mail is set to NO for some reason.

The script running on the NEW FreePBX server clearly shows no voice mail:

Waiting for /tmp/conversion_backup.crypt to exist…Decrypting and extracting … Complete!
Queueing conversion … OK
[/] Waiting for completion … Complete!
Embedded response found, creating raw import file.
Processing data … Complete!
42 modules to import
21 users to import
Clearing astdb …Complete!
[|] Importing ASTDB … Complete!
[/] Importing module voicemail, table voicemail_admin

All modules imported.
Running module ‘customappsreg’ command ‘fwconsole ma install customappsreg’ … Complete!
Running module ‘pagingpro’ command ‘fwconsole ma install pagingpro’ … Complete!
Running module ‘userman’ command ‘fwconsole ma install userman’ … Complete!
Adding user 101 (User1) … User created (Note: No email address!) with password optic_Banana-Invent
Adding user 108 (User2) … User created (Note: No email address!) with password paste9Wild2mussel
Adding user 110 (User3) … User created (Note: No email address!) with password basin$Facial_Stiff
Adding user 111 (User4) … User created (Note: No email address!) with password Suture-behind2Field
Adding user 120 (User5) … User created (Note: No email address!) with password voice8Bodily2creamy
Adding user 125 (User6) … User created (Note: No email address!) with password elbow6hidden=Log
Adding user 130 (User7) … User created (Note: No email address!) with password mecca$Lynch_drank
Adding user 135 (User8) … User created (Note: No email address!) with password cliff$syntax2babe
Adding user 137 (User9) … User created (Note: No email address!) with password teeth=calm$spark
Adding user 140 (User10) … User created (Note: No email address!) with password Growth-Space8Robust
Adding user 145 (User 11) … User created (Note: No email address!) with password Chess!Would4Saga
Adding user 150 (User 12) … User created (Note: No email address!) with password slab3Groom_Groove
Adding user 155 (User 13) … User created (Note: No email address!) with password Hair$climb6Seoul
Adding user 160 (User 1) … User created (Note: No email address!) with password blouse5Twelve&Liz
Adding user 224 (User 15) … User created (Note: No email address!) with password Peak&Crew7lively
Adding user 225 (User 16) … User created (Note: No email address!) with password talk&warp3Edible
Adding user 250 (User 17) … User created (Note: No email address!) with password Love_relate$Canvas
Adding user 300 (User 18) … User created (Note: No email address!) with password Orchid-mind_Orange
Adding user 305 (User 19) … User created (Note: No email address!) with password Bombay-filthy-rank
Adding user 580 (User 20) … User created (Note: No email address!) with password cash3Client*Thorn
Adding user 585 (User 21) … User created (Note: No email address!) with password Whom_trout3brutal
Cleaning up…Done!

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