|
|
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
|
| |
|
|
All times are GMT - 5 Hours
|
|
 |
Mon Mar 28, 2005 3:28 pm |
 |
Author |
Message |
sippenhaft  Site Supporter

Joined: 13 Mar 2005 Posts: 210 Words Posted: 23,478 Average Post: 111.80 Location: nj
|
| Post subject: Backup Database Failed |
|
|
I keep getting the error that the backup failed.
I have my folder: backups
and the name: backupdb
time is set for 10pm
dont know what to check  |
|
| Post #1 |
|
|
 |
Mon Mar 28, 2005 5:17 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
I found (about 10 minutes ago wheni was installing this on someones site) somthing i neglected to fix when i updated the download.
OPEN
includes/phpbb_security.php
FIND
| Code: |
."/". $backup_folder ."/".
|
REPLACE WITH
| Code: |
. $board_config['script_path'] . $backup_folder ."/".
|
|
|
| Post #2 |
|
|
 |
Mon Mar 28, 2005 6:34 pm |
 |
Author |
Message |
sippenhaft  Site Supporter

Joined: 13 Mar 2005 Posts: 210 Words Posted: 23,478 Average Post: 111.80 Location: nj
|
| Post subject: |
|
|
I cant find the code you have listed above in the file you stated??!
the closest I can find is the following:
| Quote: | $last_backup = $board_config['phpBBSecurity_last_backup_date'];
$backup_time = $board_config['phpBBSecurity_backup_time'];
$use_backup = $board_config['phpBBSecurity_backup_on'];
$backup_folder = $board_config['phpBBSecurity_backup_folder'];
$backup_file = $board_config['phpBBSecurity_backup_filename'];
if ($use_backup)
{
if ( ($last_backup != $today) && (date('H') >= $backup_time) )
{
system("/usr/bin/mysqldump -u". $dbuser ." -p". $dbpasswd ." -h ". $dbhost ." ". $dbname ." > ". (($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : $HTTP_SERVER_VARS['DOCUMENT_ROOT']) . $board_config['script_path'] . $backup_folder ."/". $backup_file ."-". time() .".sql", $fp);
|
I would think it is the second part, or I forgot to install something but I dont want to change until I know for sure! |
|
| Post #3 |
|
|
 |
Mon Mar 28, 2005 7:41 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
Yours is already changed properly. So next logical step is make sure that the backupfolder you have specified in the ACP is the same as the folder in your forums root & make sure it is CHMOD -> 777
If still a no go, contact your host & ask if system() is supported on your server. |
|
| Post #4 |
|
|
 |
Tue Mar 29, 2005 3:28 pm |
 |
Author |
Message |
sippenhaft  Site Supporter

Joined: 13 Mar 2005 Posts: 210 Words Posted: 23,478 Average Post: 111.80 Location: nj
|
| Post subject: |
|
|
| Quote: | | There should be no problems executing system() calls. |
That is from an administrator at IPOWER
The folder (backup) is in the root directory and is 777
I just get the error that backup failed?
I also noticed when I select a time for the backup and save it, when I go back to the settings, the time is set back to --- |
|
| Post #5 |
|
|
 |
Tue Mar 29, 2005 4:18 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
The time saves fine, just doesn't default back into the drop down.
As for the folder..
/ipw-web/bulletin/bb/index.php is yoru path, so
/ipw-web/bulletin/bb/backup/ should be the path, with backup 777
your script path in the acp should be
/ipw-web/bulletin/bb/
With all those settings, it should work fine. |
|
| Post #6 |
|
|
 |
Tue Mar 29, 2005 4:28 pm |
 |
 |
Tue Mar 29, 2005 6:24 pm |
 |
 |
Wed Mar 30, 2005 3:36 pm |
 |
Author |
Message |
sippenhaft  Site Supporter

Joined: 13 Mar 2005 Posts: 210 Words Posted: 23,478 Average Post: 111.80 Location: nj
|
| Post subject: |
|
|
ARGHH!
Still get the database backup failed!
| Quote: | Daily Database Backup Enabled
Folder To Put Backups In /ipw-web/bulletin/bb/backup/
This folder is in forum root directory, CHMOD -> 777
Name Used For DB Backups backupdb
|
the bold items are how it is in the acp. |
|
| Post #9 |
|
|
 |
Wed Mar 30, 2005 3:38 pm |
 |
 |
Wed Mar 30, 2005 6:24 pm |
 |
 |
Thu Mar 31, 2005 6:09 pm |
 |
Author |
Message |
sippenhaft  Site Supporter

Joined: 13 Mar 2005 Posts: 210 Words Posted: 23,478 Average Post: 111.80 Location: nj
|
| Post subject: |
|
|
Still no good! BACKUP failed
IPOWER said
| Quote: | If your script is trying to run mysqldump it most likely will not be allowed as php runs as nobody and the nobody use would not have the ability to run a script such as that. Other than that i have no further suggestions good luck with getting the script to work and let us know if you have any further questions regarind anythign being disabled or not.
|
Any other suggestions? |
|
| Post #12 |
|
|
 |
Thu Mar 31, 2005 6:29 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
You said
Folder To Put Backups In /ipw-web/bulletin/bb/backup/
I said multiple times
Folder To Put Backups In backups
If you have not fixed that in the ACP, then your settings are wrong therefor breaking it. |
|
| Post #13 |
|
|
 |
Tue Apr 12, 2005 11:18 am |
 |
Author |
Message |
forluvish New TweakeR

Joined: 12 Apr 2005 Posts: 9 Words Posted: 732 Average Post: 81.33
|
| Post subject: |
|
|
I do want to backup my database into the root folder, rather than forum sub folder. Now the backup function is working perfectly well that is made to the forum sub folder
Is it possible to change the path of backup folder to the root?
My document root folder is
/web/home/scientech/html
my foum folder is
/html/phpBB2
I want to backup into
/html
instead of
html/phpBB2/backup
Is it possible, and if so, what would be the path of it in the setting ? |
|
| Post #14 |
|
|
 |
Wed Apr 13, 2005 6:44 am |
 |
 |
Mon Sep 18, 2006 5:07 pm |
 |
Author |
Message |
AViorel New TweakeR

Joined: 19 Jul 2006 Posts: 3 Words Posted: 167 Average Post: 55.67 Location: Rovinari / Romania
|
| Post subject: |
|
|
Hy i have the same problem :
"From: Administrator
To: Administrator
Posted: 18 Sep 2006 11:30 pm
Subject: phpBB Security Update
Your Daily Database Backup Failed. "
"Clean Avaliable Backups:
1. uff2-2006-09-17.sql :: 0 B :: 16 Sep 2006 11:05 pm
2. uff2-2006-09-18.sql :: 0 B :: 17 Sep 2006 11:50 pm
3. uff2-2006-09-19.sql :: 0 B :: 18 Sep 2006 11:30 pm"
" [backup] DIR 15.09.2006 02:05:40 drwxrwxrwx"
I have 777 on the backup dir .. but I am not using .phpbbsecurity, i`m using .htpasswd to control access to admin may be this the problem ??? |
|
| Post #16 |
|
|
 |
Tue Sep 19, 2006 4:15 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
| No, that wouldn't be the problem. The reason it wouldn't work would be restrictions on the server not allowing the PHP function needed to work being allowed to execute. |
|
| Post #17 |
|
|
 |
Mon Sep 25, 2006 5:37 am |
 |
Author |
Message |
AViorel New TweakeR

Joined: 19 Jul 2006 Posts: 3 Words Posted: 167 Average Post: 55.67 Location: Rovinari / Romania
|
| Post subject: |
|
|
| aUsTiN wrote: | | No, that wouldn't be the problem. The reason it wouldn't work would be restrictions on the server not allowing the PHP function needed to work being allowed to execute. |
And how do we make the server to allow PHP function to write the file ? |
|
| Post #18 |
|
|
 |
Tue Sep 26, 2006 2:20 am |
 |
 |
Thu Oct 12, 2006 3:05 pm |
 |
Author |
Message |
AViorel New TweakeR

Joined: 19 Jul 2006 Posts: 3 Words Posted: 167 Average Post: 55.67 Location: Rovinari / Romania
|
| Post subject: |
|
|
| aUsTiN wrote: | | Ask your host if they can enable it. The function it needs to make it is system() |
I have acc at forum and at the PC where the forum is UP ... what can i do to correct that ? |
|
| Post #20 |
|
|
 |
Thu Oct 12, 2006 4:21 pm |
 |
 |
Fri Feb 02, 2007 4:48 pm |
 |
Author |
Message |
gbox master New TweakeR

Joined: 27 Jan 2007 Posts: 1 Words Posted: 76 Average Post: 76.00
|
| Post subject: |
|
|
hi guys
i have the same problem with the backup
it made 3 backups and after that it keeps failing
i found this in the acp
Fatal error: Unknown function: gd_info() in /www/xxxx.xxxx.xxxx/htdocs/gbox/admin/admin_security.php on line 64
some how i get the feeling that the data base is to big could this be ?
anyway great tool and i feel beter since i installed this safety hack
thnx
gbox master |
|
| Post #22 |
|
|
 |
Sat Feb 03, 2007 8:04 am |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
The Unkown function error just means your server doesn't have GDLib installed on it, which is an image library.
If it was making backups then stopped, something was changed. Either the folder, the CHMOD properties, etc.. |
|
| Post #23 |
|
|
 |
Sat Feb 10, 2007 11:35 am |
 |
Author |
Message |
DragonMaster  Site Supporter

Joined: 11 Jan 2005 Posts: 373 Words Posted: 36,703 Average Post: 98.40 Location: USA
|
| Post subject: |
|
|
I have found that unless the database is tiny, it will not work properly unless it is broken into small segments.
Now I have the daily backups done automatically by my new server host that I pay for
I also have to have them install the backup if it is ever necessary |
|
| Post #24 |
|
|
 |
Mon Feb 12, 2007 8:32 pm |
 |
 |
Mon Feb 12, 2007 8:59 pm |
 |
 |
Sun Feb 18, 2007 12:13 pm |
 |
 |
Sun Feb 18, 2007 1:08 pm |
 |
 |
Mon Feb 19, 2007 5:37 pm |
 |
Author |
Message |
p17blo New TweakeR

Joined: 17 Jan 2007 Posts: 7 Words Posted: 433 Average Post: 61.86
|
| Post subject: |
|
|
Can anyone offer any assistance with this.
I tried to run set the backup to run daily. After the first attempt I got a PM saying it had failed. Since then nothing. I have a folder called backup in the root level of my PHPBB directory which I have CHMOD to 777.
After reading comments about system() I contacted my host to ask them and this was the response.
"You do have access to system(), but PHP safe mode/open_basedir might be restricting which Unix commands you can access. If you let me know which script it is I'll see if I can see why it doesn't work."
Any thoughts? And why did it PM me the first time to let me know it had failed but has not on subsequent occasions?
What runs the job? Is it visitor activity? As I havn't seen a CRON job setup for it
Thanks
Paul |
|
| Post #29 |
|
|
 |
Wed Feb 21, 2007 9:12 am |
 |
Author |
Message |
p17blo New TweakeR

Joined: 17 Jan 2007 Posts: 7 Words Posted: 433 Average Post: 61.86
|
| Post subject: |
|
|
I am now regularly receiving backup failed messages (once a day) from PHPBB so I just need to know if anyone can shed any light as to what is actually happening when the backup script is run (is there an actual script run) so I can try to bottom this one out.
Thanks
Paul |
|
| Post #30 |
|
|
 |
Wed Feb 21, 2007 8:21 pm |
 |
|