Problem restoring backup. Ahhhh!!!

Derrick32

Member
Joined
Jul 22, 2009
Messages
144
Reaction score
3
Hi all,
So i made a blunder of a move trying to restore an old PIAF build to a brand new purple install. the old one was running:

PBX in a Flash Version 1.4 Daemon Status
********************************************************************
* Asterisk * ONLINE * Zaptel * OFFLINE * MySQL * ONLINE *
* SSH * ONLINE * Apache * ONLINE * Iptables * ONLINE *
* Fail2ban * ONLINE * IP Connect* ONLINE * Ip6tables * ONLINE *
* BlueTooth * ONLINE * Hidd * ONLINE * NTPD * ONLINE *
* Sendmail * ONLINE * Samba * OFFLINE * Webmin * ONLINE *
* Ethernet0 * ONLINE * Ethernet1 * ONLINE * Wlan0 * N/A *
********************************************************************
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.10
* Addons Source Version : 1.4.7

Aaaaand the new fresh install is running this:

Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ BlueTooth = OFFLINE | Hidd = OFFLINE | NTPD = ONLINE │
│ SendMail = ONLINE | Samba = OFFLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PBX in a Flash Version = 1.7.5.7 Running on *HARDWARE* │
│ FreePBX Version = 2.6.0.5 │
│ Running Asterisk Version = 1.8.6.0 │
│ Asterisk Source Version = 1.8.6.0 │
│ Dahdi Source Version = 2.5.0.2+2.5.0.2 │
│ Libpri Source Version = 1.4.12 │
│ IP Address = 192.168.5.161 on eth0 │
│ Operating System = CentOS release 5.7 (Final) │
│ Kernel Version = 2.6.18-274.3.1.el5 - 32 Bit


Sorry if the formatting is crappy. I really only wanted to move my extensions, trunk settings, ring groups, all routes, etc etc.. Just the basic configurations. But i may have just blown up my fresh install. Not a huge deal, i just have to redo the installer. My understanding is that the MONDO backup stuff creates images (.iso's) so you can reload exactly the machine you had. Wellll I want to upgrade everything to the most recent builds and move the config over. That doesnt seem to be happening. I have this message when i try to reload:

Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking for /etc/amportal.conf ..OK
Bootstrapping /etc/amportal.conf ..OK
Parsing /etc/amportal.conf ..OK
Parsing /etc/asterisk/asterisk.conf ..OK
Connecting to database..OK
Connecting to Asterisk manager interface..OK
not writablePHP Warning: fopen(/etc/modprobe.d/dahdi.conf): failed to open stream: Permission denied in /var/www/html/admin/modules/dahdiconfig/functions.inc.php on line 1233
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/admin/modules/dahdiconfig/functions.inc.php on line 1235
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/admin/modules/dahdiconfig/functions.inc.php on line 1236
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/admin/modules/dahdiconfig/functions.inc.php on line 1237
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/admin/modules/dahdiconfig/functions.inc.php on line 1273
PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/admin/modules/dahdiconfig/functions.inc.php on line 1274
Wed, 02 Nov 2011 16:43:11 -0700 - Got event.. fullybooted
Wed, 02 Nov 2011 16:43:11 -0700 - No event handler for event 'fullybooted'
PHP Fatal error: Call to undefined method core_conf::addSipNotify() in /var/www/html/admin/modules/restart/functions.inc.php on line 23

1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.


Ater this I did amportal chown, bc I thought the freepbx upgrade might be causing this error. now when i hit apply on the reload button i get "Error: Did not receive valid response from server." I may have bricked the dam thing..


Any help or suggestions is appreciated. :banghead: :banghead: :banghead: :banghead:

Thanks,
Derrick
 
So how exactly did you restore? With what method?
 
I did a backup on the old machine, then i moved the backup file from /var/lib/asterisk/backups to the same location on the new machine. went into the gui in the new machine and ran a restore only selecting the system configuration settings.

Now i cant get rid of the apply settings button on hte gui. and theres an error on the dashboard reading:

  • notify_critical.png
    retrieve_conf failed, config not applied


    notify_delete.png


    Reload failed because retrieve_conf encountered an error: 255
    Added 10 minutes ago
    (freepbx.RCONFFAIL)
ughhh..
 
Did you make sure that you had the exact same version of FreePBX on both machines?
 
No i didnt, and after the fact im seeing that that is somewhat vital.. any way to fix this specific problem?

D
 
I saw that issue and never really solved it. I just reloaded and went on with life. Sorry I can't be any more help.
My advice would be to assure the same version of FreePBX on BOTH boxes prior to backing up and upgrading. Unless you were on the same box and you wiped it already. Then try and manually change the version on the new load and restore again.
 
No worries, thanks for replying anyways. Thankfully i didnt wipe my production box, im replacing it with new hardware. which is why im reluctant to try a mondo backup.

Side question.. Seeing the versions my original box was at above, which version of PIAF (gold, silver, purple) would be the closest to a seamless transfer?

Also, im assuming whichever version i choose to install its not going to match up with the FreePBX version of my old box. so how can i downgrade my new build of freepbx? Or do i upgrade my old version? maybe theres a link somewhere im not seeing?

Thanks again,
Derrick
 
Asterisk version should not matter too much unless you have a bunch of custom dial plan. There was one character that was changed between 1.4 and 1.6/1.8 and that was from the | (pipe) to the , (comma).
I would make a full backup with the current FreePBX version on your old box and then upgrade it to the latest available 2.8 (NOT 2.9!). Then do another backup. That's the one you want to restore from on the new box.
 
I believe rossiv assumed that the new box will come out with the latest 2.8 and that's why derrick32 shouldn't go up to 2.9 on the old box.

Not that backup/restore under 2.9 won't work.
 
FreePBX 2.9 seems to break things in PIAF. The most stable FreePBX version for PIAF is still 2.8.
 
I believe rossiv assumed that the new box will come out with the latest 2.8 and that's why derrick32 shouldn't go up to 2.9 on the old box.

Not that backup/restore under 2.9 won't work.

Right, by default now all PIAF installs have 2.8. No need to upgrade to something that doesn't 100% work with everything in PIAF. I was certainly not saying that backup/restore wouldn't work in 2.9 - it is just for the above reason. Don't break what isn't broken.
 
Everything works!!

Hey guys just wanted to drop in and say that once i had the same versions of FreePBX everything worked like a charm!

Thanks for your help guys!!
icon10.png
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top