Upgrade Asterisk Version from to newest version

Tags: #<Tag:0x00007f70283a8050>

(Ahw Free Pbx) #11

Here are my logs:

I tried the restore and nothing happened:

Running with: /usr/sbin/fwconsole backup --restore=’/var/spool/asterisk/backup/uploads/20200212-082937-1581521377-895055246.tgz’ --transaction=‘93903291-1bc5-428b-afd6-79b7d49013e0’
Determining backup file type…type is legacy
Legacy CDR Restore Option: 0
Starting restore job with file: /var/spool/asterisk/backup/uploads/20200212-082937-1581521377-895055246.tgz
Extracting backup…
Backup extracted to /tmp/backup/93903291-1bc5-428b-afd6-79b7d49013e0. These files will remain until a new restore is run or until cleaned manually.
Loading manifest to memory
Loading astdb 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/93903291-1bc5-428b-afd6-79b7d49013e0/mysql-3.sql
Detected file /tmp/backup/93903291-1bc5-428b-afd6-79b7d49013e0/mysql-3.sql as the PBX (Asterisk) database. Attempting restore
Loading supplied database file mysql-3
SQLSTATE[HY000]: General error: 1 near “COMMENT”: syntax error

(Lorne Gaetz) #12

Upgrade all modules to current and then backup to edge with:

fwconsole ma upgrade backup --edge

(Ahw Free Pbx) #13

on the new machine or the old machine?

(Lorne Gaetz) #14

On the new.

(Ahw Free Pbx) #15

Okay, I ran that script. What does it do? Now do I try to restore?

(Jared Busch) #16

Reload first

fwconsole reload

Then, yes.

(Ahw Free Pbx) #17

Okay, it is running now. I will update once I have more info.

(Ahw Free Pbx) #18

it finished and i got this:

Restore processing for modules are finished successfully
Apache will Restart now… And your GUI may die if the ports are changed !!!
Reloading… DONE
Running Post Restore Hooks… Please note that hook will restart httpd service so please refresh your page (using new ports)
Running Post Restore Hooks DONE
File named: /tmp/backup/f1933aa3-511b-4883-bfeb-d62933b22d31/mysql-4.sql
There were errors during the restore process
SQLSTATE[HY000]: General error: 1 no such table: callerid_entries on line 15 of file /var/www/html/admin/modules/callerid/Restore.php
SQLSTATE[HY000]: General error: 1 no such table: soundlang_packages on line 15 of file /var/www/html/admin/modules/soundlang/Restore.php
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.

(Ahw Free Pbx) #19

This may be dumb question. I am getting unable to connect to Asterisk. Do I need to have my Asterisk Card installed right now? Or should the service be getting installed and running?

(Ahw Free Pbx) #20

So, once I run the backup - I am getting a message that Could not connect to asterisk.

I have tried fwconsole reload; fwconsole restart and I just get errors

[root@freepbx ~]# fwconsole reload
Reload Started

In Reload.class.php line 835:

Unable to connect to Asterisk Manager

reload [–json] [–dry-run] [–skip-registry-checks] [–dont-reload-asterisk]


The “asterisk manager password” in Advanced settings must match the ‘secret’ you have in


if it does then report back . . .

(Ahw Free Pbx) #22

It does:


See if that account is overridden in either of the “#included” files and further down the GUI page of your screen shot the user is also admin. and that AHW-PHONESYSTEM resolves to a host in the network

(Ahw Free Pbx) #24

For the GUI, I don’t know what you are referring to. I also don’t know how to check if that resolves to a host.
The manager_custom is blank

Here is the manager_additional

; Do NOT edit this file as it is auto-generated by FreePBX. ;
; For information on adding additional paramaters to this file, please visit the ;
; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
; is totally deliberate. ;
secret = cxmanagercon
read = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
writetimeout = 100
secret = fpbxfirewall
read = all
write = user
writetimeout = 100

(Ahw Free Pbx) #25

I got it, I had to change from AHW-PHONESYSTEM to localhost

(Ahw Free Pbx) #26

Okay, so now Asterisk is running but when I call in, i’m getting a busy signal!

Any thoughts?

(Ahw Free Pbx) #27

And now my phones are not pulling an IP address


It probably always was running, you just couldn’t get to the GUI “GraphicalUserInterface”

Now you need to provide “logs” ( or are we supposed to just guess ? :slight_smile: )


That will be down to the absence of a functional connection between your phones and a “pushing server” , likely a DHCP server of some flavor passing traffic on port udp/67 and 68 although some phones speak “bonjour”

(these logs will need to be from tcpdump)

(system) closed #30

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