FreePBX | Register | Issues | Wiki | Portal | Support

Restore from 10.13.66-15 to FreePBX 14 fails with Whoops\Exception


#6

I tested that process back in February and found a number of bugs. I also tested a development version and found issues there too. I logged a bug report based on what I had found with the newer development version but it hasn’t been closed making me think that those bugs still exist. I’m not sure if that development version has been put into production or not.

  • If Contact Images were present in either contactmanager or usermanager it caused the script to fail was one of them. Removing them allowed the script to run to completion.
  • No EPM configurations or Backup module settings were transferred.
  • Another was that the converted system defaulted back to SIP even if the original machine was using PJSIP or Both.
  • Voicemail was disabled on all extensions on the converted machine breaking modules that had voicemail as a destination.

The script was originally built for migrating Elastix installs. They were based off older FreePBX code and newer features such as PJSIP, Contacts, etc didn’t exist in Elastix so I’m not surprised that it didn’t work well for newer FreePBX versions.

I haven’t tested since February (waiting for progress on the bug report) but since the wiki page still refers to Elastix and PBAF only, I wouldn’t be surprised if these issues still exist. If it works for you great, but check your new machine carefully to see if everything came over from the old machine correctly.


(HawkEye) #7

I am only testing this out with our FreePBX Server. Not going to do this for any of our clients. It’s a long process especially for /var/spool/asterisk.

From what you have written gsiemon, bit surprised FreePBX hasn’t made a script to pull from 13 to 14. I still have to wait for this conversion to finish.


(Marbled) #8

Hi,

If you read the other recent threads you would know that one is coming shortly… If I recall correctly I believe someone from Sangoma (I am tempted to say Tony but I might be wrong) said this week…

I believe that was the script to migrate the FreePBX 13 distro to FreePBX 14 distro

That’s apparently pretty complex to do and it is/was still being tested to make sure it works correctly…

He does (you can see Sangoma’s logo over his avatar and “Sangoma” after his name) but:

  • He doesn’t work in sales…
  • I believe Sangoma mostly sells through distributors and partners…

I would suggest you look at the following page for more information:

Good luck and have a nice day,

Nick


(HawkEye) #9

Hi, finally finished. But new 14 is not working for me. asterisk is constantly dying. Seeing /tmp fill up with stuff like:

7f7ee194b000-7f7ee19c6000 rw-p 00000000 00:00 0 [stack:12150]

Rebooted to see if that would fix it. Nope, ssh in and see:

[Exception]
Error From Module FreePBX\modules\Sysadmin: ‘mkdir(): Permission denied’

When running fwconsole start, displays:

[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/en_GB/sng_mcu.sln: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/en_GB/sng_mcu.sln16: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/en_GB/sng_mcu_chime.sln: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/en_GB/sng_mcu_chime.sln16: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/es/sng_mcu.wav: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/es/sng_mcu_chime.wav: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/ja/sng_mcu.sln: No such file or directory
[2017-07-07 01:18:21] WARNING[4663]: media_index.c:559 media_index_update: Failed to stat /var/lib/asterisk/sounds/ja/sng_mcu_chime.sln: No such file or directory
[2017-07-07 01:18:21] ERROR[4634]: config_options.c:655 aco_process_config: Unable to load config file ‘agents.conf’
[2017-07-07 01:18:21] ERROR[4634]: app_agent_pool.c:2688 load_module: Unable to load config. Not loading module.
Loading func_devstate.so.
Loading func_presencestate.so.
[2017-07-07 01:18:21] WARNING[4634]: func_presencestate.c:182 parse_data: Unknown presence state value chat
sip1*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups

Not good!


(HawkEye) #10

Anyone know what the following is and how to fix this:

7ffb0eddc000-7ffb0ee57000 rw-p 00000000 00:00 0 [stack:24878]
7ffb0ee57000-7ffb0ee58000 —p 00000000 00:00 0
7ffb0ee58000-7ffb0eed3000 rw-p 00000000 00:00 0 [stack:24877]
7ffb0eed3000-7ffb0eed4000 —p 00000000 00:00 0
7ffb0eed4000-7ffb0ef4f000 rw-p 00000000 00:00 0 [stack:24876]
7ffb0ef4f000-7ffb0ef50000 —p 00000000 00:00 0
7ffb0ef50000-7ffb0efcb000 rw-p 00000000 00:00 0 [stack:24875]
7ffb0efcb000-7ffb0efcc000 —p 00000000 00:00 0
7ffb0efcc000-7ffb0f047000 rw-p 00000000 00:00 0 [stack:24874]

Thanks.


#11

Without context I would suggest you hardware is failing, possibly memory or harddisk


(HawkEye) #12

Hi Dicko, no there are plenty of FreePBX servers on the host. Just changed the IP"s of FreePBX 14 to ones not used by the FreePBX 13.66 server and changed back the 13.66 server to the IP’s it had and ran network restart and our original 13.66 is up and running. Just made a few calls to verify.

The install of FreePBX 14 distro and then running the conversion, seems to kill it. It is unusable if you ask me.


#13

No context from you ( i.e. where did you see all that ?) no possible analysis from anyone.


(HawkEye) #14

Below is some info from new FreePBX 14 server:

asterisk -vr

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

fwconsole start

Asterisk already running
Running FreePBX startup…
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
Setting base permissions…

Done
Setting specific permissions…
22864 [============================]
Finished setting permissions
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Unable to run Pre-Asterisk hooks, because Asterisk is already running on PID 18739 and has been running for ERROR
Starting RestApps Server…
[>---------------------------] 1 sec
Started RestApps Server. PID is 19511
Starting UCP Node Server…
[>---------------------------] 1 sec
Started UCP Node Server. PID is 19651
RestApps is not licensed.
This product is not licensed

asterisk -vr

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

Got asterisk started for a moment, hit the apply button but it fails:

exit: 255
Unable to continue. Asterisk is not connected in /var/www/html/admin/libraries/php-asmanager.php on line 236
#0 /var/www/html/admin/libraries/php-asmanager.php(585): AGI_AsteriskManager->send_request(‘Command’, Array)
#1 /var/www/html/admin/libraries/php-asmanager.php(1640): AGI_AsteriskManager->Command(‘core show funct…’)
#2 /var/lib/asterisk/bin/retrieve_conf(734): AGI_AsteriskManager->func_exists(‘DEVICE_STATE’)
#3 {main}


#15

Sorry , that’s above my pay-grade , you will have to wait for Sangoma help here.


(HawkEye) #16

Hi Dicko,
Installed FreePBX 14 from DISTRO FreePBX-14-64bit-1706-1. Then ran what Igaetz said above which is supposed to allow upgrade from major versions.

After that, the problems started.

I was trying to get everything possible from FreePBX 13.66 into this new FreePBX 14 server.

Firewall service now starting.
Firewall Rules corrupted! Restarting in 5 seconds

I don’t use FreePBX firewall, have my own script. Uninstalled firewall module so I don’t know why the service keeps loading. I will try chkconfig and see if I can stop it.

firewalld.service disabled

but iptables is running and using my script.

FreePBX hit apply again:
exit: 1
Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting


#17

Then I would ask @lgaetz


(Marbled) #18

He gave you the current supported solution…

Unless I am misreading what you said you are running the FreePBX 13 distro and there will be a supported method of migrating it to SNG7 and FreePBX 14 in hopefully a few days…

re:

(amongst others…)

That is, unless you are running a 32-bit distro since this will no longer be supported with SNG7/FreePBX 14…

re:

and

Good luck and have a nice day,

Nick


(HawkEye) #19

Hi Nick,
All FreePBX Servers are 64bit

I bet if rm the VM and install fresh FreePBX 14 without trying the convert from above it won’t have these problems. As it stands, this FreePBX 14 server is useless.


(Marbled) #20

Hi,

And they are the FreePBX distro, right?

If not, something else will be available, see

Good luck and have a nice day,

Nick


(Marbled) #21

That’s quite possible, something is most likely going wrong in that conversion and corrupting the install…

I believe that script was meant to convert derivatives of official FreePBX or old versions of it, not actually migrate from FreePBX 13 to 14…

It might work and is currently the only supported solution but I highly suggest you wait for the real FreePBX 13 to FreePBX 14 (and distro) migration script…

Good luck and have a nice day,

Nick


(HawkEye) #22

Hi, other than a few billing servers, all FreePBX Servers are DISTRO. I will install a new FreePBX 14 64bit server without running the script Igaetz shows above.
Thanks.


(HawkEye) #23

So you’re clear, image shows exactly what was installed.


(Marbled) #24

Hi!

Out of curiosity, why are you building a new FreePBX 14 box if what you seem to what to do is migrate from FreePBX 13 to FreePBX 14?

The update should be “in-place” for the distro (and should be available shortly) and there is/will be a script for the non-distro installs (as long as they meet the FreePBX 14 requirements…).

Have a nice day,

Nick


(HawkEye) #25

I like pain?

Anyway, installed a fresh FreePBX 14 and of course there are no errors, I just don’t want to have to manually get it to the point of our current 13.66 FreePBX Server.