Error on Restore?

I was trying to restore a full backup of my FreePBX to a new setup distribution FreePBX

We are a SipStation customer and use the SMS function a lot.

I got the following messages on restore, I believe this is an error:

Processing sipstation
Resetting sipstation
Removing AstDB EntriesChecking routes for trunks…ok
Generating CSS…Done
Restoring from sipstation [FreePBX\modules\Sipstation\Restore]
sipstation found no database definitions in module.xml
Reading Databases Table infromation using module name sipstation
Unable to run restoreLegacyDatabase on sipstation because NO Database information provided
Importing KVStore from sipstation
Importing Advanced Settings from sipstation

Processing sms
Resetting sms
Dropping table sms_messages…Done
Dropping table sms_dids…Done
Dropping table sms_routing…Done
Dropping table sms_media…Done
Updating tables sms_messages, sms_dids, sms_routing, sms_media…Done
Generating CSS…Done
Restoring from sms [FreePBX\modules\Sms\Restore]
Reading Databases Table infromation using module name sms
Importing Databases from sms
Importing table ‘sms_dids’ from legacy sms
Cleaning table: sms_dids
Importing table ‘sms_media’ from legacy sms
Cleaning table: sms_media
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /var/www/html/admin/libraries/Composer/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 166

Hi @StephanK Looks like some issue in restoring sms module. May be large data in sms module due to which restore is failing. Could you please raise bug at ? thanks.

Thank you.

I created a bug report.

Is there and easy way to exclude this module from the restore and to manually transfer the files from one machine to the other?

Hi @StephanK thanks , will try to take look.

Meanwhile you can edit your backup job to remove sipstation or sms module to avoid taking backup. Please refer to

Yes, thanks. But as I am working on an upgrade, I would still have to manually transfer the SMS data over and I have no idea how to do that.

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