Conversion tool error

Hi guys,
I want to convert my elastix 2.4 pbx to new one freepbx 13

I’ve seen that there’s a procedure to convert one elastix to freepbx

I execute on the new one (freepbx) this --> curl -s https://convert.freepbx.org |bash
and in the old one (elastix) --> curl -s -k https://convert.freepbx.org |bash

but in elastix sentence i receive an error:
[root@elastix2 ~]# curl -s -k https://convert.freepbx.org |bash
Checking that ‘curl’ exists … OK!
Validating sha256 integrity … OK!
Trying to download converter to /tmp/tmp.ujCRq29736 … Complete!
Validating download … OK!
Starting FreePBX Converter version release/20151217r1
Testing connectivity to Conversion server…Success!

FreePBX Conversion Wizard

The FreePBX Conversion Wizard needs to be run on two machines, the NEW
machine, which must be an ACTIVATED FreePBX Distro machine, and then it must
be run on the DONOR machine.
The DONOR machine is the machine that is currently processing calls, and is
the machine that will be migrated to the NEW machine. No changes will be made
to the DONOR machine, and this script will not stop or restart any services
that may cause an outage.
If this is the NEW machine, just push ‘Enter’ to prepare this machine

Enter ID (blank if this is NEW): 7f673aaa-6405-4636-8ad1-1dd694874d63
Testing FreePBX functionality … Failed. Received '/etc/freepbx.conf doesn’t exist.
This must be run on a FreePBX machine’ instead of 'OK’
Cleaning up…Done!

Someone knows how to solve this issue ??

I’m very interested in migrate to freepbx and I think that if i reach to migrate I will use freepbx

Thanks for your support

What version of FreePBX are you running? The conversion tool requires 2.9 or newer.

I just tried this myself with the same result.
A default Elastix 2.4 runs on FreePBX 2.8.

I went to the unembedded FreepBX and ran the 2.9 upgrade process.

Rebooted, and now it shows 2.9.0.15.

The scripts gives the same error.

[root@3227-pbx ~]# curl -s https://convert.freepbx.org | bash
Checking that 'curl' exists ... OK!
Validating sha256 integrity ... OK!
Trying to download converter to /tmp/tmp.XghJhY6651 ... Complete!
Validating download ... OK!
Starting FreePBX Converter version release/20151217r1
Testing connectivity to Conversion server...Success!

FreePBX Conversion Wizard
-------------------------

The FreePBX Conversion Wizard needs to be run on two machines, the NEW
machine, which must be an ACTIVATED FreePBX Distro machine, and then it must
be run on the DONOR machine.
The DONOR machine is the machine that is currently processing calls, and is
the machine that will be migrated to the NEW machine. No changes will be made
to the DONOR machine, and this script will not stop or restart any services
that may cause an outage.
If this is the NEW machine, just push 'Enter' to prepare this machine

Enter ID (blank if this is NEW): c...............6
Testing FreePBX functionality ... Failed. Received '/etc/freepbx.conf doesn't exist.
This must be run on a FreePBX machine' instead of 'OK'
Cleaning up...Done!
[root@3227-pbx ~]# ls /etc/free*
ls: /etc/free*: No such file or directory
[root@3227-pbx ~]# 

ok, noticed this error in the dashboard.

Looks like this might resolve things. Waiting on a reboot.

[root@3227-pbx ~]# amportal chown


moving /etc/asterisk/freepbx.conf to /etc/freepbx.conf
SETTING FILE PERMISSIONS
Permissions OK

yup, that resolved it.

[root@3227-pbx ~]# curl -s https://convert.freepbx.org | bash
Checking that 'curl' exists ... OK!
Validating sha256 integrity ... OK!
Trying to download converter to /tmp/tmp.PftRnI5651 ... Complete!
Validating download ... OK!
Starting FreePBX Converter version release/20151217r1
Testing connectivity to Conversion server...Success!

FreePBX Conversion Wizard
-------------------------

The FreePBX Conversion Wizard needs to be run on two machines, the NEW
machine, which must be an ACTIVATED FreePBX Distro machine, and then it must
be run on the DONOR machine.
The DONOR machine is the machine that is currently processing calls, and is
the machine that will be migrated to the NEW machine. No changes will be made
to the DONOR machine, and this script will not stop or restart any services
that may cause an outage.
If this is the NEW machine, just push 'Enter' to prepare this machine

Enter ID (blank if this is NEW): cbdce81b-2ec1-4ed4-bddc-ad557da1f546
Testing FreePBX functionality ... Success!
Checking Slot ID ... OK!
Getting modules to convert ... Complete! 109 modules
Dumping astdb ... Complete!
Do you want to copy /tftpboot to the new machine [Ny]? y
Creating encrypted backup for new machine. This may take some time.
Backing up the following:
47M	/var/spool/asterisk
4.0K	/var/lib/asterisk/moh
7.9M	/var/lib/asterisk/sounds/custom
33M	/tftpboot
Complete!
Sending backup details to new machine ... Complete!
	Module announcement (Skipped 1, Completed 0) ... announcement
	Module callback (Skipped 13, Completed 1) ... callback
	Module callrecording (Skipped 16, Completed 2) ... callrecording callrecording_module
	Module cidlookup (Skipped 21, Completed 3) ... cidlookup cidlookup_incoming
	Module conferences (Skipped 21, Completed 4) ... meetme
	Module core (Skipped 24, Completed 5) ... sip dahdi featurecodes incoming outbound_routes freepbx_settings trunks users devices dahdichandids globals language_incoming languages outbound_route_patterns outbound_route_sequence outbound_route_trunks outroutemsg trunk_dialpatterns trunks
	Module customappsreg (Skipped 25, Completed 6) ... custom_destinations custom_extensions
	Module daynight (Skipped 28, Completed 7) ... daynight
	Module disa (Skipped 32, Completed 8) ... disa
	Module fax (Skipped 35, Completed 9) ... fax_details fax_incoming fax_users
	Module findmefollow (Skipped 37, Completed 10) ... findmefollow
	Module iaxsettings (Skipped 42, Completed 11) ... iaxsettings
	Module ivr (Skipped 44, Completed 12) ... ivr_details ivr_entries
	Module miscapps (Skipped 47, Completed 13) ... miscapps
	Module miscdests (Skipped 47, Completed 14) ... miscdests
	Module paging (Skipped 49, Completed 15) ... paging_groups paging_config
	Module parking (Skipped 50, Completed 16) ... parkplus
	Module pinsets (Skipped 54, Completed 17) ... pinsets pinset_usage
	Module queueprio (Skipped 57, Completed 18) ... queueprio
	Module queues (Skipped 57, Completed 19) ... queues_details queues_config
	Module recordings (Skipped 58, Completed 20) ... recordings
	Module ringgroups (Skipped 61, Completed 21) ... ringgroups
	Module sipsettings (Skipped 63, Completed 22) ... sipsettings
	Module timeconditions (Skipped 70, Completed 23) ... timeconditions timegroups_groups timegroups_details
	Module vmblast (Skipped 75, Completed 24) ... vmblast vmblast_groups
	Module voicemail (Skipped 76, Completed 25) ... voicemail_admin
Attempting to discover users email addresses ... (37 users, 3 with email) Complete!
Export complete!
This backup is currently being processed by the conversion servers, and will
be automatically downloaded and installed on the NEW machine when completed.

Please Note! All SIP and IAX trunks on the NEW machine will be set to DISABLED,
and you will need to manually re-enable them. This is to avoid accidental
outages if the NEW machine registers to a peer unexpectedly.
Cleaning up...Done!
1 Like

No way…this conversion process actually works??

Yes. We have been testing successfully, and there are several confirmations from users here in the forum that it works. There is the occasional report of people having issues, but they are all running FreePBX 2.8 (to my knowledge) and a single report from someone on this forum (forget who) that the migration worked but was missing a lot of config. I don’t recall if the reason why was identified in that one case.

I’d like to report success, since we’re trying to jump the shark from Ast. 11.8.1/FreePBX 5.211.65-6 to the latest distro; but

The notes on the script make some mention of this, but it could stand to be emphasized: The script will make an encrypted backup of all the files it wants to move, which will happily eat all the remaining disk space on your PBX if you let it. Guess what Asterisk 11.8.1/FreePBX 5.211.65-6 does when disk space hits zero. (Do not try this at home!!)

The script did seem to work, and we’re really stuck in the past without it, so…

I’m working on providing the space this process needs, to complete the script and ultimately the swing to the latest distro; but until then, I wanted to say:

THANK YOU!!!

To the kind soul(s) who developed this script!!! Please keep up the Good Work!