Quantcast
Channel: Distro Discussion & Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 1370

Upgrade v12 to v15

$
0
0

@rtheil wrote:

I’ve worked for my company for 15 years, and leaving at the end of this month. Installed FreePBX v12 6 years ago and it has been running that way ever since, and rock solid. As part of my departure I am going to upgrade to new hardware and to v15 so that it can be managed by Sangoma if/when they need it. I installed v15 on a VM so I can test things out. When restoring from command line (fwconsole backup --restore 20210125-000001-1611558001-330275130.tgz) I get an error when processing the sql file, but it’s so generic that I can’t tell where in the file it’s getting the error.

Detected file /tmp/backup/d7f5ff9b-68cd-45d2-8937-50e99b6f2d6f/mysql-3.sql as the PBX (Asterisk) database. Attempting restore
Loading supplied database file mysql-3
SQLSTATE[HY000]: General error: 1 near “)”: syntax error

Ok, fine, the error is obviously with mysql-3.sql, so I try doing a manual restore with mysql of mysql-3.sql. Well, there are some errors related to foreign keys and the order of tables in the file due to the way it was dumped. So I use mysqldump to get the asterisk db from the production system and test restore with mysql. Works perfect. I remake the tar file and run it again. Same error. What the hell?

[root@freepbx bak]# fwconsole backup --restore backup.tar
Transaction ID is: a6ee9eb0-b04c-40aa-80da-9a3e4b28ea3e
Determining backup file type…type is legacy
Legacy CDR Restore Option: 0
Starting restore job with file: backup.tar
Extracting backup…
Loading manifest to memory
Parsing out SQL tables. This may take a moment depending on backup size.
Found 2 database files in the backup.
File named: /tmp/backup/a6ee9eb0-b04c-40aa-80da-9a3e4b28ea3e/mysql-3.sql
Detected file /tmp/backup/a6ee9eb0-b04c-40aa-80da-9a3e4b28ea3e/mysql-3.sql as the PBX (Asterisk) database. Attempting restore
Loading supplied database file mysql-3
SQLSTATE[HY000]: General error: 1 near “)”: syntax error

Posts: 3

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>