Starting restore.
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Initializing Restore...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Running pre-restore hooks, if any...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Restoring files (this may take some time)...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
File restore complete!
functions.inc.php(48) :=log_dir'/var/log/asterisk'
WARNING!
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Web Root restore not detected, not restoring module table
functions.inc.php(48) :=log_dir'/var/log/asterisk'
You should run "fwconsole moduleadmin upgradeall" to ensure system integrity
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Restoring astDB...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Restoring Settings complete
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Running post-restore hooks, if any...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Cleaning up...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Restore complete!
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Reloading...
functions.inc.php(48) :=log_dir'/var/log/asterisk'
Done!
I am restoring a backup to the same system that the backup was originally created from
The restore APPEARS to go perfectly, however, nothing is restored – no extensions, no SIP Trunks, no routes, nothing
The only clue that something may have gone sideways is the line ‘functions.inc.php(48)’ that appears in the otherwise successful looking output from the restore
Anyone seen this before? Pretty nervous that I’m going to have to recreate this entire system
I have looked inside the backup and I can see the files have sizes (non zero)
there is a mysql dump in there and a bunch of asterisk conf files with the data i need restored inside them
Still no idea why it wont restore, if I knew how to manually restore this I would just do that. I assume I just need to import this mysql file and drop all the asterisk files in the right folder, but i dont want to mess anything up yet if I can get it to work the way it should
You would also need to restore the astdb.sqlite3 database from the presumably included astdb file. the manifest files are pretty well black-magic AFAIK but processed by the restore php file process (/var/lib/asterisk/bin/restore.php). I would enable debugging and watch the commandline operation
ehhh I’m sure I’ll miss steps if I go the manual route. Do you think thats all? MySQL restore, sqlite restore (not even sure how to do that but ill look it up) and then dump all the static files into their places?
Hoping to get help on why the actual restore module failed, cant find any more debug info in the logs on it
I looked at the code and the messages you get (except for the weird function.inc.php(48)… which seems to be some sort of excessive verbose debugging seem to suggest this runs properly…
If you try
asterisk -rvvvvvvvvvvvvvvvvvvvvvvvvv
database show
do you get anything?
This should show your extensions, conferences, blacklist, etc…
Under /etc/asterisk does anything appears to have been restored?
Did you ever, at any time, set up a remote database?
Thie log entries you have, except for the additional chatter, seem normal so is it possible that there is some sort of remnant of a remote database somewhere in the advanced settings?
Thanks for your help, I gave up and rebuilt the entire system lol couldn’t wait any longer.
I’ve lost faith in FreePBX backup module. I’ll have to do some testing backup/restore to see if that was an isolated issue or what. Never did figure it out