Backup problem
Backup doesn't work
When I try do it I got next errors from /var/log/httpd/error_log
[Thu Apr 10 14:43:34 2008] [error] [client 192.168.16.10] Thu, 10 Apr 2008 14:43:34 -0700 - No event handler for event 'new
exten', referer: http://204.9.200.116/admin/config.php
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: mins_string in /var/www/html/adm
in/modules/backup/schedule_functions.php on line 278, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: hours_string in /var/www/html/ad
min/modules/backup/schedule_functions.php on line 279, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: days_string in /var/www/html/adm
in/modules/backup/schedule_functions.php on line 280, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: months_string in /var/www/html/a
dmin/modules/backup/schedule_functions.php on line 281, referer: http://204.9.200.116/admin/config.php?type=tool&display=bacup&act...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: weekdays_string in /var/www/html
/admin/modules/backup/schedule_functions.php on line 282, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
Clicked on "New"
Typed in Monday
Selected some things to backup
Selected a time for backup schedule to run
Clicked submit
A new backup job was added
Clicked on "Backup Now"
The backup job ran
I see there is a problem if you select "Now" as the time for the backup to run, give it some time to run at and let me know if it works.
Hi all,
I followed Kerry's advice and created a new FTP backup job. --> This doesn't work. To test if backup generally works, I also created a non-ftp backup job. --> This works.
On the FTP Server, the successful connect from trixbox can be seen but it doesn't upload anything.
This is the log trace on the FTP server:
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> Connected, sending welcome message...
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> SYST
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> 215 UNIX emulated by FileZilla
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> USER
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> 331 Password required for
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> PASS ********
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
(000010) 16.04.2008 19:50:39 -
The server sais, that it received 600 bytes which surely is not enough to backup a complete TB.
TB definitely doesn't send data.
Any thoughts?
By the way, I updated everything with 'yum clean all', yum -y update
With kind regards,
Michael
I'm using Trixbox Backup version 2.6.1 installed yesterday April 19th ...
Backup works okay to /var/lib/trixbox/backups but ftp doesn't. I cannot even see it attempting to login to my ftp server.
I have tried logging in to my ftp server using the criteria on the backup module and that works fine from the cli.
FTP server is on the same subnet.
want to back up to an FTP Server like I had to (I don't actually understand why you would backup to the same device anyway) I can post the changes I did to amportal.conf and tb_backup.pl.
The issue appears to be how the GUI populates the database as if you put the correct entries in amportal.conf (including any sub directory) and then use them and not the database fields in the database program then it works.
The only way I could find to delete a schedule was in the cron scheduling section through WebMin
Cheers
Garry
Setting the FTP folder is done on the FTP server - just set the home folder for the user name that you are using for the backup.
At the moment I backup locally (which works) and run a script which FTPs the backup to my server.
Bit of a kludge but gets around the problem until Kerry and the team fix it.
Problem: After restoring backup, extensions are "half-alive". If I try *97 - it is asking for mailbox number ("Comedian Mail, mailbox ..."). If I try do dial another extension, the other phone does not ring and my phone says "The person an extension XXXX is unavailable .."
At the same time, all extensions can dial out.
If I delete and recreate extension then it works OK.
Software versions: TB CE 2.6.0.7; Backup version: 2.6.1
Backup and restore was performed on the same platform, same TB and Backup versions.
First I tried to restore after actual disaster. After trying to fix odd behavior for some time I gave up and did clean install and keyed in all the info from configuration print-out (it took me about 2 hours).
Then after the system was up and operational I decided to do further testing. I installed current tbm-backup module, made backup and restored it on the test service which has exactly the same configuration as production server. The issue reproduced itself again.
This is minor issue:
When system is brand new built for restore, then there are no previous backup sets. If I click on Restore button, it displays the following error:
Warning: Invalid argument supplied for foreach() in /var/www/html/maint/modules/restore/restore.php on line 194
This happens even if there is a backup file in /var/lib/trixbox/backups folder. Now, if I create any folder in /var/lib/trixbox/backups and put backup file in there then I can see the backup sets with no error message above.
Some of the problems people have been reporting with the Trixbox 2.6 backup module appear to be due to some non-intuitive behavior in the UI, rather than the backup module itself.
If you create a new backup set, and set the backup schedule to "Now", the backup executes, and you'll see the set directory and backup file in /var/lib/trixbox/backups. However, the name of the backup set is not written to the backup_tb table in the Asterisk database, and is therefore not saved.
I was initially trying to run backups, and was ending up with the situation where I didn't see the backup set names I'd created (with a schedule of "Now") being saved. Not only is this non-intuitive, it's not the way that FreePBX backup works, probably adding to the confusion.
I would prefer a modification to the PHP function Save_Backup_Schedule to remove the check for the now condition - writing all backups to the database so they can be recalled, regardless of what the time condition is.
In any case, Kerry is correct in noting that if you create the backup job with a schedule that isn't set to "Now" the behavior is quite a bit more intuitive. In any case, it does work.
Just my .02...
-Josh
My backups are working however they are not being upoaded the my FTP server.
I see trix attempting to log into the FTP server, here is my ftp server log: (I blocked the ips with X's)
(000226) 5/14/2008 14:47:01 PM - username (X.X.X.X)> 230 Logged on
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)TYPE I
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> 200 Type set to I
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> QUIT
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> 221 Goodbye
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> disconnected.
As you can see it quickly logs in and then out. Can anyone help?
Also, does anyone know if it backs up the agi-bin folder?
Thanks


Member Since:
2008-01-24